Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix hyde rag pipeline streaming #339

Merged
merged 1 commit into from
Apr 25, 2024
Merged

Conversation

emrgnt-cmplxty
Copy link
Contributor

@emrgnt-cmplxty emrgnt-cmplxty commented Apr 25, 2024

🚀 This description was created by Ellipsis for commit b470570

Summary:

This PR involves renaming and refactoring of several files, classes, and functions, including updates to handle streaming responses, include timeout parameters, and add new functions.

Key points:

  • Renamed config_pipeline.py to configurable_pipeline.py.
  • Renamed run_qna_client.py to qna_rag_client.py.
  • Updated stream_rag_completion function in r2r/client/base.py and r2r/examples/clients/qna_rag_client.py to include a timeout parameter.
  • Updated transform_message function in r2r/core/pipelines/rag.py and r2r/pipelines/hyde/rag.py to include a generation_config parameter.
  • Updated run_stream function in r2r/pipelines/hyde/rag.py to return a generator.
  • Updated rag_completion function in r2r/main/app.py to handle streaming responses.
  • Updated HyDEPipeline class in r2r/pipelines/hyde/rag.py to include a _construct_joined_context function.
  • Updated test_test_function function in r2r/tests/end_to_end.py to include a test for the test_function function in the R2RClient class.

Generated with ❤️ by ellipsis.dev

Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
r2r-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 6:31pm

@emrgnt-cmplxty emrgnt-cmplxty marked this pull request as ready for review April 25, 2024 19:26
@emrgnt-cmplxty emrgnt-cmplxty merged commit fdebb96 into main Apr 25, 2024
2 checks passed
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested.

  • Reviewed the entire pull request up to b470570
  • Looked at 431 lines of code in 12 files
  • Took 1 minute and 39 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_QpOcNe35cNDJZzy6


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. We'll respond in a few minutes. Learn more here.

@@ -152,6 +152,7 @@ async def stream_rag_completion(
filters: Optional[Dict[str, Any]] = None,
settings: Optional[Dict[str, Any]] = None,
generation_config: Optional[Dict[str, Any]] = None,
timeout: int = 300
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider reducing the default timeout value for stream_rag_completion or making it configurable to prevent potential resource exhaustion in scenarios with many concurrent long-running requests.

@emrgnt-cmplxty emrgnt-cmplxty deleted the feature/hyde-rag-stream branch April 30, 2024 18:53
iCUE-Solutions pushed a commit to DeweyLearn/DeweyLearnR2R that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant