Interface EasyRagConfig
@ConfigRoot(phase=RUN_TIME)
@ConfigMapping(prefix="quarkus.langchain4j.easy-rag")
public interface EasyRagConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe strategy to decide whether document ingestion into the store should happen at startup or not.Maximum overlap (in tokens) when splitting documents.Maximum number of results to return when querying the retrieval augmentor.Maximum segment size when splitting documents, in tokens.path()Path to the directory containing the documents to be ingested.Matcher used for filtering which files from the directory should be ingested.Whether to recursively ingest documents from subdirectories.
-
Method Details
-
path
String path()Path to the directory containing the documents to be ingested. -
pathMatcher
Matcher used for filtering which files from the directory should be ingested. This uses theFileSystempath matcher syntax. Example: `glob:**.txt` to recursively match all files with the `.txt` extension. The default is `glob:**`, recursively matching all files. -
recursive
Whether to recursively ingest documents from subdirectories. -
maxSegmentSize
Maximum segment size when splitting documents, in tokens. -
maxOverlapSize
Maximum overlap (in tokens) when splitting documents. -
maxResults
Maximum number of results to return when querying the retrieval augmentor. -
ingestionStrategy
The strategy to decide whether document ingestion into the store should happen at startup or not. The default is ON. Changing to OFF generally only makes sense if running against a persistent embedding store that was already populated.
-