OpenSearchVectorStoreConfigLoader
org.llm4s.config.OpenSearchVectorStoreConfigLoader
Loads the llm4s.vectorstore.opensearch block into an org.llm4s.vectorstore.opensearch.OpenSearchConfig.
llm4s-vectorstore-elasticsearch's reference.conf binds OPENSEARCH_URL, OPENSEARCH_INDEX, OPENSEARCH_USERNAME, OPENSEARCH_PASSWORD and OPENSEARCH_TOKEN. Every setting has a default, so with none set this is a local cluster with the security plugin disabled. Blank values (an unset variable bound through application.conf) count as unset.
llm4s.vectorstore.opensearch {
baseUrl = "https://search.example.com:9200"
index = "docs"
username = llm4s
password = ${?OPENSEARCH_PASSWORD}
spaceType = innerproduct
engine = faiss
}
for
config <- OpenSearchVectorStoreConfigLoader.default()
store <- OpenSearchVectorStore(config)
yield store
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
In this article