SciPhi-AI / R2R

The all-in-one solution for RAG. Build, scale, and deploy state of the art Retrieval-Augmented Generation applications
https://r2r-docs.sciphi.ai/
MIT License
3.34k stars 248 forks source link

merge #1278

Closed emrgnt-cmplxty closed 2 days ago

emrgnt-cmplxty commented 2 days ago

[!IMPORTANT] This pull request enhances telemetry integration, improves collection management, updates tests, and refactors CLI entry points.

  • Telemetry:
    • Added telemetry tracking to CLI commands in main.py using telemetry.py.
    • Integrated PostHog for telemetry in feature.ts and telemetry.py.
  • Collection Management:
    • Enhanced collection management in collection.py with improved error handling and transaction management.
    • Added select_filters method in retrieval_router.py for filtering collections based on user permissions.
  • Testing:
    • Updated tests in r2rClient.test.ts and r2rClientIntegrationUser.test.ts to cover more scenarios and ensure robustness.
  • Miscellaneous:
    • Updated package.json version to 0.3.5.
    • Removed cli.py and refactored CLI entry point to main.py.
    • Added TokenInfo type in models.tsx for better type safety.

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