mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
fix: Fixed use of chunk.id (#1356)
# What does this PR do? Closes #1355 ## Test Plan Start server and execute e`xamples/agents/rag_with_vector_db.py` from `llama-stack-apps`.
This commit is contained in:
parent
7d111c7510
commit
cae6c00d8a
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class VectorIORouter(VectorIO):
|
||||||
) -> None:
|
) -> None:
|
||||||
logcat.debug(
|
logcat.debug(
|
||||||
"core",
|
"core",
|
||||||
f"VectorIORouter.insert_chunks: {vector_db_id}, {len(chunks)} chunks, ttl_seconds={ttl_seconds}, chunk_ids={[chunk.id for chunk in chunks[:3]]}{' and more...' if len(chunks) > 3 else ''}",
|
f"VectorIORouter.insert_chunks: {vector_db_id}, {len(chunks)} chunks, ttl_seconds={ttl_seconds}, chunk_ids={[chunk.metadata['document_id'] for chunk in chunks[:3]]}{' and more...' if len(chunks) > 3 else ''}",
|
||||||
)
|
)
|
||||||
return await self.routing_table.get_provider_impl(vector_db_id).insert_chunks(vector_db_id, chunks, ttl_seconds)
|
return await self.routing_table.get_provider_impl(vector_db_id).insert_chunks(vector_db_id, chunks, ttl_seconds)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue