LightRAG/lightrag
yangdx ccc2a20071 feat: remove deprecated MAX_TOKEN_SUMMARY parameter to prevent LLM output truncation
- Remove MAX_TOKEN_SUMMARY parameter and related configurations
- Eliminate forced token-based truncation in entity/relationship descriptions
- Switch to fragment-count based summarization logic using FORCE_LLM_SUMMARY_ON_MERGE
- Update FORCE_LLM_SUMMARY_ON_MERGE default from 6 to 4 for better summarization
- Clean up documentation, environment examples, and API display code
- Preserve backward compatibility by graceful parameter removal

This change resolves issues where LLMs were forcibly truncating entity relationship
descriptions mid-sentence, leading to incomplete and potentially inaccurate knowledge
graph content. The new approach allows LLMs to generate complete descriptions while
still providing summarization when multiple fragments need to be merged.

Breaking Change: None - parameter removal is backward compatible
Fixes: Entity relationship description truncation issues
2025-07-15 12:26:33 +08:00
..
api feat: remove deprecated MAX_TOKEN_SUMMARY parameter to prevent LLM output truncation 2025-07-15 12:26:33 +08:00
kg Fix: Resolve timezone handling problem in PostgreSQL storage 2025-07-14 04:12:52 +08:00
llm Fix linting 2025-07-08 18:17:21 +08:00
tools
__init__.py Bump core version to 1.4.0 2025-07-09 04:43:20 +08:00
base.py update chunks truncation method 2025-07-08 13:31:05 +08:00
constants.py feat: remove deprecated MAX_TOKEN_SUMMARY parameter to prevent LLM output truncation 2025-07-15 12:26:33 +08:00
exceptions.py
lightrag.py feat: remove deprecated MAX_TOKEN_SUMMARY parameter to prevent LLM output truncation 2025-07-15 12:26:33 +08:00
llm.py
namespace.py Remove namespace_prefix 2025-07-06 00:16:47 +08:00
operate.py feat: remove deprecated MAX_TOKEN_SUMMARY parameter to prevent LLM output truncation 2025-07-15 12:26:33 +08:00
prompt.py feat: Optimize document deletion performance 2025-06-25 12:37:57 +08:00
rerank.py Simplify Configuration 2025-07-08 11:16:34 +08:00
types.py Add is_truncated to graph query for NetworkX graph db 2025-04-02 22:12:20 +08:00
utils.py remove <think> tag for entities and keywords extraction 2025-07-08 14:59:15 +08:00
utils_graph.py Fix GRAPH_FIELD_SEP import typo 2025-06-29 01:28:39 +05:00