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

Default Collections #1282

Closed NolanTrem closed 1 month ago

NolanTrem commented 1 month ago

[!IMPORTANT] Introduces default collections for users and documents, updating database configurations, ingestion workflows, and user registration processes.

  • Behavior:
    • Introduces default_collection_name and default_collection_description in DatabaseConfig.
    • Assigns documents to collections in finalize() in hatchet/ingestion_workflow.py and ingest_files() in simple/ingestion_workflow.py.
    • Creates a default collection for new users in register() in r2r_auth.py.
  • Database:
    • Adds create_default_collection() and assign_document_to_collection() in collection.py.
    • Implements get_config() in DatabaseMixin in base.py.
  • Configuration:
    • Updates r2r.toml with default collection settings.
  • Tests:
    • Updates observed outputs in test_document_management.json, test_group_management.json, test_retrieval.json, and test_user_management.json.

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

vercel[bot] commented 1 month 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 Sep 28, 2024 1:19am
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 28, 2024 1:19am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **recommendation_platform** | ⬜️ Ignored ([Inspect](https://vercel.com/my-team-88dd52c0/recommendation_platform/DQCLXPyKFrd2fW9J5mx4hgYxdV6j)) | | | Sep 28, 2024 1:19am |