LightRAG/lightrag
yangdx cbdc4c4bdf Refactor prompts and context building for better maintainability
- Extract context templates to PROMPTS
- Unify token calculation logic
- Simplify user_prompt formatting
- Reduce code duplication
- Improve prompt structure consistency
2025-09-26 12:39:06 +08:00
..
api Update webui assets 2025-09-25 19:05:51 +08:00
kg Fix graph truncation logic for depth-limited traversals 2025-09-24 18:03:11 +08:00
llm Ensure COT tags are properly closed in all stream termination scenarios 2025-09-22 00:09:27 +08:00
tools Fix linting 2025-08-23 02:39:12 +08:00
__init__.py Bump core version to v1.4.9 2025-09-17 02:57:28 +08:00
base.py Fix linting 2025-09-25 16:22:00 +08:00
constants.py Remove deprecated history_turns and ids parameters from query API endpoint 2025-09-25 04:58:57 +08:00
exceptions.py Rename allow_create to first_initialization for clarity 2025-08-23 02:34:39 +08:00
lightrag.py Fix linting 2025-09-25 16:22:00 +08:00
namespace.py Refac: Add workspace infomation to all logger output for all storage type 2025-08-12 01:19:09 +08:00
operate.py Refactor prompts and context building for better maintainability 2025-09-26 12:39:06 +08:00
prompt.py Refactor prompts and context building for better maintainability 2025-09-26 12:39:06 +08:00
rerank.py fix: Resolve default rerank config problem when env var missing 2025-08-23 01:07:59 +08:00
types.py
utils.py feat: simplify citations, add reference merging, and restructure API response format 2025-09-24 14:30:10 +08:00
utils_graph.py