6166 Commits

Author SHA1 Message Date
dependabot[bot]
ed6cb03037 Bump react-router-dom in /lightrag_webui in the react group
Bumps the react group in /lightrag_webui with 1 update: [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom).


Updates `react-router-dom` from 7.10.1 to 7.11.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.11.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-version: 7.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: react
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-25 18:05:51 +00:00
Vishva R
0726460e13 Add Gemini demo for LightRAG
This PR adds a Gemini-based direct demo for LightRAG, mirroring the
existing llamaindex direct demo.

Features:
- Uses gemini-2.0-flash for LLM inference
- Uses text-embedding-004 for embeddings
- Demonstrates naive, local, global, and hybrid query modes
- Includes required storage initialization
- Keeps a minimal, dependency-free setup

This serves as a reference example for users who want to use
LightRAG with Google Gemini without external frameworks.
2025-12-25 15:44:51 +05:30
Vishva R
9958587335 Update import and model names in README
This update fixes several critical issues in the Gemini integration example:

1. Corrected import: Changed from gemini_complete to gemini_model_complete 
   (the correct function name per lightrag/llm/gemini.py)

2. Fixed parameter name: Changed 'model' to 'model_name' in gemini_model_complete()
   call to match the function signature

3. Added llm_model_name to LightRAG initialization: This is required for 
   gemini_model_complete to retrieve the model name from hashing_kv.global_config

4. Updated to latest model: gemini-1.5-flash → gemini-2.0-flash

Without these changes, users get "404 NOT_FOUND" errors as the code defaults 
to gpt-4o-mini when model_name is not properly configured.

