Commit Graph

676 Commits

Author SHA1 Message Date
yangdx
d74a23d2cc Add multiple workers support for API Server 2025-02-25 09:37:00 +08:00
ArnoChen
e54aa276c8 Merge remote-tracking branch 'origin/main' into dev-webui 2025-02-24 19:00:06 +08:00
ArnoChen
69b36d855b build webui 2025-02-24 18:59:31 +08:00
yangdx
2e13def95c Remove unused global_top_k variable and related configurations. 2025-02-24 18:20:39 +08:00
yangdx
facf7c11fe Reduce knowledge graph max_depth from 100 to 3 2025-02-24 03:34:44 +08:00
yangdx
f29628125b Fix typo in parameter name from 'nodel_label' to 'node_label' 2025-02-24 02:36:36 +08:00
yangdx
f5efe5977b Merge branch 'clear-text-before-insert' into simplify-cli-arguments 2025-02-23 17:06:39 +08:00
yangdx
78e0ca7835 Change defautl timeout for LLM to 150s 2025-02-23 17:03:35 +08:00
yangdx
57884f2fb8 Refine LLM settings in env sample file 2025-02-23 16:52:41 +08:00
yangdx
df95f251dc Move server ready message to lifespan 2025-02-23 16:42:31 +08:00
yangdx
dbeda8a9ff Change scanning logs from INFO to DEBUG level 2025-02-23 16:12:08 +08:00
yangdx
460bc3a6aa update README.md and .env.example 2025-02-23 13:26:38 +08:00
yangdx
637d6756b8 Optimize RAG initialization for openai-ollama 2025-02-23 11:54:36 +08:00
yangdx
d84b90bcd4 Handle special case of CLI argument openai-ollama 2025-02-22 15:27:19 +08:00
yangdx
f9780830ad Revert: get llm-binding and embedding-binding from cli 2025-02-22 10:46:54 +08:00
yangdx
2fd997ca4f Merge branch 'clear-text-before-insert' into simplify-cmdline-arguments 2025-02-22 10:07:46 +08:00
yangdx
3c866eec16 Merge branch 'refactor-api-server' into clear-text-before-insert 2025-02-22 10:04:56 +08:00
yangdx
dff07e50a4 Merge branch 'main' into refactor-api-server 2025-02-21 21:12:02 +08:00
yangdx
b144e0c3b0 Sync modifications from main branch 2025-02-21 21:07:37 +08:00
yangdx
2fdbbc2062 Reorder and improve command line argument definitions for better organization
- Change verbose to store_true action
- Move verbose flag to logging section
- Move auto-scan flag to end of options
2025-02-21 20:01:43 +08:00
yangdx
a848884a7b Remove unnesessary CLI arguments, reduce CLI arguments complexity
• Move storage config from CLI
• Move LLM and embedding binding config from CLI
• Remove chunk config from CLI
2025-02-21 19:34:17 +08:00
yangdx
9ba12a4f31 refactor: remove redundant top_k checks in query routes
The top_k parameter already has a default value set in the QueryParam class (base.py), making these checks unnecessary. This change simplifies the code while maintaining the same functionality.

Changes:

Remove top_k check in query_text function
Remove top_k check in query_text_stream function
2025-02-21 18:53:43 +08:00
yangdx
e8efcc335d Add access log filtering to reduce noise from high-frequency API endpoints 2025-02-21 17:53:01 +08:00
yangdx
1749678384 Fix linting 2025-02-21 12:16:04 +08:00
Saifeddine ALOUI
ed9dc799b0 Merge branch 'HKUDS:main' into main 2025-02-20 18:15:55 +01:00
Yannick Stephan
678e0f9aea Revert "Cleanup of code" 2025-02-20 15:09:43 +01:00
Yannick Stephan
439685e69c Revert "removed get_knowledge_graph" 2025-02-20 14:29:36 +01:00
Saifeddine ALOUI
c3c3c87494 Added instructions on how to install age for postgresql 2025-02-20 11:55:09 +01:00
Saifeddine ALOUI
167fa82363 Fixed linting 2025-02-20 11:38:07 +01:00
Saifeddine ALOUI
3f3e9ef367 Upgraded webui to show more upload options and added building without using bun to the webui 2025-02-20 11:25:57 +01:00
Saifeddine ALOUI
3627b4485f Upgraded webui to support more files 2025-02-20 11:14:48 +01:00
Saifeddine ALOUI
38b62d58ad Added extra extentions 2025-02-20 10:59:07 +01:00
yangdx
f52b9929bb fix: add missing rag parameter in pipeline_enqueue_file call
• Add rag param to function call
• Fix argument mismatch error
• Ensure proper pipeline execution
2025-02-20 14:48:54 +08:00
yangdx
82a4cb3e79 Fix refactoring error on document handling
- Fix refactoring error on pipeline_index_file
- Delete unsed func: scan_directory
- Add type hints of rag for better maintainability
- Refine comments for better understanding
2025-02-20 14:30:41 +08:00
yangdx
62e1fe5df2 Change Ollama API router tag to lowercase 2025-02-20 14:23:33 +08:00
yangdx
57cdab2b2b Add tags to OllamaAPI router 2025-02-20 12:33:43 +08:00
yangdx
5d884f6d3e refactor: centralize configuration and utility functions
- Move parse_args and display_splash_screen functions from lightrag_server.py to utils_api.py
- Move OllamaServerInfos class and instance from ollama_api.py to utils_api.py
2025-02-20 12:12:20 +08:00
Yannick Stephan
89c35c82c7 removed get_knowledge_graph 2025-02-19 22:57:46 +01:00
Yannick Stephan
eb3306f34c cleanup 2025-02-19 22:52:49 +01:00
yangdx
a8abcf14ac Fit linting 2025-02-20 04:12:21 +08:00
yangdx
3c080a9ebf Enhance webui mounting with root endpoint and directory check.
- Added FileResponse for webui root endpoint
- Enabled directory check in StaticFiles mount
- Improved webui static file handling
- Ensured webui directory existence
- Simplified webui access with root endpoint
2025-02-20 04:04:54 +08:00
yangdx
c0c87edc45 split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
Yannick Stephan
c79b15c1cc Merge pull request #844 from danielaskdd/add-duplicate-check
Fix office file indexing problem
2025-02-19 08:34:40 +01:00
yangdx
32bfcbb332 Revert "Improved document enqueue logic with existence checks" 2025-02-19 13:39:50 +08:00
Yannick Stephan
ccb117e1c6 Merge pull request #846 from ArnoChenFx/db-connection-and-storage-lifecycle
Refactor Database Connection Management and Improve Storage Lifecycle Handling
2025-02-18 22:39:31 +01:00
ArnoChen
ca170ce783 rename is_managed_by_server to auto_manage_storages_states 2025-02-19 05:27:38 +08:00
Yannick Stephan
e0ecb4777e fixed missing install 2025-02-18 22:24:59 +01:00
ArnoChen
f3b030e1a3 revert temp changes 2025-02-19 04:53:33 +08:00
ArnoChen
6d8e627f85 improve MongoDB client management and storage init 2025-02-19 04:30:52 +08:00
ArnoChen
e194e04226 refactor database connection management and improve storage lifecycle handling
update
2025-02-19 03:49:05 +08:00