mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-11 04:28:02 +00:00
Update docs/source/getting_started/index.md
Co-authored-by: Xi Yan <yanxi970830@gmail.com>
This commit is contained in:
parent
432b036a11
commit
cab3d1d8cc
1 changed files with 11 additions and 1 deletions
|
@ -227,7 +227,17 @@ client.tool_runtime.rag_tool.insert(
|
||||||
documents=documents,
|
documents=documents,
|
||||||
vector_db_id=vector_db_id,
|
vector_db_id=vector_db_id,
|
||||||
chunk_size_in_tokens=512,
|
chunk_size_in_tokens=512,
|
||||||
provider_id="faiss"
|
vector_providers = [
|
||||||
|
provider for provider in client.providers.list() if provider.api == "vector_io"
|
||||||
|
]
|
||||||
|
|
||||||
|
vector_db_id = uuid.uuid4().hex
|
||||||
|
vector_db_register_response = client.vector_dbs.register(
|
||||||
|
vector_db_id=vector_db_id,
|
||||||
|
embedding_model="all-MiniLM-L6-v2",
|
||||||
|
embedding_dimension=384,
|
||||||
|
provider_id=vector_providers[0].provider_id,
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
agent_config = AgentConfig(
|
agent_config = AgentConfig(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue