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

More JS testing #1591

Closed NolanTrem closed 3 days ago

NolanTrem commented 3 days ago

[!IMPORTANT] Enhance JS testing for r2rClient with new retrieval tests, introduce RetrievalClient, and update API for retrieval operations.

  • Testing:
    • Added RetrievalIntegrationSuperUser.test.ts for testing retrieval functionalities like search, RAG, and agent.
    • Increased timeout to 10000ms for tests in DocumentsIntegrationSuperUser.test.ts and r2rV2ClientIntegrationSuperUser.test.ts.
  • Client Enhancements:
    • Introduced RetrievalClient in retrieval.ts for handling search, RAG, and agent operations.
    • Updated r2rClient in r2rClient.ts to include RetrievalClient.
  • API Changes:
    • Added JavaScript code samples for retrieval endpoints in retrieval_router.py.
    • Updated retrieval_router.py to handle new retrieval operations like search, RAG, and agent.
  • Miscellaneous:
    • Added sonia.txt as a test data file.

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