Package sk.iway.iwcm.rag.service
Class SemanticIndexService
java.lang.Object
sk.iway.iwcm.rag.service.SemanticIndexService
Core service for semantic indexing of documents.
Orchestrates: content extraction -> chunking -> embedding -> vector storage.
-
Constructor Summary
ConstructorsConstructorDescriptionSemanticIndexService(DocDetailsContentExtractor contentExtractor, SlidingWindowChunker chunker, EmbeddingService embeddingService, PgVectorStore vectorStore, IndexQueueRepository queueRepository, RagEmbeddingStatService ragEmbeddingStatService, EmbeddingChunkRepository embeddingChunkRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess all pending items in the RAG indexing queue.
-
Constructor Details
-
SemanticIndexService
@Autowired public SemanticIndexService(DocDetailsContentExtractor contentExtractor, SlidingWindowChunker chunker, EmbeddingService embeddingService, PgVectorStore vectorStore, IndexQueueRepository queueRepository, RagEmbeddingStatService ragEmbeddingStatService, EmbeddingChunkRepository embeddingChunkRepository)
-
-
Method Details
-
processQueue
public void processQueue()Process all pending items in the RAG indexing queue. Items are fetched in batches of 500 and processed sequentially. Uses a cache-based flag to prevent concurrent execution. Failed items remain in the queue and are retried on the next run.
-