-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* web search pipeline * web search pipeline * re-merge logic
- Loading branch information
1 parent
608d2f9
commit 95d68ca
Showing
4 changed files
with
165 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
"""A simple example to demonstrate the usage of `WebSearchRAGPipeline`.""" | ||
"""A simple example to demonstrate the usage of `WebRAGPipeline`.""" | ||
|
||
import uvicorn | ||
|
||
from r2r.main import E2EPipelineFactory, R2RConfig | ||
from r2r.pipelines import WebSearchRAGPipeline | ||
from r2r.pipelines import WebRAGPipeline | ||
|
||
# Creates a pipeline using the `WebSearchRAGPipeline` implementation | ||
# Creates a pipeline using the `WebRAGPipeline` implementation | ||
app = E2EPipelineFactory.create_pipeline( | ||
config=R2RConfig.load_config(), rag_pipeline_impl=WebSearchRAGPipeline | ||
config=R2RConfig.load_config(), rag_pipeline_impl=WebRAGPipeline | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
# Run the FastAPI application using Uvicorn | ||
uvicorn.run(app, host="0.0.0.0", port=8000) | ||
uvicorn.run(app, host="0.0.0.0", port=8000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters