Package com.basis.api.admin
Class BBjAdminAIConfig.Lucene
java.lang.Object
com.basis.api.admin.BBjAdminAIConfig.Lucene
- All Implemented Interfaces:
Serializable
- Enclosing class:
BBjAdminAIConfig
Configuration for the JSON-backed vector store that stores schema
embeddings.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDirectory whereschema-index.jsonis stored.intNumber of nearest-neighbour schema fragments retrieved per query.intEmbedding vector dimension.voidsetIndexPath(String indexPath) voidsetMaxResults(int maxResults) voidsetVectorDimension(int vectorDimension)
-
Constructor Details
-
Lucene
public Lucene()
-
-
Method Details
-
getIndexPath
Directory whereschema-index.jsonis stored. Supports the~shorthand for the user home directory. Defaults to~/.basis-ai/index. -
setIndexPath
-
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)
-