yangdx
0affee1eef
Rename startup script and service files for better clarity
...
• Renamed start_lightrag.sh to lightrag-api
• Renamed service file to lightrag.service
• Updated service file to use new script name
• Made file names more consistent
2025-02-07 10:54:13 +08:00
zrguo
0005462d4d
Merge pull request #723 from danielaskdd/improve-ollama-api-streaming
...
Improve error handling
2025-02-07 02:18:54 +08:00
yangdx
349dcf7d47
Merge branch 'main' into improve-ollama-api-streaming
2025-02-07 00:07:25 +08:00
zrguo
9db1db2b38
Merge pull request #722 from danielaskdd/fix-mutable-default-param
...
Fix mutable default param
2025-02-06 23:32:11 +08:00
zrguo
3b34ece04e
Merge pull request #720 from danielaskdd/add-keyword-extraction-param-for-llm
...
fix: add keyword_extraction param support for LLM func of API Server
2025-02-06 23:31:53 +08:00
yangdx
8fdba5d4db
Fix linting
2025-02-06 23:12:35 +08:00
yangdx
c838229f05
Remove Chinese comments and added English comments for clarity
2025-02-06 23:10:15 +08:00
yangdx
81377da418
Merge tag 'time-temp' into improve-ollama-api-streaming
2025-02-06 23:00:32 +08:00
yangdx
2760433634
Add LightRAG version to User-Agent header for better request tracking
...
• Add User-Agent header with version info
• Update header creation in Ollama client
• Update header creation in OpenAI client
• Ensure consistent header format
• Include Mozilla UA string for OpenAI
2025-02-06 22:55:22 +08:00
yangdx
6ca7487cac
Update timeout and max_retries for unit tests
2025-02-06 19:56:18 +08:00
yangdx
506e39e14e
Enhance OpenAI API error handling and logging for better reliability
...
• Add InvalidResponseError custom exception
• Improve error logging for API failures
• Add empty response content validation
• Add more detailed debug logging info
• Add retry for invalid response cases
2025-02-06 19:42:57 +08:00
yangdx
290a4d5ec0
Fix linting
2025-02-06 16:24:02 +08:00
yangdx
070501fdaa
Merge branch 'add-keyword-extraction-param-for-llm' into fix-mutable-default-param
2025-02-06 16:22:30 +08:00
yangdx
eb9883d8da
fix: add keyword_extraction param support for LLM func of API Server
2025-02-06 15:56:18 +08:00
yangdx
eb5f57e989
fix: Fix potential mutable default parameter issue
2025-02-06 14:46:07 +08:00
✨Data Intelligence Lab@HKU✨
4f9a5fdbb4
Update README.md
2025-02-06 12:21:20 +08:00
yangdx
9103e7f463
fix: improve timing accuracy and variable scoping in OllamaAPI
2025-02-06 10:42:49 +08:00
yangdx
e124ad7f9c
Fix timing calculation logic in OllamaAPI stream generators
...
• Initialize first_chunk_time as None
• Set timing only when first chunk arrives
2025-02-06 04:53:05 +08:00
yangdx
e49d3665aa
Fix linting
2025-02-06 03:18:05 +08:00
yangdx
9242f16cc1
Add error handling and improve logging for concurrent request testing
...
• Added McpError and ErrorCode classes
• Added detailed error collection logic
• Improved error reporting & formatting
• Added request ID tracking
• Enhanced test results visibility
2025-02-06 03:17:27 +08:00
yangdx
65dc0a6cfd
Fix linting
2025-02-06 02:50:27 +08:00
yangdx
e26c6e564d
refactor: enhance stream error handling and optimize code structure
...
- Initialize timestamps at start to avoid null checks
- Add detailed error handling for streaming response
- Handle CancelledError and other exceptions separately
- Unify exception handling with trace_exception
- Clean up redundant code and simplify logic
2025-02-06 02:43:06 +08:00
yangdx
b21d38802c
Merge branch 'main' into improve-error-handling
2025-02-06 02:35:33 +08:00
zrguo
a49ee2ce71
Merge pull request #719 from danielaskdd/fix-env-reading-problem
...
Fixing .env file loading problem for Ollama API module
2025-02-06 02:05:00 +08:00
zrguo
500ddd2965
Merge pull request #718 from ArnoChenFx/fix-lightrag-viewer
...
fix graph viewer crash on macos when show file dialog
2025-02-06 02:03:26 +08:00
yangdx
fd9b3b2658
Fix splash screen SSL line connector type.
2025-02-06 01:21:42 +08:00
yangdx
db9b4dc841
Added environment variable loading with dotenv in Ollama API
2025-02-06 01:00:49 +08:00
ArnoChen
1b37c3be4e
format
2025-02-06 00:23:41 +08:00
ArnoChen
81da351d08
Merge branch 'main' into fix-lightrag-viewer
2025-02-06 00:22:51 +08:00
ArnoChen
88173e2b34
fix graph viewer crash on macos when show file dialog
2025-02-06 00:18:27 +08:00
zrguo
a927545b4b
Merge pull request #717 from danielaskdd/split-ollama-api-to-separated-file
...
Split ollama api to separated file
2025-02-05 23:26:53 +08:00
yangdx
1a61d9ee7f
Fix linting
2025-02-05 22:29:07 +08:00
yangdx
f703334ce4
Split the Ollama API implementation to a separated file
2025-02-05 22:15:14 +08:00
zrguo
2bbf451fa0
Merge pull request #712 from danielaskdd/handle-stream-cancel-error
...
Improve LLM Error Handling for API Server
2025-02-05 13:47:17 +08:00
yangdx
f77faf8023
Fix linting
2025-02-05 12:36:52 +08:00
yangdx
4663dcfbab
Merge branch 'main' into handle-stream-cancel-error
2025-02-05 12:27:05 +08:00
yangdx
f1ea7f7415
update error response format in streaming API to a normal message. So user can get what's going on.
2025-02-05 11:07:31 +08:00
yangdx
24effb127d
Improve error handling and response consistency in streaming endpoints
...
• Add error message forwarding to client
• Handle stream cancellations gracefully
• Add logging for stream errors
• Ensure clean stream termination
• Add try-catch in OpenAI streaming
2025-02-05 10:44:48 +08:00
yangdx
ff40e61fad
Fix linting
2025-02-05 09:47:39 +08:00
yangdx
69f200faf2
feat: improve error handling for streaming responses
...
• Add CancelledError handling for streams
• Send error details to client in JSON
• Add error status codes and messages
• Always send final completion marker
• Refactor stream generator error handling
2025-02-05 09:46:56 +08:00
zrguo
e2d164e8c8
Update README.md
2025-02-05 03:52:59 +08:00
zrguo
294291b7e0
Merge pull request #711 from ArnoChenFx/fix-issue-#706
...
fix doc_key filtering logic to handle dict status
2025-02-05 03:48:18 +08:00
ArnoChen
57b015bee1
fix doc_key filtering logic to handle dict status
2025-02-05 03:22:22 +08:00
zrguo
5694bf78ed
Merge pull request #710 from ArnoChenFx/visualizer-module-reorg
...
split lightrag_visualizer into separate module and update entry point
2025-02-05 03:01:43 +08:00
zrguo
8b2a6d1ae5
modify README-zh.md
2025-02-05 02:59:51 +08:00
ArnoChen
c8a45daf02
split lightrag_visualizer into separate module and update entry point
2025-02-05 02:56:14 +08:00
zrguo
3211816da8
Reapply "fix mongo impl"
2025-02-05 02:48:12 +08:00
zrguo
7a5ccdfe01
Merge pull request #709 from ArnoChenFx/reintroduce-pr-703
...
Reapply "Integrated the GraphML Visualizer as an optional component of LightRAG"
2025-02-05 02:38:16 +08:00
ArnoChen
a59bb7d4ba
update LightRAG repository URL in README
2025-02-05 02:36:43 +08:00
zrguo
1c2545b38a
Revert "Merge pull request #708 from ArnoChenFx/fix-mongo-impl"
...
This reverts commit ad2a82e5e4
, reversing
changes made to 7b238dbc3e
.
2025-02-05 02:36:38 +08:00