Some LLM providers (e.g. Anthropic Haiku) return 1-indexed content_index values. When only one content item is provided, this causes KeyError: 1 since the dict only has key 0. Clamp content_index to the valid range instead of crashing. Fixes #873 Co-authored-by: easonysliu <easonysliu@tencent.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| bank_utils.py | ||
| chunk_storage.py | ||
| embedding_processing.py | ||
| embedding_utils.py | ||
| entity_labels.py | ||
| entity_processing.py | ||
| fact_extraction.py | ||
| fact_storage.py | ||
| link_creation.py | ||
| link_utils.py | ||
| orchestrator.py | ||
| types.py | ||