Pipeline
Pipeline Documentation
Overview
The RAGchain framework pipeline is a pre-constructed workflow in the RAGchain framework, designed to simplify and streamline the process of setting up and running a RAG system.
In other words, think of it as a cookbook: it provides you with recipes for different workflows that you can choose from. Instead of having to gather all your ingredients (components) and figure out how they work together on your own, you simply select an option from this 'cookbook', which already has all these details sorted out for you.
Why Use Pipelines?
Building an entire workflow from scratch can be complex and time-consuming. The pipeline approach offers several advantages:
Simplicity: Pipelines abstract away many underlying complexities involved in setting up a workflow. Just call pipeline, and use it.
Efficiency: Using pipelines allows developers to leverage pre-built workflows, saving time and effort.
Using Pipelines
To use a pipeline within the RAGchain framework:
Choose an appropriate pipeline based on your specific requirements.
Configure options as per your need.
Run the chosen pipeline.
Here's an example using BasicRunPipeline
:
Building Your Own Pipeline
While we provide various pipelines for convenience, we also understand that developers may want more control over their workflows or require something unique that isn't covered by our existing pipelines.
You're free to build your own custom pipelines using individual components provided by our framework if none of our pre-built pipelines meet your specific needs.
Plus, you can use your workflow without using pipeline. You can use LCEL's runnable directly. Please check out LCEL documentation for more information.
But, you have to make Pipeline
class for evaluating your pipeline using our Evaluator
.
Last updated