Commit Graph

6150 Commits

Author SHA1 Message Date
yangdx
62c71a9128 Update Docs 2025-12-30 18:00:25 +08:00
yangdx
d1c0a42feb Merge branch 'patch-4' 2025-12-30 13:26:50 +08:00
yangdx
705e700200 Update docs 2025-12-30 13:26:33 +08:00
Vishva R
c87f1067f5 Update PostgreSQL demo script reference in README.md 2025-12-30 10:33:31 +05:30
yangdx
abfae15421 Merge branch 'patch-3' 2025-12-30 11:16:32 +08:00
yangdx
846566f2d9 Rename postgres demo to gemini postgres demo and fix linting 2025-12-30 11:01:52 +08:00
Vishva R
838fff61b8 Add LightRAG demo with PostgreSQL and Gemini integration
This script demonstrates the integration of LightRAG with PostgreSQL and Google Gemini for document indexing and querying.
2025-12-29 23:57:51 +05:30
yangdx
95ef835e15 Bump API verstion to 0266 2025-12-28 15:59:38 +08:00
Daniel.y
ad198cb2f8 Merge pull request #2547 from mlimarenko/add-i18n-languages
Add i18n support for German, Ukrainian, Russian, and Japanese languages
2025-12-28 15:55:29 +08:00
Daniel.y
2ff9c69410 Merge pull request #2550 from danielaskdd/docx-extraction
Refact: Change DOCX extraction to use HTML tags for whitespace
2025-12-28 15:45:15 +08:00
yangdx
4ef52ec695 Change DOCX extraction to use HTML tags for whitespace
- Replace tabs with HTML em spaces
- Convert all newlines to break tags
2025-12-28 15:16:59 +08:00
Mikhail Limarenko
90823b77e2 Add i18n support for German, Ukrainian, Russian, and Japanese languages
Add translation files and update i18n configuration to support de, uk, ru, and ja locales
2025-12-28 00:40:20 +03:00
yangdx
3651c09c5a Update uv.lock 2025-12-26 17:57:14 +08:00
yangdx
edf3b51ff0 Merge remote-tracking branch 'origin/main' 2025-12-26 16:03:06 +08:00
Daniel.y
af4c9a00dd Merge branch 'HKUDS:main' into main 2025-12-26 16:00:58 +08:00
yangdx
5f7a025600 Bump llama-index to 0.14.0 for OpenAI 2.x compatibility
- Update llama-index to >=0.14.0
- Add llama-index-llms-openai dependency
- Ensure compatibility with openai 2.x
- Update pyproject.toml
- Update offline requirements files
2025-12-26 16:00:29 +08:00
yangdx
8b91b9b713 Update docs 2025-12-26 15:39:37 +08:00
yangdx
69a5dc8a77 Clarify conversation_history usage in QueryRequest description
- Update QueryRequest field help text
- Specify history is for LLM context
- Note exclusion from retrieval
2025-12-26 15:29:08 +08:00
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