Replies: 1 comment
-
Hello nqbao, I would recommend to use a custom component that loops through the documents internally and runs a generator component for each of them. For information extraction , I can also recommend our two examples here as inspiration: https://haystack.deepset.ai/cookbook/information_extraction_raven and https://haystack.deepset.ai/cookbook/information-extraction-gorilla |
Beta Was this translation helpful? Give feedback.
-
As title, i want to run a generator for each document in the pipeline (my use case is to extract some data from the retrieved documents)
I can only find examples to run Generator component for all documents but not for each document in pipeline. I can work around using a custom component, but i wonder if there is a better way.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions