added RequiredArgsConstructor annotation
This commit is contained in:
@@ -11,6 +11,7 @@ import org.springframework.ai.vectorstore.filter.FilterExpressionBuilder;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.vaessl.app.shared.ServiceItem;
|
import com.vaessl.app.shared.ServiceItem;
|
||||||
import com.vaessl.app.shared.ServiceType;
|
import com.vaessl.app.shared.ServiceType;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Embeds {@link ServiceItem}s into the shared vector store and prunes entries that no longer exist
|
* Embeds {@link ServiceItem}s into the shared vector store and prunes entries that no longer exist
|
||||||
@@ -18,14 +19,11 @@ import com.vaessl.app.shared.ServiceType;
|
|||||||
* singleton bean shared across concurrent sync runs; callers own the per-sync ID accumulator.
|
* singleton bean shared across concurrent sync runs; callers own the per-sync ID accumulator.
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
|
@RequiredArgsConstructor
|
||||||
public class EmbeddingService {
|
public class EmbeddingService {
|
||||||
|
|
||||||
private final VectorStore vectorStore;
|
private final VectorStore vectorStore;
|
||||||
|
|
||||||
public EmbeddingService(VectorStore vectorStore) {
|
|
||||||
this.vectorStore = vectorStore;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Embeds and upserts {@code items} into the vector store, appending each item's ID to
|
* Embeds and upserts {@code items} into the vector store, appending each item's ID to
|
||||||
* {@code currentItemIds} so the caller can later prune stale entries via
|
* {@code currentItemIds} so the caller can later prune stale entries via
|
||||||
|
|||||||
Reference in New Issue
Block a user