yangdx
48b67d3077
Handle missing WebUI assets gracefully without blocking server startup
...
- Change build check from error to warning
- Redirect to /docs when WebUI unavailable
- Add webui_available to health endpoint
- Only mount /webui if assets exist
- Return status tuple from build check
2025-11-25 02:51:55 +08:00
Daniel.y
2832a2ca7e
Merge pull request #2417 from danielaskdd/neo4j-retry
...
Fix: Add Comprehensive Retry Mechanism for Neo4j Storage Operations
2025-11-25 02:03:48 +08:00
yangdx
5f91063c7a
Add ruff as dependency to pytest and evaluation extras
2025-11-25 02:03:28 +08:00
yangdx
8c4d7a00ad
Refactor: Extract retry decorator to reduce code duplication in Neo4J storage
...
• Define READ_RETRY_EXCEPTIONS constant
• Create reusable READ_RETRY decorator
• Replace 11 duplicate retry decorators
• Improve code maintainability
• Add missing retry to edge_degrees_batch
2025-11-25 01:35:21 +08:00
Daniel.y
5b81ef000e
Merge pull request #2410 from netbrah/create-copilot-setup-steps
...
feat: create copilot-setup-steps.yml
2025-11-24 22:36:33 +08:00
yangdx
7aaa51cda9
Add retry decorators to Neo4j read operations for resilience
2025-11-24 22:28:15 +08:00
palanisd
c233da6318
Update copilot-setup-steps.yml
2025-11-23 17:42:04 -05:00
palanisd
1b0413ee74
Create copilot-setup-steps.yml
2025-11-22 15:29:05 -05:00
chaohuang-ai
16eb0d5bee
Merge pull request #2409 from HKUDS/chaohuang-ai-patch-3
...
Update README.md
2025-11-23 00:54:04 +08:00
chaohuang-ai
37178462ab
Update README.md
2025-11-23 00:53:39 +08:00
chaohuang-ai
6d3bfe46d0
Merge pull request #2408 from HKUDS/chaohuang-ai-patch-2
...
Update README.md
2025-11-23 00:50:16 +08:00
chaohuang-ai
babbcb566b
Update README.md
2025-11-23 00:48:52 +08:00
yangdx
5f53de8866
Fix Azure configuration examples and correct typos in env.example
2025-11-22 09:05:52 +08:00
yangdx
fa6797f246
Update env.example
2025-11-22 00:32:12 +08:00
yangdx
49fb11e205
Update Azure OpenAI configuration examples
2025-11-22 00:19:23 +08:00
yangdx
7b76211066
Add fallback to AZURE_OPENAI_API_VERSION for embedding API version
2025-11-22 00:14:35 +08:00
yangdx
ffd8da512e
Improve Azure OpenAI compatibility and error handling
...
• Reduce log noise for Azure content filters
• Add default API version fallback
• Change warning to debug log level
• Handle empty choices in streaming
• Better Azure OpenAI integration
2025-11-21 23:51:18 +08:00
yangdx
fafa1791f4
Fix Azure OpenAI model parameter to use deployment name consistently
...
- Use deployment name for Azure API calls
- Fix model param in embed function
- Consistent api_model logic
- Prevent Azure model name conflicts
2025-11-21 23:41:52 +08:00
Daniel.y
021b637dc3
Merge pull request #2403 from danielaskdd/azure-cot-handling
...
Refact: Consolidate Azure OpenAI and OpenAI implementations
2025-11-21 19:36:12 +08:00
yangdx
ac9f2574a5
Improve Azure OpenAI wrapper functions with full parameter support
...
• Add missing parameters to wrappers
• Update docstrings for clarity
• Ensure API consistency
• Fix parameter forwarding
• Maintain backward compatibility
2025-11-21 19:24:32 +08:00
yangdx
45f4f82392
Refactor Azure OpenAI client creation to support client_configs merging
...
- Handle None client_configs case
- Merge configs with explicit params
- Override client_configs with params
- Use dict unpacking for client init
- Maintain parameter precedence
2025-11-21 19:14:16 +08:00
yangdx
0c4cba3860
Fix double decoration in azure_openai_embed and document decorator usage
...
• Remove redundant @retry decorator
• Call openai_embed.func directly
• Add detailed decorator documentation
• Prevent double parameter injection
• Fix EmbeddingFunc wrapping issues
2025-11-21 18:03:53 +08:00
yangdx
b46c152306
Fix linting
2025-11-21 17:16:44 +08:00
yangdx
b709f8f869
Consolidate Azure OpenAI implementation into main OpenAI module
...
• Unified OpenAI/Azure client creation
• Azure module now re-exports functions
• Backward compatibility maintained
• Reduced code duplication
2025-11-21 17:12:33 +08:00
yangdx
66d6c7dd6f
Refactor main function to provide sync CLI entry point
2025-11-21 13:11:55 +08:00
Daniel.y
8777895efc
Merge pull request #2401 from danielaskdd/fix-openai-keyword-extraction
...
Refactor: Centralize keyword_extraction parameter handling in OpenAI LLM implementations
2025-11-21 13:08:15 +08:00
yangdx
1e477e95ef
Add lightrag-clean-llmqc console script entry point
...
- Add clean_llm_query_cache tool
- New console script for cache cleanup
- Extend CLI tool availability
2025-11-21 12:59:49 +08:00
yangdx
02fdceb959
Update OpenAI client to use stable API and bump minimum version to 2.0.0
...
- Remove beta prefix from completions.parse
- Update OpenAI dependency to >=2.0.0
- Fix whitespace formatting
- Update all requirement files
- Clean up pyproject.toml dependencies
2025-11-21 12:55:44 +08:00
yangdx
9f69c5bf85
feat: Support structured output parsed from OpenAI
...
Added support for structured output (JSON mode) from the OpenAI API in `openai.py` and `azure_openai.py`.
When `response_format` is used to request structured data, the new logic checks for the `message.parsed` attribute. If it exists, it's serialized into a JSON string as the final content. If not, the code falls back to the existing `message.content` handling, ensuring backward compatibility.
2025-11-21 12:46:31 +08:00
yangdx
c9e1c86e81
Refactor keyword extraction handling to centralize response format logic
...
• Move response format to core function
• Remove duplicate format assignments
• Standardize keyword extraction flow
• Clean up redundant parameter handling
• Improve Azure OpenAI compatibility
2025-11-21 12:10:04 +08:00
yangdx
46ce6d9a13
Fix Azure OpenAI embedding model parameter fallback
...
- Use model param if provided
- Fall back to deployment name
- Fix embedding API call
- Improve parameter handling
2025-11-20 18:20:22 +08:00
Daniel.y
cc78e2df10
Merge pull request #2395 from Amrit75/issue-2394
...
issue-2394: use deployment variable instead of model for embeddings API call
2025-11-20 18:10:49 +08:00
Amritpal Singh
30e86fa331
use deployment variable which extracted value from .env file or have default value
2025-11-20 09:00:27 +00:00
yangdx
ecea93992a
Fix lingting
2025-11-20 13:03:31 +08:00
yangdx
1d2f534f3d
Fix linting
2025-11-20 13:02:25 +08:00
yangdx
72ece7343a
Remove obsolete config file and paging design doc
2025-11-20 13:00:13 +08:00
yangdx
1e415cff95
Update postgreSQL docker image link
2025-11-20 12:34:49 +08:00
yangdx
3c85e4882c
Update README
2025-11-20 10:50:02 +08:00
Daniel.y
d52adb64d7
Merge pull request #2390 from danielaskdd/fix-pytest-logging-error
...
Fix: Remove redundant exception logging to eliminate pytest shutdown errors
2025-11-19 23:09:30 +08:00
yangdx
b7de694f48
Add comprehensive error logging across API routes
...
- Add error logs to Ollama API endpoints
- Replace logging with unified logger
- Log streaming query errors
- Add data query error logging
- Include stack traces for debugging
2025-11-19 22:50:06 +08:00
yangdx
0fb2925c6a
Remove ascii_colors dependency and fix stream handling errors
...
• Remove ascii_colors.trace_exception calls
• Add SafeStreamHandler for closed streams
• Patch ascii_colors console handler
• Prevent ValueError on stream close
• Improve logging error handling
2025-11-19 21:38:17 +08:00
Daniel.y
f72f435cef
Merge pull request #2389 from danielaskdd/fix-chunk-size
...
Fix: Add chunk token limit validation with detailed error reporting
2025-11-19 20:34:11 +08:00
yangdx
fec7c67f45
Add comprehensive chunking tests with multi-token tokenizer edge cases
...
• Add MultiTokenCharacterTokenizer for testing
• Test token vs character counting accuracy
• Verify delimiter splitting precision
• Test overlap with distinctive content
• Add decode content preservation tests
2025-11-19 19:31:36 +08:00
yangdx
5733292557
Add comprehensive tests for chunking with recursive splitting
...
- Test recursive split mode
- Add edge case coverage
- Test parameter combinations
- Verify chunk order indexing
- Add integration test scenarios
2025-11-19 19:08:50 +08:00
yangdx
6fea68bff9
Fix ChunkTokenLimitExceededError message formatting
...
- Prevent passes two separate string objects to __init__
- Maintain same error output
2025-11-19 18:50:45 +08:00
yangdx
f988a22652
Add token limit validation for character-only chunking
...
- Add ChunkTokenLimitExceededError exception
- Validate chunks against token limits
- Include chunk preview in error messages
- Add comprehensive test coverage
- Log warnings for oversized chunks
2025-11-19 18:32:43 +08:00
yangdx
5cc916861f
Expand AGENTS.md with testing controls and automation guidelines
...
- Add pytest marker and CLI toggle docs
- Document automation workflow rules
- Clarify integration test setup
- Add agent-specific best practices
- Update testing command examples
2025-11-19 11:30:54 +08:00
Daniel.y
af4d2a3dcc
Merge pull request #2386 from danielaskdd/excel-optimization
...
Feat: Enhance XLSX Extraction by Adding Separators and Escape Special Characters
2025-11-19 10:26:32 +08:00
yangdx
95cd0ece74
Fix DOCX table extraction by escaping special characters in cells
...
- Add escape_cell() function
- Escape backslashes first
- Handle tabs and newlines
- Preserve tab-delimited format
- Prevent double-escaping issues
2025-11-19 09:54:35 +08:00
yangdx
87de2b3e9e
Update XLSX extraction documentation to reflect current implementation
2025-11-19 04:26:41 +08:00