Interface EasyRagConfig


@ConfigRoot(phase=RUN_TIME) @ConfigMapping(prefix="quarkus.langchain4j.easy-rag") public interface EasyRagConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    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 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

      @WithDefault("glob:**") String pathMatcher()
      Matcher used for filtering which files from the directory should be ingested. This uses the FileSystem path matcher syntax. Example: `glob:**.txt` to recursively match all files with the `.txt` extension. The default is `glob:**`, recursively matching all files.
    • recursive

      @WithDefault("true") Boolean recursive()
      Whether to recursively ingest documents from subdirectories.
    • maxSegmentSize

      @WithDefault("300") Integer maxSegmentSize()
      Maximum segment size when splitting documents, in tokens.
    • maxOverlapSize

      @WithDefault("30") Integer maxOverlapSize()
      Maximum overlap (in tokens) when splitting documents.
    • maxResults

      @WithDefault("5") Integer maxResults()
      Maximum number of results to return when querying the retrieval augmentor.