- Created truncate_at_sentence() utility function that truncates text at sentence boundaries while respecting max character limits - Added MAX_SUMMARY_CHARS constant (250 chars) for entity summaries - Applied truncator to entity summaries in prompts (extract_nodes.py) - Applied truncator to LLM-generated summaries (node_operations.py) - Added comprehensive test suite for truncation logic 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cross_encoder | ||
| driver | ||
| embedder | ||
| evals | ||
| llm_client | ||
| utils | ||
| helpers_test.py | ||
| test_edge_int.py | ||
| test_entity_exclusion_int.py | ||
| test_graphiti_int.py | ||
| test_graphiti_mock.py | ||
| test_node_int.py | ||
| test_text_utils.py | ||