Skip to content
Discussion options

You must be logged in to vote

For generating answers I would recommend looking at the nodes RAGenerator, Seq2SeqGenerator, or the OpenAIAnswerGenerator in Haystack. You can find more info on our docs pages here for answer generation https://docs.haystack.deepset.ai/docs/answer_generator. By default, these pipelines still expect a retriever b/c the answer generator takes both the retrieved documents and question into account to answer the question.

However, it should be possible to set up the Seq2SeqGenerator and OpenAIAnswerGenerator in such a way that they can work without even if they are given zero retrieved documents. For example, you could try something like

result = generator.predict(
    query='What are the bes…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@SoniaMola
Comment options

@sjrl
Comment options

sjrl Oct 4, 2022
Maintainer

@sjrl
Comment options

sjrl Oct 4, 2022
Maintainer

@SoniaMola
Comment options

@sjrl
Comment options

sjrl Oct 5, 2022
Maintainer

Answer selected by SoniaMola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants