Class BBjAdminAIConfig.Lucene

java.lang.Object
com.basis.api.admin.BBjAdminAIConfig.Lucene
All Implemented Interfaces:
Serializable
Enclosing class:
BBjAdminAIConfig

public static class BBjAdminAIConfig.Lucene extends Object implements Serializable
Configuration for the JSON-backed vector store that stores schema embeddings.
See Also:
  • Constructor Details

    • Lucene

      public Lucene()
  • Method Details

    • getIndexPath

      public String getIndexPath()
      Directory where schema-index.json is stored. Supports the ~ shorthand for the user home directory. Defaults to ~/.basis-ai/index.
    • setIndexPath

      public void setIndexPath(String indexPath)
    • getMaxResults

      public int getMaxResults()
      Number of nearest-neighbour schema fragments retrieved per query. Higher values provide more context to the LLM but consume more tokens (default 8).
    • setMaxResults

      public void setMaxResults(int maxResults)
    • getVectorDimension

      public int getVectorDimension()
      Embedding vector dimension. Must match the output dimension of the embedding model (default 384 for all-MiniLM-L6-v2-q). Do not change unless substituting the model.
    • setVectorDimension

      public void setVectorDimension(int vectorDimension)