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

Patch/yield back async iterator #1248

Closed emrgnt-cmplxty closed 6 days ago

emrgnt-cmplxty commented 6 days ago

[!IMPORTANT] Enhance async handling in retrieval_router.py and update TypeScript components for improved search result display, with a version increment in pyproject.toml.

  • Async Handling:
    • Add await asyncio.sleep(0) in stream_generator() functions in retrieval_router.py to yield control back to the event loop.
  • TypeScript Components:
    • Update Answer.tsx to handle and display different types of search results (vector, entity, community) with correct metadata.
    • Modify DefaultQueries.tsx to update default queries.
    • Adjust SearchResults.tsx to display search results in a carousel format.
  • Miscellaneous:
    • Increment version in pyproject.toml from 3.1.46 to 3.1.47.
    • Remove unused print statements in retrieval_router.py.

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