yangdx
a1df76a4ea
Optimize LLM/embedding config caching to reduce repeated parsing overhead
...
• Add LLMConfigCache class for smart caching
• Pre-process OpenAI/Ollama configurations
• Create optimized function factories
• Reduce redundant option parsing calls
2025-09-05 16:36:08 +08:00
yangdx
17d665c9f3
Limit history messages to latest 1000 entries with truncation indicator
...
• Limit history to 1000 latest messages
• Add truncation message when needed
• Show count of truncated messages
• Update API documentation
• Prevent memory issues with large logs
2025-09-05 12:31:36 +08:00
yangdx
c903b14849
Bump AIP version to 0214 and update env.example
2025-09-04 12:04:50 +08:00
yangdx
0b07c022d6
Update webui assets and bump api version to 0213
2025-09-03 12:51:08 +08:00
yangdx
476b64c9d4
Update webui assets
2025-09-02 03:03:19 +08:00
yangdx
4e37ff5f2f
Bump API verstion to 0212
2025-09-02 03:02:39 +08:00
yangdx
30be70991d
Bump API version to 0211
2025-09-01 01:23:22 +08:00
yangdx
c8c59c38b0
Fix entity types configuration to support JSON list parsing
...
- Add JSON parsing for list env vars
- Update entity types example format
- Add list type support to get_env_value
2025-09-01 00:14:57 +08:00
yangdx
69890ff2e1
Bump core version to 1.4.8 and api version to 0210
2025-08-31 03:01:33 +08:00
yangdx
8bab240dbc
Update webui assets
2025-08-31 03:00:16 +08:00
yangdx
25b5d176cd
Fix label selection with leading/trailing whitespace
...
• Fix AsyncSelect value trimming issue
• Preserve whitespace in label display
• Use safe keys for command items
• Add GraphControl dependency fix
• Add debug logging for graph labels
2025-08-31 02:54:39 +08:00
yangdx
ae09b5c656
refactor: eliminate conditional imports and simplify LightRAG initialization
...
- Remove conditional import block, replace with lazy loading factory functions
- Add create_llm_model_func() and create_llm_model_kwargs() for clean configuration
- Update wrapper functions with lazy imports for better performance
- Unify LightRAG initialization, eliminating duplicate conditional branches
- Reduce code complexity by 33% while maintaining full backward compatibility
2025-08-31 00:18:29 +08:00
yangdx
332202c111
Fix lambda closure bug in embedding function configuration
...
• Replace lambda with proper async function
• Capture config values at creation time
• Avoid closure variable reference issues
• Add factory function for embeddings
• Remove test file for closure bug
2025-08-30 23:43:34 +08:00
avchauzov
414d47d12a
fix(server): Resolve lambda closure bug in embedding_func
...
Fixes #2023 . Resolves an issue where the embedding function would incorrectly fall back to the OpenAI provider if the server's configuration arguments were mutated after initialization. This was caused by a lambda function capturing a reference to the mutable 'args' object instead of capturing the configuration values at creation time.
2025-08-30 14:43:33 +02:00
yangdx
43f32e8d97
Bump api version to 0209
2025-08-29 19:42:06 +08:00
yangdx
925e631a9a
refac: Add robust time out handling for LLM request
2025-08-29 13:50:35 +08:00
yangdx
ff0a18e08c
Unify SUMMARY_LANGUANGE and ENTITY_TYPES implementation method
2025-08-27 12:23:22 +08:00
Thibo Rosemplatt
c3aabfc251
Merge branch 'main' into entityTypesServerSupport
2025-08-26 21:48:20 +02:00
yangdx
c259b8f22c
Update webui assets and bump aip verion to 0208
2025-08-26 23:05:00 +08:00
yangdx
6bcfe696ee
feat: add output length recommendation and description type to LLM summary
...
- Add SUMMARY_LENGTH_RECOMMENDED parameter (600 tokens)
- Optimize prompt temple for LLM summary
2025-08-26 14:41:12 +08:00
yangdx
cb0fe38b9a
Fix linting
2025-08-26 02:22:34 +08:00
yangdx
de2daf6565
refac: Rename summary_max_tokens to summary_context_size, comprehensive parameter validation for summary configuration
...
- Update algorithm logic in operate.py for better token management
- Fix health endpoint to use correct parameter names
2025-08-26 01:35:50 +08:00
Thibo Rosemplatt
f5938f76bc
Azure OpenAI requires import of OpenAILLMOptions (missing)
2025-08-24 00:28:49 +02:00
Thibo Rosemplatt
d054ec5d00
Added entity_types as a user defined variable (via .env)
2025-08-23 20:16:11 +02:00
yangdx
49ea9a79a7
Update rerank doc in README
2025-08-23 23:06:10 +08:00
yangdx
3d5e6226a9
Refactored rerank_example file to utilize the updated rerank function.
2025-08-23 22:51:41 +08:00
yangdx
1be9a54c8d
Rename ENABLE_RERANK to RERANK_BY_DEFAULT and update default to true
2025-08-23 09:46:51 +08:00
yangdx
7f404bbecb
Update webui assets and bump api version to 0207
2025-08-23 02:05:09 +08:00
yangdx
47485b130d
refac(ui): Show rerank binding info on status card
...
- Remove separate ENABLE_RERANK flag in favor of rerank_binding="null"
- Change default rerank binding from "cohere" to "null" (disabled)
- Update UI to display both rerank binding and model information
2025-08-23 02:04:14 +08:00
yangdx
bf43e1b8c1
fix: Resolve default rerank config problem when env var missing
...
- Read config from selected_rerank_func when env var missing
- Make api_key optional for rerank function
- Add response format validation with proper error handling
- Update Cohere rerank default to official API endpoint
2025-08-23 01:07:59 +08:00
yangdx
580cb7906c
feat: Add multiple rerank provider support to LightRAG Server by adding new env vars and cli params
...
- Add --enable-rerank CLI argument and ENABLE_RERANK env var
- Simplify rerank configuration logic to only check enable flag and binding
- Update health endpoint to show enable_rerank and rerank_configured status
- Improve logging messages for rerank enable/disable states
- Maintain backward compatibility with default value True
2025-08-22 19:29:45 +08:00
yangdx
105fb43a54
Updat webui assets and bump api version to 0206
2025-08-21 22:56:44 +08:00
yangdx
8c6b5f4a3a
Update README
2025-08-21 18:14:27 +08:00
yangdx
62cdc7d7eb
Update documentation with LLM selection guidelines and API improvements
2025-08-21 13:59:14 +08:00
yangdx
0e67ead8fa
Rename MAX_TOKENS to SUMMARY_MAX_TOKENS for clarity
2025-08-21 10:15:20 +08:00
yangdx
aa22772721
Refactor LLM temperature handling to be provider-specific
...
• Remove global temperature parameter
• Add provider-specific temp configs
• Update env example with new settings
• Fix Bedrock temperature handling
• Clean up splash screen display
2025-08-20 23:52:33 +08:00
yangdx
df7bcb1e3d
Add LLM_TIMEOUT configuration for all LLM providers
...
- Add LLM_TIMEOUT env variable
- Apply timeout to all LLM bindings
2025-08-20 23:50:57 +08:00
yangdx
4c556d8aae
Set default TIMEOUT value to 150, and gunicorn timeout to TIMEOUT+30
2025-08-20 22:04:32 +08:00
yangdx
9b7ed84e05
Improve document deletion error handling and message consistency
...
- Standardize deletion log messages
- Add try-catch for file operations
- Improve enqueued file error handling
2025-08-20 11:01:24 +08:00
yangdx
2603e99005
Enhance file deletion to remove files from both input and enqueued dirs
2025-08-19 17:13:58 +08:00
yangdx
1f86543772
Update i18n translation and webui assets
2025-08-19 16:23:05 +08:00
yangdx
0aa1bc8bf9
Update webui assets and bump api version to 0205
2025-08-19 15:11:34 +08:00
yangdx
9ed5b93467
Add [File Extraction] prefix to error messages and logs
2025-08-19 11:33:28 +08:00
yangdx
368d2b00d6
Update webui assets and bump api version to 0204
2025-08-18 19:33:46 +08:00
yangdx
377f1a022e
fix: reset PROCESSING/FAILED docs to PENDING at the beginging of document processing pipeline
...
- Reset documents with PROCESSING/FAILED status to PENDING when they pass consistency checks
- Update doc_status storage and clear error messages/metadata on reset
2025-08-18 00:49:52 +08:00
yangdx
add8b07a21
Improve logging messages for document processing clarity
2025-08-18 00:22:04 +08:00
yangdx
14e083a1a6
fix: replace pyuca with pypinyin for Chinese pinyin sorting and add file_path sort
2025-08-17 15:21:24 +08:00
yangdx
61469c0a56
Add Chinese pinyin sorting support across document operations
...
• Replace pyuca with centralized utils function
• Add pinyin sort keys for file paths
• Update MongoDB indexes with zh collation
• Migrate existing indexes for compatibility
• Support Chinese chars in Redis/JSON storage
• Keep PostgreSQL sorting order controled by Database Collate order
2025-08-17 12:45:48 +08:00
yangdx
6196bab00a
Update webui assets and bump api version to 0203
2025-08-17 10:39:16 +08:00
yangdx
3a7310873c
Merge branch 'bedrock-support'
2025-08-17 02:23:44 +08:00