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/add documents search #1549

Closed emrgnt-cmplxty closed 2 weeks ago

emrgnt-cmplxty commented 2 weeks ago

[!IMPORTANT] Adds document search feature to r2rClient with backend support and new API endpoint for searching documents using metadata and body text.

  • Behavior:
    • Adds searchDocuments method to r2rClient in r2rClient.ts for searching documents with settings like metadata keys, body search, filters, offset, and limit.
    • Introduces DocumentSearchSettings in shared/abstractions/search.py to configure document search parameters.
    • Implements document search logic in PostgresVectorHandler in vector.py.
  • API:
    • Adds /search_documents endpoint in retrieval_router.py to perform document searches using DocumentSearchSettings.
  • Models:
    • Adds DocumentSearchSettings to shared/abstractions/__init__.py and sdk/models.py.
    • Adds WrappedDocumentSearchResponse to shared/api/models/retrieval/responses.py.
  • Misc:
    • Updates pyproject.toml version to 3.2.39.

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

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