Tested and verified working with Gemini 2.0 Flash API.
2025-12-25 15:11:37 +05:30
Daniel.y
f54ec5387b Merge pull request #2534 from Peefy/patch-3
docs: fix the simple program rag init function return value in README-zh.md
2025-12-24 22:08:28 +08:00
Daniel.y
649b0182f5 Merge pull request #2532 from Peefy/patch-2
docs: fix the simple program rag init function return value in README.md
2025-12-24 22:08:08 +08:00
yangdx
14d9865670 Fix linting 2025-12-24 17:20:36 +08:00
Peefy
a03005a1a5 docs: fix the simple program rag init function return value in README-zh.md
docs: fix the simple program rag init function return value in README-zh.md
2025-12-24 16:56:07 +08:00
Peefy
bc3be3b002 docs: fix the simple program rag init function return value 2025-12-24 16:51:06 +08:00
yangdx
833ddf4931 Add CLAUDE.md to .gitignore 2025-12-24 14:10:20 +08:00
Daniel.y
f88e90c67d Merge pull request #2531 from danielaskdd/gemini-aio
refact(gemini): Migrate Gemini LLM to native async Google GenAI client
2025-12-23 21:13:33 +08:00
yangdx
b88c0d7b58 Bump core version to 1.4.9.11 and API to 0264 2025-12-23 21:10:55 +08:00
yangdx
085c150966 Migrate Gemini LLM to native async Google GenAI client
- Switch to `client.aio` methods
- Remove `run_in_executor` wrappers
- Simplify streaming with async yield
- Update embedding to native async call
- Remove legacy queue-based streaming
2025-12-23 20:49:31 +08:00
Daniel.y
dc3bf9df9d Merge pull request #2529 from danielaskdd/gemini-vertex
feat(gemini): Add Vertex AI support for Gemini LLM binding
2025-12-23 20:12:36 +08:00
yangdx
0739ce2b80 Add Google Vertex AI support for Gemini LLM binding
- Add Vertex AI config to Gemini client
- Update env.example with Vertex AI vars
- Skip API key check in Vertex AI mode
- Support custom host/location config
2025-12-23 19:57:16 +08:00
yangdx
b4371edb19 Update docs 2025-12-23 11:54:15 +08:00
yangdx
4a29c91ea6 Bump core version to 1.4.9.10 and API version to 0263 2025-12-23 09:46:11 +08:00
Daniel.y
8c8186adc5 Merge pull request #2526 from danielaskdd/hotfix-neo4j-memgraph
Hot Fix AttributeError in Neo4JStorage and MemgraphStorage when using storage specified workspace env var
2025-12-23 09:03:31 +08:00
yangdx
736d7f76c6 Fix logging logic in Memgraph and Neo4j init
- Move override logging after super init
- Fix access to uninitialized attributes
- Store original workspace for logs
- Update Memgraph implementation
- Update Neo4j implementation
2025-12-23 08:57:21 +08:00
Daniel.y
dccf1ef43e Merge pull request #2524 from danielaskdd/fix-pg-cypher-dollar-quoting
fix(postgres): Handle dollar-sign sequences in Cypher queries to prevent syntax errors
2025-12-22 22:20:47 +08:00
yangdx
f70fdfefb2 Fix PostgreSQL Cypher queries failing on content with dollar signs
- Add dynamic dollar quoting helper
- Handle `$` symbols in entity IDs
- Fix queries in `upsert_node`/`edge`
- Update all Cypher query constructions
2025-12-22 22:17:11 +08:00
yangdx
67e8a2b105 Document max_token_size=0 behavior in openai_embed 2025-12-22 20:33:57 +08:00
Daniel.y
dca23e2a30 Merge pull request #2523 from danielaskdd/embedding-max-token
feat: Add Automatic Text Truncation Support for Embedding Functions
2025-12-22 20:26:46 +08:00
yangdx
e2a95ab5a6 Fix missing parenthesis in log message
* Fix typo in log message
* Add missing closing parenthesis
2025-12-22 20:15:22 +08:00
yangdx
3527c68dae Fix table formatting in OfflineDeployment docs 2025-12-22 20:13:45 +08:00
yangdx
5a455985df Update default cache path comment in docs 2025-12-22 20:12:21 +08:00
yangdx
9c9dfcd488 Fix tiktoken cache env var and support encoding names
- Set cache env var before import
- Support raw encoding names
- Add cl100k_base to default list
- Improve cache path resolution
2025-12-22 20:06:22 +08:00
yangdx
2678005448 feat: inject max_token_size and add client-side truncation for OpenAI
- Auto-inject max_token_size in wrapper
- Implement OpenAI client-side truncation
- Update Gemini/Ollama embed signatures
- Relax summary token warning threshold
- Update server startup logging
2025-12-22 19:33:43 +08:00
Daniel.y
b31b910e99 Merge pull request #2522 from danielaskdd/fix-embedding-func
Fix nested EmbeddingFunc wrapping and improve embedding function safety
2025-12-22 17:17:40 +08:00
yangdx
afe5b134f9 Bump API version to 0262 2025-12-22 17:14:49 +08:00
yangdx
b3d66ae01c Merge branch 'main' of github.com:HKUDS/LightRAG into embedding-wrapping 2025-12-22 17:07:35 +08:00
Daniel.y
2e784c6902 Merge pull request #2521 from danielaskdd/fix-post-init
HotFix:  MongoDB `__post_init__` not called and refactor embedding validation
2025-12-22 17:03:48 +08:00
yangdx
273165f4bc Refactor vector storage validation and enhance workspace logging
*   Extract embedding validation method
*   Enhance workspace override logging
*   Update vector storage implementations
*   Fix manual __post_init__ calls
2025-12-22 16:58:53 +08:00
yangdx
8aeb234aaa Improve EmbeddingFunc unwrapping safety and docs
- Limit nesting depth in EmbeddingFunc
- Log warning when auto-unwrapping
- Fix typo in EmbeddingFunc docstring
- Document .func usage in examples
2025-12-22 14:49:59 +08:00
yangdx
705e8c6c8e Fix nested EmbeddingFunc wrapping and update demo usage
- Auto-unwrap nested EmbeddingFuncs
- Use partial and .func in examples
- Improve EmbeddingFunc documentation
- Fix comment in LightRAG class
2025-12-22 14:34:25 +08:00
yangdx
3ca9f611bf docs: Sync Chinese README with English updates 2025-12-22 13:53:48 +08:00
yangdx
fbd11ffc6a Merge branch 'update-full-text-index-for-workspace' 2025-12-22 00:20:00 +08:00
yangdx
2a02b69e1d Improve CJK detection and safely drop Neo4j indexes
- Expand CJK regex to extensions A-F
- Use DROP INDEX IF EXISTS
- Add cleanup in multi-workspace test
- Safely handle legacy index drops
2025-12-22 00:19:37 +08:00
yangdx
a6c365e81d Sanitize workspace labels for Neo4j index names
- Add helper to normalize index suffixes
- Replace special chars with underscores
- Ensure valid start char for indices
2025-12-21 23:48:54 +08:00
yangdx
c9bbc3c6cc Merge branch 'main' into update-full-text-index-for-workspace 2025-12-21 23:02:18 +08:00
yangdx
7145b934f5 Bump API version to 0261 2025-12-21 19:16:57 +08:00
Daniel.y
3c566912fb Merge pull request #2516 from HKUDS/dependabot/bun/lightrag_webui/build-tools-58aed0c0ce
Bump eslint-plugin-react-refresh from 0.4.24 to 0.4.26 in /lightrag_webui in the build-tools group across 1 directory
2025-12-21 19:13:40 +08:00
Daniel.y
d719ee4902 Merge pull request #2515 from HKUDS/dependabot/bun/lightrag_webui/frontend-minor-patch-241571b80e
Bump the frontend-minor-patch group across 1 directory with 3 updates
2025-12-21 19:13:21 +08:00
dependabot[bot]
f5f34e56ee Bump eslint-plugin-react-refresh
Bumps the build-tools group with 1 update in the /lightrag_webui directory: [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh).


