yangdx
281cc38176
Bump API version to 0265
2025-12-26 15:06:38 +08:00
yangdx
670e83113d
Merge branch 'patch-2'
2025-12-26 15:01:38 +08:00
yangdx
4c032a9d4f
Fix linting
2025-12-26 15:01:25 +08:00
yangdx
8a6212d043
Improve Gemini demo documentation and validation
...
- Add script docstring and usage info
- Validate GEMINI_API_KEY presence
- Check input file existence
- Use constant for book file path
2025-12-26 15:00:58 +08:00
yangdx
d2ca1af81b
Move Gemini demo and update embedding docs
...
- Move Gemini demo to examples root
- Enable send_dimensions for Gemini
- Clarify embedding wrapper docstrings
2025-12-26 14:44:12 +08:00
Daniel.y
d97ec95199
Merge pull request #2537 from vishvaRam/patch-1
...
Fixes the Gemini integration example in the README
2025-12-26 14:20:54 +08:00
Daniel.y
8371772f37
Merge pull request #2542 from HKUDS/dependabot/bun/lightrag_webui/build-tools-4ed1dc36dd
...
Bump the build-tools group in /lightrag_webui with 3 updates
2025-12-26 14:17:36 +08:00
Daniel.y
9ecd4bcf0e
Merge pull request #2541 from HKUDS/dependabot/bun/lightrag_webui/ui-components-6a651e08cd
...
Bump lucide-react from 0.560.0 to 0.562.0 in /lightrag_webui in the ui-components group
2025-12-26 14:17:14 +08:00
Daniel.y
259af57511
Merge pull request #2540 from HKUDS/dependabot/bun/lightrag_webui/react-1183b8d6d3
...
Bump react-router-dom from 7.10.1 to 7.11.0 in /lightrag_webui in the react group
2025-12-26 14:16:48 +08:00
Daniel.y
e4221b86bf
Merge pull request #2543 from danielaskdd/token-expire-renew
...
feat: Implement WebUI Token Auto-Renewal (Sliding Window Expiration)
2025-12-26 14:09:46 +08:00
yangdx
e5d4f77b08
Fix linting
2025-12-26 13:05:40 +08:00
yangdx
4a41f86e65
Format token renewal time as human-readable string
...
- Change lastTokenRenewal type to string
- Add local time formatting helper
- Save readable time to localStorage
- Fix login arguments in API refresh call
2025-12-26 12:57:25 +08:00
yangdx
54f08cd768
Fix token renewal: exclude pipeline_status polling endpoint
...
- Add /documents/pipeline_status to TOKEN_RENEWAL_SKIP_PATHS
- Prevents continuous token renewal from 2-second polling
- Allows authenticated users to be logged out after inactivity
- Update env.example documentation with all polling intervals
2025-12-26 12:02:51 +08:00
yangdx
01aaded80c
Implement token auto-renewal and sliding window expiration mechanism
...
* Add backend token renewal logic
* Handle X-New-Token in frontend
* Add rate limiting and config options
* Implement silent refresh for guests
* Add unit tests for renewal logic
2025-12-26 11:31:48 +08:00
dependabot[bot]
c3482d97fe
Bump the build-tools group in /lightrag_webui with 3 updates
...
Bumps the build-tools group in /lightrag_webui with 3 updates: [@types/bun](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bun ), [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite ).
Updates `@types/bun` from 1.3.4 to 1.3.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bun )
Updates `typescript-eslint` from 8.49.0 to 8.50.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.50.0/packages/typescript-eslint )
Updates `vite` from 7.2.7 to 7.3.0
- [Release notes](https://github.com/vitejs/vite/releases )
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.0/packages/vite/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite/commits/v7.3.0/packages/vite )
---
updated-dependencies:
- dependency-name: "@types/bun"
dependency-version: 1.3.5
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: build-tools
- dependency-name: typescript-eslint
dependency-version: 8.50.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: build-tools
- dependency-name: vite
dependency-version: 7.3.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: build-tools
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-25 18:06:40 +00:00
dependabot[bot]
f3f2ac3d9a
Bump lucide-react in /lightrag_webui in the ui-components group
...
Bumps the ui-components group in /lightrag_webui with 1 update: [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react ).
Updates `lucide-react` from 0.560.0 to 0.562.0
- [Release notes](https://github.com/lucide-icons/lucide/releases )
- [Commits](https://github.com/lucide-icons/lucide/commits/0.562.0/packages/lucide-react )
---
updated-dependencies:
- dependency-name: lucide-react
dependency-version: 0.562.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: ui-components
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-12-25 18:06:09 +00:00
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