SciPhi-AI / R2R

The most advanced Retrieval-Augmented Generation (RAG) system, containerized and RESTful
https://r2r-docs.sciphi.ai/
MIT License
3.65k stars 270 forks source link

Feature/move logging (#1492) #1494

Closed emrgnt-cmplxty closed 3 weeks ago

emrgnt-cmplxty commented 3 weeks ago

[!IMPORTANT] Refactor logging system by moving provider to its own directory, removing singleton pattern, and updating related code and tests.

  • Logging Refactor:
    • Move logging provider to its own directory and remove singleton pattern.
    • Introduce PersistentLoggingProvider and PersistentLoggingConfig in r2r_logger.py.
    • Update SqlitePersistentLoggingProvider and PostgresPersistentLoggingProvider to use new structure.
  • Code Updates:
    • Update imports and references across multiple files to use new logging structure.
    • Modify DocumentType references to document_type in document.py and related files.
  • Testing:
    • Update tests in test_logging_provider.py and other test files to align with new logging structure.
    • Add tests for new logging functionalities in runner_sdk.py.
  • Miscellaneous:
    • Update package.json version to 0.3.11.
    • Minor documentation and comment updates in various files.

This description was created by Ellipsis for 10448bc76fb16afa89ca19537cf14bbdaca3c73a. It will automatically update as commits are pushed.

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yc_demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 11:53pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 11:53pm
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **recommendation_platform** | ⬜️ Ignored ([Inspect](https://vercel.com/my-team-88dd52c0/recommendation_platform/cpWxPNpymWm357ZUSHbD77VBZ7SQ)) | | | Oct 25, 2024 11:53pm |