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

make new agent for each request #1254

Closed emrgnt-cmplxty closed 6 days ago

emrgnt-cmplxty commented 6 days ago

[!IMPORTANT] Instantiate a new R2RStreamingRAGAgent for each request in retrieval_service.py and remove a newline in streaming_rag_pipe.py.

  • Behavior:
    • Instantiate a new R2RStreamingRAGAgent for each request in agent() in retrieval_service.py.
  • Misc:
    • Remove unnecessary newline in _run_logic() in streaming_rag_pipe.py.

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