Commit graph

5875 commits

Author SHA1 Message Date
daohp
00a54c1c44 refactor: Simplify history router initialization
- Removed the prefix from the history router to streamline the API structure.
- Adjusted the router configuration for improved clarity and maintainability.
2025-12-03 14:52:38 +07:00
daohp
c05434aab1 refactor: Update session management and logging in query routes
- Removed legacy import statements and integrated session history management directly into query routes.
- Enhanced logging functionality to capture session details and errors more effectively.
- Updated README.md to comment out the environment variable setup command for clarity.
2025-12-03 14:42:37 +07:00
daohp
74d615234e refactor: Clean up Dockerfile by removing service code and initialization commands
- Removed the service code copy and database initialization commands from the Dockerfile to streamline the build process.
- Maintained environment variable settings and API port exposure for continued functionality.
2025-12-03 14:27:42 +07:00
daohp
7d9d31b6f3 feat: Add session history feature to LightRAG API
- Introduced a new session history feature that tracks and manages conversation history across multiple chat sessions.
- Implemented REST API endpoints for creating, listing, retrieving, and deleting chat sessions.
- Enhanced error handling and logging for session management operations.
- Updated README.md to include documentation for the new session history feature and its usage.
2025-12-03 14:24:10 +07:00
dangddt
35e86d0aa7 feat: Enhance database initialization and update Docker configuration
- Updated the database initialization logic to check for existing tables before creation, improving efficiency and preventing errors.
- Added new external dependencies to the Dockerfile for better service functionality.
- Removed the requirements.txt file as dependencies are now managed through the pyproject.toml.
- Adjusted Dockerfile to include service code and initialization commands for the database.
2025-12-03 11:40:35 +07:00
dangddt
d924577cc5 feat: Decouple user management from history service by removing the User model, using string user_ids, and renaming history tables. 2025-12-02 17:28:51 +07:00
dangddt
854dc67c12 feat: Introduce OAuth2 authentication to history routes, replacing the default user with authenticated user management. 2025-12-02 14:10:26 +07:00
dangddt
2abfc08a77 feat: Implement new backend service for chat session and history management with database integration, API, and UI updates. 2025-12-02 13:55:53 +07:00
Hầu Phi Dao
b4bccbc960
Merge branch 'HKUDS:main' into main 2025-12-02 09:14:43 +07:00
yangdx
445adfc9cb Add name to lint-and-format job in GitHub workflow 2025-12-02 05:17:28 +08:00
Daniel.y
d0509d6f27
Merge pull request #2448 from HKUDS/dependabot/github_actions/github-actions-b6ffb444c9
Bump the github-actions group with 7 updates
2025-12-02 05:08:59 +08:00
Daniel.y
b2f1de4ac2
Merge pull request #2447 from danielaskdd/dependabot
chore: optimize Dependabot configuration with dependency grouping and PR limits
2025-12-02 05:02:28 +08:00
yangdx
f93bda5859 Enable numpy updates in dependabot configuration
- Re-enable numpy in data-processing group
- Remove numpy from ignore list
- Allow minor and patch updates
- Remove breaking change comment
2025-12-02 04:50:28 +08:00
dependabot[bot]
88357675ea
Bump the github-actions group with 7 updates
Bumps the github-actions group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `2` | `6` |
| [actions/setup-python](https://github.com/actions/setup-python) | `2` | `6` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `5` | `6` |
| [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) | `1` | `2` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `5` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `6` |
| [actions/stale](https://github.com/actions/stale) | `9` | `10` |


Updates `actions/checkout` from 2 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v6)

Updates `actions/setup-python` from 2 to 6
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v6)

Updates `docker/build-push-action` from 5 to 6
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

