Replies: 1 comment
-
Hello @sinaayyy in Haystack version 1.x, When you define your custom component, make sure its class CustomNode(BaseComponent):
outgoing_edges = 1
def run(self, query: str, text: Optional[str]):
... Our tutorial 11 shows how to create a custom component in detail: https://haystack.deepset.ai/tutorials/11_pipelines |
Beta Was this translation helpful? Give feedback.
-
Hello,
I work with a RAG pipeline with retriever reader and generator and when i run the pipeline i give in input : query and params (params for differents nodes like debug and the size of output top_k).
My problem it's how i can give in the pipeline.run() some text.
Because I wan't create a custom nodes in the pipeline to filter some documents thanks to text he give in input for the run() methods
Beta Was this translation helpful? Give feedback.
All reactions