Commit graph

19 commits

Author SHA1 Message Date
clssck
65d2cd16b1 feat(examples, lightrag): fix logging and code improvements
Fix logging output in evaluation test harness and examples:
- Replace print() statements with logger calls in e2e_test_harness.py
- Update copy_llm_cache_to_another_storage.py to use logger instead of print
- Remove redundant logging configuration in copy_llm_cache_to_another_storage.py
Fix path handling and typos:
- Correct makedirs() call in lightrag_openai_demo.py to create log_dir directly
- Update constants.py comments to clarify SOURCE_IDS_LIMIT_METHOD options
- Remove duplicate return statement in utils.py normalize_extracted_info()
- Fix error string formatting in chroma_impl.py with !s conversion
- Remove unused pipmaster import from chroma_impl.py
2025-12-05 18:10:19 +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
43948d6f17 Update openai demo 2025-05-13 18:27:55 +08:00
yangdx
6716e19d5c Fix linting 2025-04-21 01:22:23 +08:00
yangdx
bd18c9c8ad Update sample code in README.md 2025-04-21 01:22:04 +08:00
yangdx
0c6e80cce9 Add finalize_storages to sample code 2025-04-21 00:25:13 +08:00
yangdx
e0f0d23e5a Update sample code for OpenAI and OpenAI compatible 2025-04-21 00:09:05 +08:00
yangdx
21f5a3923e Add log support for OpenAI demo 2025-04-20 22:03:30 +08:00
yangdx
697401fdc3 Change OpenAI demo to asyc 2025-04-20 21:39:51 +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
zrguo
0c3b754108 Fix bugs 2025-02-11 11:42:46 +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
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
LarFii
e34922d292 fix bug 2024-10-15 21:21:57 +08:00
LarFii
cc4af0d75f fix bug 2024-10-15 21:11:12 +08:00
LarFii
1e78068268 Add huggingface model support 2024-10-15 19:40:08 +08:00