Commit graph

5007 commits

Author SHA1 Message Date
Daniel.y
a6c2ac1e50
Merge pull request #2114 from danielaskdd/fix-error-msg-display
Fix WebUI: Enhance tooltip readability by fix tooltip text wrapping of error message
2025-09-17 02:59:39 +08:00
yangdx
89a4471ae1 Bump core version to v1.4.9 2025-09-17 02:57:28 +08:00
yangdx
e644a3e02f Adjust OpenAI temperature default and add mitigation guidance 2025-09-17 02:56:05 +08:00
Daniel.y
2e6596e9b9
Merge pull request #2113 from danielaskdd/fix-file-delete
Add path traversal security validation for file deletion operations
2025-09-17 02:39:45 +08:00
yangdx
4a97e9f469 Update env.example 2025-09-17 02:31:41 +08:00
yangdx
77569ddea2 Add chunk key to entity extraction logging output 2025-09-17 02:21:11 +08:00
yangdx
fdf8b176ad Update webui assets 2025-09-17 02:05:26 +08:00
yangdx
13681a185f Fix tooltip text wrapping to preserve word boundaries
• Change break-all to break-word
• Add overflow-wrap: break-word
• Apply to tooltip and pre elements
2025-09-17 02:04:43 +08:00
yangdx
dac156ac8e Update webui assets 2025-09-17 01:53:26 +08:00
yangdx
983fe31af5 Bump API version and improve tooltip text wrapping in DocumentManager
- Update API version to 0224
- Add word-break: break-all to tooltip
- Improve pre tag text wrapping
- Enhance tooltip readability
2025-09-17 01:47:40 +08:00
yangdx
8f6287e27e Add path traversal security validation for file deletion operations
• Add validate_file_path_security function
• Prevent path traversal attacks
• Validate file paths before deletion
• Check both input and enqueued dirs
• Log security violations
2025-09-17 01:12:44 +08:00
yangdx
dc512523d2 Merge branch 'fix/dark-mode-graph-text-colors' 2025-09-16 17:45:52 +08:00
yangdx
050a00b693 Update webui assets 2025-09-16 17:33:05 +08:00
yangdx
659f2d5944 Merge branch 'fix-webui-error-handle' into fix/dark-mode-graph-text-colors 2025-09-16 17:32:22 +08:00
yangdx
139ec869e8 Extract light theme label color to constant for consistency 2025-09-16 17:31:56 +08:00
yangdx
db524532f1 Bump core version to v.1.4.8.2 and API version to 0223 2025-09-16 17:16:57 +08:00
yangdx
ecdd8f17eb feat: add robust error handling and resilience to DocumentManager
• Circuit breaker pattern for failures
• Exponential backoff retry logic
• Request timeout wrapper
• Enhanced error classification
2025-09-16 17:14:10 +08:00
yangdx
0e8d973d44 Shorten progress prefix in entity extraction error messages 2025-09-16 15:48:37 +08:00
Daniel.y
3705ca13b4
Merge pull request #2107 from danielaskdd/add-chunk-id
Refactor: Add error handling with chunk ID prefixing in entity extraction
2025-09-16 14:46:52 +08:00
yangdx
ecaee43788 Add error handling with chunk ID prefixing in entity extraction 2025-09-16 13:41:49 +08:00
Roman Marchuk
20402f515f fix: resolve dark mode text visibility issue in knowledge graph view
- Replace hardcoded black text colors (#000) with dynamic theme-based colors
- Add createSigmaSettings function to generate settings based on theme
- Use labelColorDarkTheme (#B2EBF2) for dark mode and black (#000) for light mode
- Update GraphViewer component to react to theme changes
- Fixes issue where node and edge labels were invisible in dark mode

Fixes: Dark mode text visibility in knowledge graph visualization
2025-09-15 23:24:26 -04:00
yangdx
5f45ff56be Merge remote-tracking branch 'origin/main' 2025-09-15 12:34:04 +08:00
yangdx
7b371309dd Update README 2025-09-15 12:31:39 +08:00
yangdx
02c0066df0 Bump core version to 1.4.8.1 2025-09-15 05:34:34 +08:00
yangdx
3b18c33770 Update env.example 2025-09-15 05:02:45 +08:00
Daniel.y
ad0a533d21
Merge pull request #2100 from danielaskdd/return-data-only
Feature: Add /query/data API Endpoint for Raw Retrieval Data
2025-09-15 04:07:21 +08:00
yangdx
2ae8415e16 Remove aquery_data implementation requirements document 2025-09-15 03:46:33 +08:00
yangdx
37d01e2df8 fix: Ensures complete metadata (source_id, created_at, file_path) is preserved in aquery_data responses 2025-09-15 03:45:09 +08:00
yangdx
e71229698d refactor: centralize metadata generation in query functions
- Remove processing_info generation from _convert_to_user_format function
- Move all metadata generation (keywords, processing_info) to kg_query and naive_query functions
- Simplify _convert_to_user_format to focus only on data format conversion
2025-09-15 03:11:07 +08:00
yangdx
c0d5abba6b Fix linting 2025-09-15 02:59:21 +08:00
yangdx
b1c8206346 Add aquery_data endpoint for structured retrieval without LLM generation
- Add QueryDataResponse model
- Implement /query/data endpoint
- Add aquery_data method to LightRAG
- Return entities, relationships, chunks
2025-09-15 02:15:14 +08:00
yangdx
99137446d0 Merge branch 'optimize-extraction' into return-data-only 2025-09-14 19:10:19 +08:00
yangdx
965d942103 Fix lingting 2025-09-14 18:31:33 +08:00
yangdx
27f1eef616 Add language control and format clarity to extraction prompts 2025-09-14 18:30:33 +08:00
yangdx
92f8fc6fbf Improve entity extraction prompt clarity and make sure LLM output content only 2025-09-14 18:30:26 +08:00
yangdx
4dafec8884 Fix tuple delimiter regex patterns and add debug logging
- Add debug logs for malformed records
- Fix regex for consecutive delimiters
- Handle missing closing brackets
2025-09-14 18:29:54 +08:00
yangdx
f69c5dfd9a Add language control and format clarity to extraction prompts 2025-09-14 18:26:41 +08:00
yangdx
3ae827c255 Bump API version to 0222 2025-09-14 17:52:27 +08:00
yangdx
6e37460964 Improve entity extraction prompt clarity and make sure LLM output content only 2025-09-14 17:50:56 +08:00
yangdx
82a67354d0 Code formatting improvements and style consistency fixes
* Remove trailing whitespace
* Fix function signature ellipsis style
2025-09-14 17:49:02 +08:00
yangdx
87bb8a023b Fix tuple delimiter regex patterns and add debug logging
- Add debug logs for malformed records
- Fix regex for consecutive delimiters
- Handle missing closing brackets
2025-09-14 17:29:27 +08:00
yangdx
3792f86de3 Improve entity extraction prompts and error message formatting
• Fix typo in error log message
• Clarify format requirements in prompts
• Make extraction instructions clearer
• Improve user prompt consistency
2025-09-14 13:47:13 +08:00
yangdx
4de1473875 Improve entity extraction prompts and error message formatting
• Fix typo in error log message
• Clarify format requirements in prompts
• Make extraction instructions clearer
• Improve user prompt consistency
2025-09-14 13:45:59 +08:00
yangdx
cbdc386c9a Fix syntax warning by removin examples from fix_tuple_delimiter_corruption docstring 2025-09-14 12:38:36 +08:00
yangdx
70fee5bbeb Fix syntax warning by removin examples from fix_tuple_delimiter_corruption docstring 2025-09-14 12:37:21 +08:00
yangdx
20c5127c7c Merge branch 'optimize-extraction' into return-data-only 2025-09-14 12:33:37 +08:00
yangdx
619553021e Fix delimiter processing and optimize case-sensitive handling
• Fix completion_delimiter reference bug
• Add case check before lowercase conversion
• Improve delimiter corruption handling
• Optimize redundant processing logic
2025-09-14 12:23:48 +08:00
yangdx
ff705a2323 Fix tuple delimiter corruption when missing closing bracket, Handle <|#: -> <|#|> pattern 2025-09-14 11:44:21 +08:00
yangdx
fd48afdb00 Use "relation" instead of "relationship" in extration prompt, and support both format for safty 2025-09-14 11:43:35 +08:00
yangdx
1dc96f3959 Merge branch 'optimize-extraction' into return-data-only 2025-09-14 05:37:48 +08:00