Commit graph

21 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
NeelM0906
f6d1fb98ac Fix Linting errors 2025-10-09 16:52:22 -04:00
yangdx
9923821d75 refactor: Remove deprecated max_token_size from embedding configuration
This parameter is no longer used. Its removal simplifies the API and clarifies that token length management is handled by upstream text chunking logic rather than the embedding wrapper.
2025-07-29 10:49:35 +08:00
yangdx
30e263329f Fix linting 2025-07-07 01:27:02 +08:00
zrguo
840cd4650b Update batch_eval.py 2025-07-04 14:33:03 +08:00
zrguo
c9a6256af8 Move batch_eval.py to ./reproduce/ 2025-05-27 16:09:57 +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
Yannick Stephan
c7bc2c63cf cleanup storages 2025-02-20 13:21:41 +01:00
Yannick Stephan
32e489865c cleanup code 2025-02-20 13:18:17 +01:00
Yannick Stephan
2524e02428 remove tqdm and cleaned readme and ollama 2025-02-18 19:58:03 +01: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
WinstonCHEN1
8cc98e13ac fix:error working directory name in Step_1.py 2024-11-18 14:24:04 -08:00
WinstonCHEN1
f95384b68c fix:Step_3.py context 2024-10-30 15:36:44 -07:00
zrguo
6df870712e fix Step_3_openai_compatible.py 2024-10-25 19:25:26 +08:00
Sanketh Kumar
32464fab4e chore: added pre-commit-hooks and ruff formatting for commit-hooks 2024-10-19 09:43:17 +05:30
KIM Jae Boum
a8f2e6a478 update Step_3.py and openai compatible script 2024-10-18 06:06:47 +08:00
LarFii
1e78068268 Add huggingface model support 2024-10-15 19:40:08 +08:00
LarFii
c51b2b38b6 update reproduce 2024-10-11 15:16:43 +08:00