Commit Graph

2074 Commits

Author SHA1 Message Date
Pankaj Kaushal
6f09bfc970 Update LlamaIndex README: improve documentation and example paths
- Updated file paths for LlamaIndex examples
- Simplified README structure
- Corrected import statements to reflect new directory layout
- Removed outdated wrapper directory references
2025-02-20 10:33:15 +01:00
Pankaj Kaushal
9934241a1e Update README.md: Refactor LlamaIndex section and example code
- Simplified LlamaIndex documentation in README
- Removed wrapper directory references
- Updated example code to reflect new directory structure
- Cleaned up custom knowledge graph example
- Adjusted file paths and import statements
2025-02-20 10:31:19 +01:00
Pankaj Kaushal
173a806b9a Moved back to llm dir as per
https://github.com/HKUDS/LightRAG/pull/864#issuecomment-2669705946

- Created two new example scripts demonstrating LightRAG integration with LlamaIndex:
  - `lightrag_llamaindex_direct_demo.py`: Direct OpenAI integration
  - `lightrag_llamaindex_litellm_demo.py`: LiteLLM proxy integration
- Both examples showcase different search modes (naive, local, global, hybrid)
- Includes configuration for working directory, models, and API settings
- Demonstrates text insertion and querying using LightRAG with LlamaIndex
- removed wrapper directory and references to it
2025-02-20 10:23:01 +01:00
Pankaj Kaushal
277070e03b Linting and formatting 2025-02-20 10:23:01 +01:00
Pankaj Kaushal
04604841c9 Add logger import 2025-02-20 10:23:01 +01:00
Pankaj Kaushal
203fdf2565 Remove LlamaIndex implementation from llm directory as per @MdNazishArmanShorthillsAI
- Deleted `lightrag/llm/llama_index_impl.py`
- Reorganization of the LlamaIndex wrapper location
2025-02-20 10:23:01 +01:00
Pankaj Kaushal
8a06be9395 Add LlamaIndex Wrapper and Example Implementations
- Updated README.md with new Wrappers section detailing LlamaIndex integration
- Added LlamaIndex wrapper implementation in `lightrag/wrapper/llama_index_impl.py`
- Created two example scripts demonstrating LlamaIndex usage:
  - Direct OpenAI integration
  - LiteLLM proxy integration
- Added wrapper documentation in `lightrag/wrapper/Readme.md`
- Included comprehensive usage examples and configuration details
2025-02-20 10:23:01 +01:00
Pankaj Kaushal
3b25e32e8d Removed verbose module-level documentation 2025-02-20 10:23:01 +01:00
Pankaj Kaushal
0b94117848 Add LlamaIndex LLM implementation module
- Implemented LlamaIndex interface for language model interactions
- Added async chat completion support
- Included embedding generation functionality
- Implemented retry mechanisms for API calls
- Added configuration and message formatting utilities
- Supports OpenAI-style message handling and external settings
2025-02-20 10:23:01 +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
zrguo
fbe7e9994d revert 2025-02-20 14:44:06 +08:00
zrguo
c8eaa45024 add Chinese template 2025-02-20 14:42:13 +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
26abae4733 Merge pull request #891 from YanSte/lock
added lock
2025-02-20 00:21:28 +01:00
Yannick Stephan
fa99d72269 added lock 2025-02-20 00:20:30 +01:00
Yannick Stephan
bf720b131b Merge pull request #890 from YanSte/paralle-4
fixed the behaviour Multi paralle
2025-02-20 00:11:37 +01:00
Yannick Stephan
80a61d7e7a fixed the behaviour 2025-02-20 00:09:46 +01:00
Yannick Stephan
f52c53b41c Merge pull request #889 from YanSte/parelle-3
Multi batches
2025-02-19 23:55:59 +01:00
Yannick Stephan
efdc8a2d26 multi batches 2025-02-19 23:53:25 +01:00
Yannick Stephan
64e6765c9a Merge pull request #888 from YanSte/parelle-2
Parelle
2025-02-19 23:47:36 +01:00
Yannick Stephan
4875283d9f make it smalled 2025-02-19 23:45:51 +01:00
Yannick Stephan
0567a68c31 Merge pull request #887 from YanSte/paralle
Improved Paralles
2025-02-19 23:32:57 +01:00
Yannick Stephan
98d005dc1c updated paralle 2025-02-19 23:32:21 +01:00
Yannick Stephan
cedb5f3975 Merge pull request #886 from YanSte/clean-2
removed get_knowledge_graph
2025-02-19 22:59:10 +01:00
Yannick Stephan
89c35c82c7 removed get_knowledge_graph 2025-02-19 22:57:46 +01:00
Yannick Stephan
4978379b9c Merge pull request #885 from YanSte/remove-unsused
Cleanup of code
2025-02-19 22:54:58 +01:00
Yannick Stephan
eb3306f34c cleanup 2025-02-19 22:52:49 +01:00
Yannick Stephan
48a1ad9b3b Merge pull request #883 from YanSte/fix-return-none
Optimised returns
2025-02-19 22:24:50 +01:00
Yannick Stephan
9277fe8c29 fixed return 2025-02-19 22:22:41 +01:00
Yannick Stephan
3e118f0935 Merge pull request #882 from YanSte/cleaning
cleaned code
2025-02-19 22:08:47 +01:00
Yannick Stephan
8958046b74 cleaned code 2025-02-19 22:07:25 +01:00
Yannick Stephan
963323ff33 Merge pull request #873 from ParisNeo/main
Removed all useless try except around imports as pipmaster already handles that
2025-02-19 21:20:56 +01: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
Saifeddine ALOUI
45ee4dd08c fixed linting 2025-02-19 20:50:39 +01: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
Yannick Stephan
af88e92705 Merge pull request #876 from YanSte/template3
Updated templates
2025-02-19 20:29:27 +01:00
Yannick Stephan
05914213e2 updated templates 2025-02-19 20:27:56 +01:00
Saifeddine ALOUI
29cc12b56c Merge branch 'HKUDS:main' into main 2025-02-19 20:26:48 +01:00
yangdx
c0c87edc45 split lightrag_servery.py to smaller files 2025-02-20 03:26:39 +08:00
Yannick Stephan
95185d6e38 Merge pull request #875 from YanSte/template2
updated template
2025-02-19 20:19:03 +01:00
Yannick Stephan
fb5938aac4 updated template 2025-02-19 20:18:32 +01:00
Yannick Stephan
27d4f4b577 Merge pull request #874 from YanSte/template
Template github
2025-02-19 20:08:17 +01:00
Yannick Stephan
098f811ad2 add template github 2025-02-19 20:07:34 +01:00
Saifeddine ALOUI
fbc9a95b7f Merge branch 'HKUDS:main' into main 2025-02-19 19:53:14 +01:00