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/document test #1502

Closed emrgnt-cmplxty closed 3 weeks ago

emrgnt-cmplxty commented 3 weeks ago

[!IMPORTANT] Adds conversation and message management features to the logging system, updates logging providers, and modifies tests accordingly.

  • Behavior:
    • Introduces conversation management methods in database.py, including create_conversation, delete_conversation, get_conversations_overview, add_message, edit_message, get_conversation, get_branches_overview, get_next_branch, get_prev_branch, and branch_at_message.
    • Removes initialize method from LoggingHandler in database.py.
    • Updates create_tables method in logging.py to include conversation-related tables.
  • Providers:
    • Removes PostgresPersistentLoggingProvider from r2r_logger.py.
    • Updates SqlitePersistentLoggingProvider in r2r_logger.py to handle conversations and messages.
  • Tests:
    • Adds compare_document_fields function in runner_cli.py for document field comparison.
    • Updates test_document_overview_sample_file_cli in runner_cli.py to use compare_document_fields.
    • Comments out unused postgres_logging_provider fixture in conftest.py.

This description was created by Ellipsis for a3724bb4b38aaedba93bbbf928362df229216b91. 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:17pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 11:17pm