LightRAG/lightrag
yangdx 32af45ff46 refactor: improve JSON parsing reliability with json-repair library
Replace regex-based JSON extraction with json-repair for better handling of malformed LLM responses. Remove deprecated JSON parsing utilities and clean up keyword_extraction parameter across LLM providers.

- Remove locate_json_string_body_from_string() and convert_response_to_json()
- Use json-repair.loads() in extract_keywords_only() for robust parsing
- Clean up LLM interfaces and remove unused parameters
- Add json-repair dependency
2025-08-01 19:36:20 +08:00
..
api Add graceful shutdown handling for LightRAG server 2025-08-01 10:56:18 +08:00
kg fix: Add safe handling for missing file_path and metadata in PostgreSQL doc status functions 2025-07-31 18:07:53 +08:00
llm refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
tools
__init__.py Bump core version to v1.4.6 and api version to 0196 2025-07-31 23:27:31 +08:00
base.py Move OllamaServerInfos class to base module 2025-07-31 23:24:49 +08:00
constants.py Set the default LLM temperature to 1.0 and centralize constant management 2025-07-31 17:15:10 +08:00
exceptions.py
lightrag.py refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
llm.py
namespace.py Remove namespace_prefix 2025-07-06 00:16:47 +08:00
operate.py refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
prompt.py Unify entity extraction prompt between passes 2025-07-27 23:06:55 +08:00
rerank.py Fix: rename rerank parameter from top_k to top_n 2025-07-20 00:26:27 +08:00
types.py
utils.py refactor: improve JSON parsing reliability with json-repair library 2025-08-01 19:36:20 +08:00
utils_graph.py Fix GRAPH_FIELD_SEP import typo 2025-06-29 01:28:39 +05:00