SciPhi-AI / R2R

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

Refactor CLI for v3 API #1586

Closed NolanTrem closed 4 days ago

NolanTrem commented 4 days ago

[!IMPORTANT] Refactor CLI and SDK to support v3 API, introducing new commands and updating existing ones for enhanced functionality and compatibility.

  • CLI Refactor for v3 API:
    • Removed __init__.py in cli.
    • Added new command files: collections.py, conversations.py, documents.py, indices.py, prompts.py, users.py.
    • Deprecated v2 commands in v2 subdirectory.
    • Updated main.py to register new v3 commands.
  • API Routers:
    • Added v3 routers for collections, conversations, documents, indices, prompts, retrieval, users.
    • Each router supports CRUD operations and specific functionalities for its domain.
  • SDK Updates:
    • Updated base_client.py to support v3 API.
    • Added v3 SDK modules: collections.py, documents.py, prompts.py, retrieval.py, users.py.
    • Each SDK module provides async methods for interacting with the v3 API endpoints.
  • Miscellaneous:
    • Updated constants.py and other shared files to reflect new API structure.
    • Added extensive code samples and documentation for new CLI commands and API endpoints.

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

vercel[bot] commented 4 days 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 Nov 13, 2024 10:19pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 10:19pm