mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
small bug fixes for inline attachments
This commit is contained in:
parent
58e2feceb0
commit
440d125ea0
2 changed files with 32 additions and 11 deletions
|
@ -580,6 +580,7 @@ class ChatAgent(ShieldRunnerMixin):
|
|||
name=f"memory_bank_{session.session_id}",
|
||||
config=VectorMemoryBankConfig(
|
||||
embedding_model="sentence-transformer/all-MiniLM-L6-v2",
|
||||
chunk_size_in_tokens=512,
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -619,7 +620,7 @@ class ChatAgent(ShieldRunnerMixin):
|
|||
|
||||
documents = [
|
||||
MemoryBankDocument(
|
||||
doc_id=str(uuid.uuid4()),
|
||||
document_id=str(uuid.uuid4()),
|
||||
content=a.content,
|
||||
mime_type=a.mime_type,
|
||||
metadata={},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue