mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 02:03:44 +00:00
Updated Elasticsearch configurations
This commit is contained in:
parent
3e26136879
commit
149aaa5b22
8 changed files with 45 additions and 6 deletions
|
|
@ -28,6 +28,7 @@ distribution_spec:
|
|||
- provider_type: remote::pgvector
|
||||
- provider_type: remote::qdrant
|
||||
- provider_type: remote::weaviate
|
||||
- provider_type: remote::elasticsearch
|
||||
files:
|
||||
- provider_type: inline::localfs
|
||||
safety:
|
||||
|
|
|
|||
|
|
@ -146,6 +146,14 @@ providers:
|
|||
persistence:
|
||||
namespace: vector_io::weaviate
|
||||
backend: kv_default
|
||||
- provider_id: ${env.ELASTICSEARCH_URL:+elasticsearch}
|
||||
provider_type: remote::elasticsearch
|
||||
config:
|
||||
elasticsearch_url: ${env.ELASTICSEARCH_URL:=localhost:9200}
|
||||
elasticsearch_api_key: ${env.ELASTICSEARCH_API_KEY:=}
|
||||
persistence:
|
||||
namespace: vector_io::elasticsearch
|
||||
backend: kv_default
|
||||
files:
|
||||
- provider_id: meta-reference-files
|
||||
provider_type: inline::localfs
|
||||
|
|
|
|||
|
|
@ -146,6 +146,14 @@ providers:
|
|||
persistence:
|
||||
namespace: vector_io::weaviate
|
||||
backend: kv_default
|
||||
- provider_id: ${env.ELASTICSEARCH_URL:+elasticsearch}
|
||||
provider_type: remote::elasticsearch
|
||||
config:
|
||||
elasticsearch_url: ${env.ELASTICSEARCH_URL:=localhost:9200}
|
||||
elasticsearch_api_key: ${env.ELASTICSEARCH_API_KEY:=}
|
||||
persistence:
|
||||
namespace: vector_io::elasticsearch
|
||||
backend: kv_default
|
||||
files:
|
||||
- provider_id: meta-reference-files
|
||||
provider_type: inline::localfs
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ distribution_spec:
|
|||
- provider_type: remote::pgvector
|
||||
- provider_type: remote::qdrant
|
||||
- provider_type: remote::weaviate
|
||||
- provider_type: remote::elasticsearch
|
||||
files:
|
||||
- provider_type: inline::localfs
|
||||
safety:
|
||||
|
|
|
|||
|
|
@ -146,6 +146,14 @@ providers:
|
|||
persistence:
|
||||
namespace: vector_io::weaviate
|
||||
backend: kv_default
|
||||
- provider_id: ${env.ELASTICSEARCH_URL:+elasticsearch}
|
||||
provider_type: remote::elasticsearch
|
||||
config:
|
||||
elasticsearch_api_key: ${env.ELASTICSEARCH_API_KEY:=}
|
||||
elasticsearch_url: ${env.ELASTICSEARCH_URL:=localhost:9200}
|
||||
persistence:
|
||||
namespace: vector_io::elasticsearch
|
||||
backend: kv_default
|
||||
files:
|
||||
- provider_id: meta-reference-files
|
||||
provider_type: inline::localfs
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ from llama_stack.providers.remote.vector_io.pgvector.config import (
|
|||
)
|
||||
from llama_stack.providers.remote.vector_io.qdrant.config import QdrantVectorIOConfig
|
||||
from llama_stack.providers.remote.vector_io.weaviate.config import WeaviateVectorIOConfig
|
||||
from llama_stack.providers.remote.vector_io.elasticsearch.config import ElasticsearchVectorIOConfig
|
||||
from llama_stack.providers.utils.kvstore.config import PostgresKVStoreConfig
|
||||
from llama_stack.providers.utils.sqlstore.sqlstore import PostgresSqlStoreConfig
|
||||
|
||||
|
|
@ -126,6 +127,7 @@ def get_distribution_template(name: str = "starter") -> DistributionTemplate:
|
|||
BuildProvider(provider_type="remote::pgvector"),
|
||||
BuildProvider(provider_type="remote::qdrant"),
|
||||
BuildProvider(provider_type="remote::weaviate"),
|
||||
BuildProvider(provider_type="remote::elasticsearch"),
|
||||
],
|
||||
"files": [BuildProvider(provider_type="inline::localfs")],
|
||||
"safety": [
|
||||
|
|
@ -240,6 +242,15 @@ def get_distribution_template(name: str = "starter") -> DistributionTemplate:
|
|||
cluster_url="${env.WEAVIATE_CLUSTER_URL:=}",
|
||||
),
|
||||
),
|
||||
Provider(
|
||||
provider_id="${env.ELASTICSEARCH_URL:+elasticsearch}",
|
||||
provider_type="remote::elasticsearch",
|
||||
config=ElasticsearchVectorIOConfig.sample_run_config(
|
||||
f"~/.llama/distributions/{name}",
|
||||
elasticsearch_url="${env.ELASTICSEARCH_URL:=localhost:9200}",
|
||||
elasticsearch_api_key="${env.ELASTICSEARCH_API_KEY:=}",
|
||||
),
|
||||
),
|
||||
],
|
||||
"files": [files_provider],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue