Commit graph

17 commits

Author SHA1 Message Date
clssck
dd1413f3eb test(lightrag,examples): add prompt accuracy and quality tests
Add comprehensive test suites for prompt evaluation:
- test_prompt_accuracy.py: 365 lines testing prompt extraction accuracy
- test_prompt_quality_deep.py: 672 lines for deep quality analysis
- Refactor prompt.py to consolidate optimized variants (removed prompt_optimized.py)
- Apply ruff formatting and type hints across 30 files
- Update pyrightconfig.json for static type checking
- Modernize reproduce scripts and examples with improved type annotations
- Sync uv.lock dependencies
2025-12-05 16:39:52 +01:00
clssck
69358d830d test(lightrag,examples,api): comprehensive ruff formatting and type hints
Format entire codebase with ruff and add type hints across all modules:
- Apply ruff formatting to all Python files (121 files, 17K insertions)
- Add type hints to function signatures throughout lightrag core and API
- Update test suite with improved type annotations and docstrings
- Add pyrightconfig.json for static type checking configuration
- Create prompt_optimized.py and test_extraction_prompt_ab.py test files
- Update ruff.toml and .gitignore for improved linting configuration
- Standardize code style across examples, reproduce scripts, and utilities
2025-12-05 15:17:06 +01:00
yangdx
cdd53ee875 Remove manual initialize_pipeline_status() calls across codebase
- Auto-init pipeline status in storages
- Remove redundant import statements
- Simplify initialization pattern
- Update docs and examples
2025-11-17 12:54:33 +08:00
yangdx
461c76ce28 Update openai compatible demo 2025-05-13 17:48:45 +08:00
yangdx
5c533f5e1a Fix liinting 2025-05-13 00:08:21 +08:00
yangdx
e0f0d23e5a Update sample code for OpenAI and OpenAI compatible 2025-04-21 00:09:05 +08:00
zrguo
6c8fa95214 fix demo 2025-03-04 12:25:07 +08:00
zrguo
ef2a5ad191 fix linting 2025-03-03 18:40:03 +08:00
zrguo
1611400854 fix demo 2025-03-03 18:33:42 +08:00
Saifeddine ALOUI
34018cb1e0 Separated llms from the main llm.py file and fixed some deprication bugs 2025-01-25 00:11:00 +01:00
Larfii
e99832cc13 Fix: unexpected keyword argument error. 2024-12-05 14:11:43 +08:00
Zhenyu Pan
24aedf35f2 [hotfix-#163] Fix asynchronous problem 2024-10-29 23:29:47 +08:00
Sanketh Kumar
a157e8e0a2 Manually reformatted files 2024-10-25 13:32:25 +05:30
Zhenyu Pan
bd160013fc [hotfix-#75][embedding] Fix the potential embedding problem 2024-10-24 00:58:52 +08:00
zhangjiawei
a097b48170 set encoding as utf-8 when reading ./book.txt in examples 2024-10-22 16:01:40 +08:00
Sanketh Kumar
32464fab4e chore: added pre-commit-hooks and ruff formatting for commit-hooks 2024-10-19 09:43:17 +05:30
Sung Kim
eeded24b42 Added OpenAI compatible options and examples 2024-10-15 12:55:05 -07:00