New Experiments
- New
SuperComponent
abstraction that allows to wrap any pipeline into a friendly component interface and to create your own super components 1
from haystack_experimental import SuperComponent
# rag_pipeline = basic RAG pipeline with retriever, prompt builder, generator and answer builder components
input_mapping = {
"search_query": ["retriever.query", "prompt_builder.query", "answer_builder.query"]
}
output_mapping = {
"answer_builder.answers": "final_answers"
}
wrapper = SuperComponent(
pipeline=rag_pipeline,
input_mapping=input_mapping,
output_mapping=output_mapping
)
result = wrapper.run(search_query="What is the capital of France?")
print(result["final_answers"][0])
- New
AsyncPipeline
that can schedule components to run concurrently 2
Other Updates:
- Added a debug/tracing script to compare two pipeline runs with the old and new pipeline run logic 3
- Changed
LLMMetadaExtractor
to useChatGenerator
instead ofGenerator
4
Full Changelog: v0.5.0...v0.6.0