Updates `oven-sh/setup-bun` from 1 to 2
- [Release notes](https://github.com/oven-sh/setup-bun/releases)
- [Commits](https://github.com/oven-sh/setup-bun/compare/v1...v2)

Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

Updates `actions/download-artifact` from 4 to 6
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v6)

Updates `actions/stale` from 9 to 10
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9...v10)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/build-push-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: oven-sh/setup-bun
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 20:45:49 +00:00
yangdx
0f19f80fdb Configure comprehensive Dependabot for Python and frontend dependencies
- Add pip ecosystem with grouping
- Add bun ecosystem for webui
- Set weekly update schedule
- Configure cooldown periods
- Ignore numpy breaking changes
2025-12-02 04:28:59 +08:00
yangdx
ecef842cb5 Update GitHub Actions to use latest versions (v6) 2025-12-02 03:47:47 +08:00
Daniel.y
6fee81f503
Merge pull request #2435 from cclauss/patch-1
Keep GitHub Actions up to date with GitHub's Dependabot
2025-12-02 03:45:58 +08:00
Daniel.y
27805b9a75
Merge pull request #2436 from cclauss/patch-2
Add Python 3.13 and 3.14 to the testing
2025-12-02 03:04:43 +08:00
yangdx
268e4ff6f1 Refactor dependencies and add test extra in pyproject.toml
• Pin httpx version in api extra
• Extract test dependencies to new extra
• Move httpx pin from evaluation to api
• Add api dependency to evaluation extra
• Separate test from evaluation concerns
2025-12-02 03:02:43 +08:00
yangdx
2ecf77efe2 Update help text to use correct gunicorn command with workers flag 2025-12-02 02:52:31 +08:00
yangdx
fc44f11368 Remove future dependency and replace passlib with direct bcrypt 2025-12-02 02:46:55 +08:00
Daniel.y
48b6a6df37
Merge pull request #2446 from danielaskdd/fix-postgres
fix(postgres): Add CASCADE to AGE extension creation for automatic dependency resolution
2025-12-02 00:27:59 +08:00
yangdx
d6019c82af Add CASCADE to AGE extension creation in PostgreSQL implementation
- Add CASCADE option to CREATE EXTENSION
- Ensure dependencies are installed
- Fix potential AGE setup issues
2025-12-02 00:17:41 +08:00
Daniel.y
607c11c083
Merge pull request #2443 from danielaskdd/fix-ktax
Fix KaTeX chemistry formula rendering (\ce command) not working
2025-12-01 13:14:00 +08:00
yangdx
3f6423df33 Fix KaTeX extension loading by moving imports to app startup
• Move mhchem/copy-tex to main.tsx
• Add katex to Vite dedupe config
• Remove dynamic extension loading
• Ensure extensions available globally
• Fix chemistry formula rendering
2025-12-01 12:44:04 +08:00
yangdx
112ed234c4 Bump API version to 0258 2025-12-01 12:20:27 +08:00
yangdx
8f4bfbf1a3 Add KaTeX copy-tex extension support for formula copying 2025-12-01 12:20:17 +08:00
yangdx
aeaa0b32f9 Add mhchem extension support for chemistry formulas in ChatMessage 2025-12-01 12:16:43 +08:00
chaohuang-ai
0aa77fdbcb
Merge pull request #2439 from HKUDS/chaohuang-ai-patch-1
Update README.md
2025-11-30 00:17:29 +08:00
chaohuang-ai
5c9642675b
Update README.md 2025-11-30 00:17:04 +08:00
Christian Clauss
d2ab7fb246
Add Python 3.13 and 3.14 to the testing 2025-11-28 16:15:16 +01:00
Christian Clauss
90e38c20ca
Keep GitHub Actions up to date with GitHub's Dependabot
* [Keeping your software supply chain secure with Dependabot](https://docs.github.com/en/code-security/dependabot)
* [Keeping your actions up to date with Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot)
* [Configuration options for the `dependabot.yml` file - package-ecosystem](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem)

To see all GitHub Actions dependencies, type:
% `git grep 'uses: ' .github/workflows/`
2025-11-28 15:04:53 +01:00
Daniel.y
8eb63d9bad
Merge pull request #2434 from cclauss/patch-1
Fix typos discovered by codespell
2025-11-28 21:59:29 +08:00
Daniel.y
b670544958
Merge pull request #2433 from danielaskdd/fix-jina-embedding
Fix: Add configurable model support for Jina embedding
2025-11-28 19:36:18 +08:00
yangdx
ea8d55ab42 Add documentation for embedding provider configuration rules 2025-11-28 17:49:30 +08:00
Christian Clauss
90f341d614
Fix typos discovered by codespell 2025-11-28 10:31:52 +01:00
yangdx
4ab4a7ac94 Allow embedding models to use provider defaults when unspecified
- Set EMBEDDING_MODEL default to None
- Pass model param only when provided
- Let providers use their own defaults
- Fix lollms embed function params
- Add ollama embed_model default param
2025-11-28 16:57:33 +08:00
yangdx
881b8d3a50 Bump API version to 0257 2025-11-28 15:39:55 +08:00
yangdx
56e0365cf0 Add configurable model parameter to jina_embed function
- Add model parameter to jina_embed
- Pass model from API server
- Default to jina-embeddings-v4
- Update function documentation
- Make model selection flexible
2025-11-28 15:38:29 +08:00
Daniel.y
1b02684e2f
Merge pull request #2432 from danielaskdd/embedding-example
Doc: Update README examples to prevent double-wrapping of embedding functions
2025-11-28 15:24:52 +08:00
yangdx
97a9dfcac0 Add important note about embedding function wrapping restrictions 2025-11-28 14:55:15 +08:00
yangdx
1d07ff7f60 Update OpenAI and Ollama embedding func examples in README 2025-11-28 14:41:29 +08:00
yangdx
6e2946e78a Add max_token_size parameter to azure_openai_embed wrapper 2025-11-28 13:41:01 +08:00
yangdx
4f12fe121d Change entity extraction logging from warning to info level
• Reduce log noise for empty entities
2025-11-27 11:00:34 +08:00
yangdx
93d445dfdd Add pipeline status lock function for legacy compatibility
- Add get_pipeline_status_lock function
- Return NamespaceLock for consistency
- Support workspace parameter
- Enable logging option
- Legacy code compatibility
2025-11-25 18:24:39 +08:00
Daniel.y
d2cd1c0722
Merge pull request #2421 from EightyOliveira/fix_catch_order
fix:exception handling order error
2025-11-25 17:52:56 +08:00
yangdx
777c91794b Add Langfuse observability configuration to env.example
- Add Langfuse environment variables
- Include setup instructions
- Support OpenAI compatible APIs
- Enable tracing configuration
- Add cloud/self-host options
2025-11-25 17:16:55 +08:00
EightyOliveira
8994c70f2f fix:exception handling order error 2025-11-25 16:36:41 +08:00
Hầu Phi Dao
e072d9ebaf
Merge branch 'HKUDS:main' into main 2025-11-25 13:40:12 +07:00
Daniel.y
2539b4e2c8
Merge pull request #2418 from danielaskdd/start-without-webui
Refact: Allow API Server to Start Without Built WebUI Assets
2025-11-25 03:02:15 +08:00