Updates `eslint-plugin-react-refresh` from 0.4.24 to 0.4.26
- [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases)
- [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.24...v0.4.26)

---
updated-dependencies:
- dependency-name: eslint-plugin-react-refresh
  dependency-version: 0.4.26
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: build-tools
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-21 11:12:37 +00:00
dependabot[bot]
2d04749695 Bump the frontend-minor-patch group across 1 directory with 3 updates
Bumps the frontend-minor-patch group with 3 updates in the /lightrag_webui directory: [i18next](https://github.com/i18next/i18next), [react-i18next](https://github.com/i18next/react-i18next) and [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `i18next` from 25.7.2 to 25.7.3
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next/compare/v25.7.2...v25.7.3)

Updates `react-i18next` from 16.4.1 to 16.5.0
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/react-i18next/compare/v16.4.1...v16.5.0)

Updates `@types/node` from 24.10.3 to 24.10.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: i18next
  dependency-version: 25.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: frontend-minor-patch
- dependency-name: react-i18next
  dependency-version: 16.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: frontend-minor-patch
- dependency-name: "@types/node"
  dependency-version: 24.10.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: frontend-minor-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-21 11:11:48 +00:00
Daniel.y
5547446408 Merge pull request #2511 from HKUDS/dependabot/bun/lightrag_webui/build-tools-ab633d47b1
Bump the build-tools group in /lightrag_webui with 2 updates
2025-12-21 19:11:35 +08:00
Daniel.y
0645cffc88 Merge pull request #2510 from HKUDS/dependabot/bun/lightrag_webui/ui-components-d28d7df1f4
Bump the ui-components group in /lightrag_webui with 3 updates
2025-12-21 19:11:11 +08:00
Daniel.y
dcce60929e Merge pull request #2509 from HKUDS/dependabot/bun/lightrag_webui/react-6045c185b5
Bump the react group in /lightrag_webui with 2 updates
2025-12-21 19:10:01 +08:00
Daniel.y
ac3063f417 Merge pull request #2503 from HKUDS/dependabot/github_actions/github-actions-35b2a8182b
Bump the github-actions group with 3 updates
2025-12-21 19:09:25 +08:00
Daniel.y
de48940a76 Merge pull request #2513 from HKUDS/feature/vectordb-model-isolation
feat: Implement Vector Database Model Isolation and Auto-Migration
2025-12-21 18:58:34 +08:00
yangdx
afe3f3788a Update PG mismatch tests to expect errors
- Assert DataMigrationError on mismatch
- Mock check_table_exists explicitly
- Return JSON string for vector sampling
- Check dimension info in error message
2025-12-21 18:54:17 +08:00