yangdx
b72632e4d4
Add async generator lock management rule to cline extension
2025-11-08 20:03:59 +08:00
yangdx
5be04263b2
Fix deadlock in JSON cache migration and prevent same storage selection
...
- Snapshot JSON data before yielding batches
- Release lock during batch processing
- Exclude source type from target selection
- Add detailed docstring for lock behavior
- Filter available storage types properly
2025-11-08 19:58:36 +08:00
yangdx
6b9f13c792
Enhance LLM cache migration tool with streaming and improved UX
...
- Add streaming migration for memory efficiency
- Implement graceful exit with Enter/0
- Add progress indicators for counting
- Optimize batch processing by storage type
- Update docs with new progress displays
2025-11-08 19:38:00 +08:00
yangdx
d0d31e9262
Improve LLM cache migration tool configuration and messaging
2025-11-08 18:52:33 +08:00
yangdx
6fc54d3625
Move LLM cache migration tool to lightrag.tools module
...
- Relocated tool to proper package structure
- Updated import paths and documentation
- Added shared storage initialization
- Fixed module path resolution
- Updated usage instructions
2025-11-08 18:33:13 +08:00
yangdx
0f2c0de8df
Fix linting
2025-11-08 18:16:03 +08:00
yangdx
55274dde59
Add LLM cache migration tool for KV storage backends
...
- Supports JSON/Redis/PostgreSQL/MongoDB
- Batch migration with error tracking
- Workspace-aware data transfer
- Memory-efficient pagination
- Comprehensive migration reporting
2025-11-08 17:57:22 +08:00
yangdx
cf732dbfc6
Bump core version to 1.4.9.9 and API to 0252
2025-11-08 11:27:26 +08:00
Daniel.y
29a349f25b
Merge pull request #2329 from danielaskdd/gemini-embedding
...
Feat: Add Gemini Embedding Support to LightRAG
2025-11-08 04:10:52 +08:00
yangdx
a624a9508a
Add Gemini to APIs requiring embedding dimension parameter
2025-11-08 03:54:50 +08:00
yangdx
de4ed73652
Add Gemini embedding support
...
- Implement gemini_embed function
- Add gemini to embedding binding choices
- Add L2 normalization for dims < 3072
2025-11-08 03:34:30 +08:00
Daniel.y
f4492d48dc
Merge pull request #2328 from HKUDS/apply-dim-to-embedding-call
...
Feat: Add Optional Embedding Dimension Parameter Control with Jina API Compliance
2025-11-08 02:10:08 +08:00
yangdx
f83ea3394e
Add section header comment for Gemini binding options
2025-11-08 02:07:31 +08:00
yangdx
0b2a15c452
Centralize embedding_send_dim config through args instead of env var
2025-11-08 01:52:23 +08:00
yangdx
03cc6262c4
Prohibit direct access to internal functions of EmbeddingFunc.
...
• Fix similarity search error in query stage
• Remove redundant null checks
• Improve log readability
2025-11-08 01:43:36 +08:00
yangdx
ffeeae4208
refactor: simplify jina embedding dimension handling
2025-11-07 22:09:57 +08:00
yangdx
9cee5a63df
Merge branch 'main' into apply-dim-to-embedding-call
2025-11-07 22:06:04 +08:00
yangdx
01b07b2be5
Refactor Jina embedding dimension by changing param to optional with default
2025-11-07 22:04:34 +08:00
Daniel.y
d536257308
Merge pull request #2327 from huangbhan/patch-1
...
Fix spelling errors in the "使用PostgreSQL存储" section of README-zh.md
2025-11-07 21:32:05 +08:00
yangdx
d95efcb9ad
Fix linting
2025-11-07 21:27:54 +08:00
yangdx
ce28f30ca6
Add embedding_dim parameter support to embedding functions
...
• Pass embedding_dim to jina_embed call
• Pass embedding_dim to openai_embed call
2025-11-07 21:23:59 +08:00
yangdx
c14f25b7f8
Add mandatory dimension parameter handling for Jina API compliance
2025-11-07 21:08:34 +08:00
yangdx
d8a6355e41
Merge branch 'main' into apply-dim-to-embedding-call
2025-11-07 20:48:22 +08:00
yangdx
33a1482f7f
Add optional embedding dimension parameter control via env var
...
* Add EMBEDDING_SEND_DIM environment variable
* Update Jina/OpenAI embed functions
* Add send_dimensions to EmbeddingFunc
* Auto-inject embedding_dim when enabled
* Add parameter validation warnings
2025-11-07 20:46:40 +08:00
domices
5c0ced6e4a
Fix spelling errors in the "使用PostgreSQL存储" section of README-zh.md
2025-11-07 17:48:41 +08:00
Daniel.y
732846233b
Merge pull request #2326 from danielaskdd/gemini-cot
...
Feat: Add Chain of Thought Support for Gemini LLM
2025-11-07 16:24:59 +08:00
yangdx
c580874a1a
Remove depreced sample code
2025-11-07 16:15:20 +08:00
yangdx
924c8cb8a3
Merge branch 'main' into gemini-cot
2025-11-07 15:52:13 +08:00
yangdx
fc40a36968
Add timeout support to Gemini LLM and improve parameter handling
...
• Add timeout parameter to Gemini client
• Convert timeout seconds to milliseconds
• Update function signatures consistently
• Add Gemini thinking config example
• Clean up parameter documentation
2025-11-07 15:50:14 +08:00
yangdx
3cb4eae492
Add Chain of Thought support to Gemini LLM integration
...
- Extract thoughts from response parts
- Add COT enable/disable parameter
2025-11-07 15:22:14 +08:00
yangdx
6686edfd35
Update Gemini LLM options: add seed and thinking config, remove MIME type
2025-11-07 14:32:42 +08:00
Yasiru Rangana
d94aae9c5e
Add dimensions parameter support to openai_embed()
2025-11-07 09:55:06 +11:00
yangdx
8c27555358
Fix Gemini response parsing to avoid warnings from non-text parts
2025-11-07 04:00:37 +08:00
Daniel.y
366a1e0f5f
Merge pull request #2322 from danielaskdd/fix-delete
...
Fix: Remove Duplicate Entity/Realtion Tracking Deletion in adelete_by_doc_id
2025-11-07 03:07:05 +08:00
yangdx
ea141e2779
Fix: Remove redundant entity/relation chunk deletions
2025-11-07 02:56:16 +08:00
yangdx
5bcd2926ca
Bump API version to 0251
2025-11-06 21:45:47 +08:00
Daniel.y
9d0012b011
Merge pull request #2321 from danielaskdd/fix-doc-del-slow
...
Fix performance bottleneck in document deletion
2025-11-06 21:37:35 +08:00
yangdx
04ed709b34
Optimize entity deletion by batching edge queries to avoid N+1 problem
...
• Add batch get_nodes_edges_batch call
• Remove individual get_node_edges calls
• Improve query performance
2025-11-06 21:34:47 +08:00
yangdx
678e17bb5c
Revert "fix(ui): Remove dynamic import for i18n in settings store"
...
This reverts commit 0216325e0f .
2025-11-06 21:00:47 +08:00
Daniel.y
f6a0ea3a96
Merge pull request #2320 from danielaskdd/fix-postgres
...
Fix node retrieval fail with pecial characters in IDs for Postgres AGE GraphStorage
2025-11-06 20:59:17 +08:00
yangdx
3276b7a49d
Fix linting
2025-11-06 20:48:51 +08:00
yangdx
155f59759b
Fix node ID normalization and improve batch operation consistency
...
• Remove premature ID normalization
• Add lookup mapping for node resolution
• Filter results by requested nodes only
• Improve error logging with workspace
2025-11-06 20:34:53 +08:00
Daniel.y
edf48d7965
Merge pull request #2319 from danielaskdd/remove-deprecated-code
...
Refactor: Remove Deprecated Chunk-Based Query Methods and Improve Graph Unit Test
2025-11-06 20:30:33 +08:00
yangdx
36501b82f5
Initialize shared storage for all graph storage types in graph unit test
2025-11-06 19:24:12 +08:00
yangdx
0c47d1a2d1
Fix linting
2025-11-06 19:12:40 +08:00
yangdx
f3b2ba8152
Translate graph storage test from Chinese to English
2025-11-06 19:11:35 +08:00
yangdx
a790f081dc
Refine gitignore to only exclude root-level test files
2025-11-06 18:51:21 +08:00
yangdx
6b0f9795be
Add workspace parameter and remove chunk-based query unit tests
...
- Add workspace param to test storage init
- Remove get_nodes_by_chunk_ids tests
- Remove get_edges_by_chunk_ids tests
- Clean up batch operations test function
2025-11-06 18:18:01 +08:00
yangdx
807d2461d3
Remove unused chunk-based node/edge retrieval methods
2025-11-06 18:17:10 +08:00
yangdx
831e658ed8
Update readme
2025-11-06 16:26:07 +08:00