mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 20:27:35 +00:00
Rag Updates
This commit is contained in:
parent
ea6d9ec937
commit
f5620c09ad
4 changed files with 48 additions and 40 deletions
|
@ -89,6 +89,7 @@ class BankState:
|
|||
self.chunk_by_index[indexlen + i] = Chunk(
|
||||
content=chunk[0],
|
||||
token_count=chunk[1],
|
||||
document_id=doc.document_id,
|
||||
)
|
||||
print(f"Adding chunk #{indexlen + i} tokens={chunk[1]}")
|
||||
self.id_by_index[indexlen + i] = doc.document_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue