Commit Graph

1914 Commits

Author SHA1 Message Date
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
yangdx
a8abcf14ac Fit linting 2025-02-20 04:12:21 +08:00
yangdx
f776db0779 Improved document status retrieval with content fallback.
- Added content fallback to content_summary
- Handled missing fields gracefully
- Made data copy to avoid modification
- Added error logging for missing fields
- Improved code readability and robustness
2025-02-20 04:09:02 +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
36de7e3197 Add test_* pattern to .gitignore for unit test files 2025-02-20 03:46:36 +08:00
yangdx
a64ba7b4da Update dependencies and clean up requirements.txt
- Added 'future' package
- Removed 'networkx' package
- Cleaned up commented sections
- Maintained core dependencies
- Simplified requirements structure
2025-02-20 03:45:23 +08:00
yangdx
c0c87edc45 split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
Yannick Stephan
0b795aa183 Merge pull request #870 from YanSte/back-age-2
back age
2025-02-19 15:10:25 +01:00
Yannick Stephan
ad07f22cc8 back age 2025-02-19 15:09:41 +01:00
Yannick Stephan
1e3fa84c2e Merge pull request #869 from YanSte/back-age
Fallback Age
2025-02-19 14:27:41 +01:00
Yannick Stephan
48377d91ef back age 2025-02-19 14:26:46 +01:00
Yannick Stephan
2dcfad2cff Merge pull request #867 from YanSte/postgres-update
improved code of postgress and execution
2025-02-19 13:55:42 +01:00
Yannick Stephan
fc151e5866 cleaned code 2025-02-19 13:54:27 +01:00
Yannick Stephan
495b0ddbe0 fixed networkx 2025-02-19 13:48:18 +01:00
Yannick Stephan
4adb4418fd cleaned code 2025-02-19 13:42:49 +01:00
Yannick Stephan
05147f4799 improved code of postgress and execution 2025-02-19 13:31:30 +01:00
Yannick Stephan
c285191971 Merge pull request #857 from YanSte/doc-2
Updated doc
2025-02-19 09:59:08 +01:00
Yannick Stephan
e8c1aa8d5d updated doc 2025-02-19 09:58:25 +01:00
Yannick Stephan
d6d99c3de6 Merge pull request #856 from YanSte/documentation
updated docs
2025-02-19 09:50:59 +01:00
Yannick Stephan
85d5a5c6dc updated docs 2025-02-19 09:50:24 +01: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
zrguo
b7762af0a6 Update version 2025-02-19 11:29:49 +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
c7176a43d9 Merge pull request #848 from YanSte/fix
fixed missing install
2025-02-18 22:25:33 +01:00
Yannick Stephan
e0ecb4777e fixed missing install 2025-02-18 22:24:59 +01:00
Yannick Stephan
2c99dfc34f Merge pull request #842 from YanSte/server
Lightrag Server Launch fix.
2025-02-18 22:16:48 +01:00
ArnoChen
bfc548edf2 change init=False to default=None for db fields to prevent no attribute error 2025-02-19 04:55:59 +08:00
ArnoChen
f3b030e1a3 revert temp changes 2025-02-19 04:53:33 +08:00
ArnoChen
f50604b2d3 improve conditional checks for db instance 2025-02-19 04:53:15 +08:00
ArnoChen
ae7a850d4e create mongodb vector index only if not exists 2025-02-19 04:37:43 +08:00
ArnoChen
6d8e627f85 improve MongoDB client management and storage init 2025-02-19 04:30:52 +08:00
Yannick Stephan
29582fdcbd Merge pull request #847 from YanSte/clean-up
Cleaned typing
2025-02-18 21:18:16 +01:00
Yannick Stephan
aa4a5cea7c cleaned typing 2025-02-18 21:16:52 +01:00
ArnoChen
7a970451b9 fix examples 2025-02-19 04:12:16 +08:00
Yannick Stephan
55cd900e8e clean comments and unused libs 2025-02-18 21:12:06 +01:00
ArnoChen
e194e04226 refactor database connection management and improve storage lifecycle handling
update
2025-02-19 03:49:05 +08:00
Yannick Stephan
011227e426 cleanup no required install 2025-02-18 20:27:59 +01:00
Yannick Stephan
ea41d08b9f removed torch from requirement lightrag server 2025-02-18 20:05:51 +01:00
Yannick Stephan
2524e02428 remove tqdm and cleaned readme and ollama 2025-02-18 19:58:03 +01:00
Yannick Stephan
24ae083284 removed never used method 2025-02-18 19:38:04 +01:00
yangdx
8196df83f8 Fix linting 2025-02-19 01:39:25 +08:00
yangdx
d34dbc5717 Improved document enqueue logic with existence checks.
- Added return status to `apipeline_enqueue_documents`
- Enhanced logging for duplicate documents
2025-02-19 01:35:34 +08:00
yangdx
cac93424d9 Added support for reading .xlsx files in LightRAG.
- Install openpyxl if not present
- Load .xlsx file using openpyxl
- Extract sheet titles and content
- Format rows with tab-separated values
- Append sheet content to overall text
2025-02-19 01:34:51 +08:00
yangdx
9c45824e78 Optimize file handling for DOCX and PPTX processing.
- Removed redundant file content reading.
- Directly passed file to BytesIO.
- Simplified DOCX content extraction.
- Streamlined PPTX slide processing.
- Reduced memory usage in file handling.
2025-02-19 01:34:25 +08:00