Commit Graph

3680 Commits

Author SHA1 Message Date
yangdx
10dbbe4ebf Fix linting 2025-05-08 04:29:43 +08:00
yangdx
45d4db1eff Update webui assets 2025-05-08 04:18:19 +08:00
yangdx
12a8caa6ed Remove unsed i18n translate key 2025-05-08 04:17:25 +08:00
yangdx
d914de441e Add user_prompt to WebUI 2025-05-08 04:15:21 +08:00
yangdx
a359414931 Remove CardDescription 2025-05-08 03:47:13 +08:00
yangdx
ae1c9f8d10 Add user_prompt the QueryParam 2025-05-08 03:38:47 +08:00
yangdx
08e532eaf3 Remove unused text_chunks_db param from naive_query 2025-05-08 03:26:14 +08:00
yangdx
147f73002d Remove ll-keywords and hl-keywords from WebUI 2025-05-07 19:07:31 +08:00
yangdx
474b77c43e Remove deprecated mix_rag_response prompt template 2025-05-07 18:11:35 +08:00
yangdx
1c5bbe396a Optimize prompt template for naive query 2025-05-07 18:11:12 +08:00
yangdx
3eb3b170ab Remove list_of_list_to_dict function 2025-05-07 18:01:23 +08:00
yangdx
156244e260 Refactor: Unify naive context to JSON format
- Merges 'mix' mode query handling into 'hybrid' mode, simplifying query logic by removing the dedicated `mix_kg_vector_query` function
- Standardizes vector search result by using JSON string format to build context
- Fixes a bug in `query_with_keywords` ensuring `hl_keywords` and `ll_keywords` are correctly passed to `kg_query_with_keywords`
2025-05-07 17:42:14 +08:00
yangdx
59771b60df Optimize relationship title to entity1 and entity2 2025-05-07 13:02:22 +08:00
yangdx
1e03888cef Change function name get_kg_context to _get_kg_context 2025-05-07 10:57:33 +08:00
yangdx
3146309fde Change function name from list_of_list_to_json to list_of_list_to_dict 2025-05-07 10:52:26 +08:00
yangdx
edb3d6ac11 Improve query context format for mix mode 2025-05-07 10:51:44 +08:00
Daniel.y
ade1425f1f Merge pull request #1539 from danielaskdd/json-code-block-freezing
Resolve json code block freezing issue in WebUI
2025-05-07 04:45:42 +08:00
yangdx
ee420f135a Bump api version to 0168 2025-05-07 04:37:20 +08:00
yangdx
217d80bfd8 Update webui assets 2025-05-07 04:36:48 +08:00
yangdx
1509e3985e Resolve json code block freezing issue 2025-05-07 04:35:53 +08:00
Daniel.y
7ff23dded1 Merge pull request #1538 from danielaskdd/ignore-chat-history-in-vector-search
Ignore chat history in vector search
2025-05-07 04:03:14 +08:00
yangdx
2485bfe53c Fix linting 2025-05-07 03:57:14 +08:00
yangdx
910a7a8936 Unified vector retrieval logic for mix and naive queries 2025-05-07 03:47:09 +08:00
yangdx
1794b57b43 Ignore chat history in vector search 2025-05-07 03:20:39 +08:00
yangdx
c984ebd462 Improve mix query context format 2025-05-07 03:11:59 +08:00
yangdx
098846b651 Improve naive query context format 2025-05-07 02:52:05 +08:00
Daniel.y
a26c5d1644 Merge pull request #1537 from danielaskdd/redundant-chunk-fetch
Eliminate redundant chunk data fetching in naive and mix query mode
2025-05-07 02:05:05 +08:00
yangdx
365ef75447 Add deprecating commend to text_chunks storage 2025-05-07 02:03:57 +08:00
yangdx
0e3e936e1a Bump api version to 0167 2025-05-07 01:52:29 +08:00
yangdx
b1f874b489 Fix linting 2025-05-07 01:51:58 +08:00
yangdx
52d8815230 Elimiate redunction chunk data fecth for niave query mode 2025-05-07 01:46:23 +08:00
Daniel.y
4b35dbcf19 Merge pull request #1533 from danielaskdd/optimize-default-value
feat: Centralize configuration and update defaults
2025-05-06 22:04:35 +08:00
yangdx
dbfcf30801 Fix linting 2025-05-06 22:03:40 +08:00
yangdx
c8ecfa2d68 feat: Centralize configuration and update defaults
This commit introduces `lightrag/constants.py` to centralize default values for various configurations across the API and core components.

Key changes:
- Added `constants.py` to centralize default values
- Improved the `get_env_value` function in `api/config.py` to correctly handle string "None" as a None value and to catch `TypeError` during value conversion.
- Updated the default `SUMMARY_LANGUAGE` to "English"
- Set default `WORKERS` to 2
2025-05-06 22:00:43 +08:00
Daniel.y
ed9d2b9c59 Merge pull request #1524 from widgit/main
Update postgres_impl.py syntax to create tables section
2025-05-06 07:34:19 +08:00
widgit
e070c19414 Update postgres_impl.py
Was missing , on the SQL Table create command
2025-05-05 23:55:19 +10:00
yangdx
83abb1fbdf Merge branch 'main' of github.com:HKUDS/LightRAG 2025-05-05 18:30:59 +08:00
yangdx
9aedf1b38a Update README for QueryParam description 2025-05-05 18:30:49 +08:00
Daniel.y
65a6b47873 Merge pull request #1518 from geekben/main
Adding Tongyi OpenAI demo to use Qwen model
2025-05-05 13:31:37 +08:00
Ben Luo
b8d59a262f Adding Tongyi OpenAI demo to use Qwen
qwen-turbo-latest (currently Qwen3) is supported by now

Signed-off-by: Ben Luo <bn0418@gmail.com>
2025-05-05 12:46:37 +08:00
yangdx
027c67a73c Skip self-referential relationships in edge processing 2025-05-05 11:58:33 +08:00
yangdx
a36abce8d6 Update commnents 2025-05-05 11:26:31 +08:00
yangdx
8c08743058 Update webui assets 2025-05-05 00:17:35 +08:00
yangdx
af42fc9b04 Hide created_at property on webui 2025-05-05 00:07:50 +08:00
yangdx
3bc240263d Bump api version to 0166 2025-05-04 23:27:40 +08:00
yangdx
8f8476b834 Update webui assets 2025-05-04 23:25:52 +08:00
yangdx
ec41ce5b3a Replaced Text components with standard labels associated via htmlFor/id to fix accessibility warnings. 2025-05-04 23:23:56 +08:00
Daniel.y
a3a32b6f59 Merge pull request #1519 from danielaskdd/fix-json-postgres
Fix JSON handling error for PostgreSQL graph storage
2025-05-04 22:42:39 +08:00
yangdx
e46a4b2079 Optimize log message 2025-05-04 22:31:57 +08:00
yangdx
9a41de51fb Optimize log message 2025-05-04 22:20:44 +08:00