mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
change exception log parse to chunk
This commit is contained in:
parent
729e0f3fcb
commit
bfc8a3b99d
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ class ChromaIndex(EmbeddingIndex):
|
|||
doc_data = json.loads(doc)
|
||||
chunk = Chunk(**doc_data)
|
||||
except Exception:
|
||||
log.exception(f"Failed to parse document: {doc}")
|
||||
log.exception(f"Failed to load chunk: {doc}")
|
||||
continue
|
||||
|
||||
score = 1.0 / (1.0 + float(dist)) if dist is not None else 1.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue