ElasticsearchVectorStoreConfigLoader
org.llm4s.config.ElasticsearchVectorStoreConfigLoader
Loads the llm4s.vectorstore.elasticsearch block into an org.llm4s.vectorstore.elasticsearch.ElasticsearchConfig.
llm4s-vectorstore-elasticsearch's reference.conf binds ELASTICSEARCH_URL, ELASTICSEARCH_INDEX, ELASTICSEARCH_API_KEY, ELASTICSEARCH_USERNAME and ELASTICSEARCH_PASSWORD. Every setting has a default, so with none set this is a local cluster with security disabled. Blank values (an unset variable bound through application.conf) count as unset.
llm4s.vectorstore.elasticsearch {
baseUrl = "https://es.example.com:9200"
index = "docs"
apiKey = ${?ELASTICSEARCH_API_KEY}
similarity = dot_product
dimensions = 1536
}
for
config <- ElasticsearchVectorStoreConfigLoader.default()
store <- ElasticsearchVectorStore(config)
yield store
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
In this article