⚠️ Deprecation of RAGenerator and Seq2SeqGenerator #4816
bilgeyucel
started this conversation in
General
Replies: 1 comment 13 replies
-
Hello @bilgeyucel! I tried the code you provided in your comment and encountered the following error: PromptNotFoundError: Prompt template named 'lfqa' not available in the Prompt Hub. Therefore, I'm curious about the location on GitHub where I can find the list of available names in the Prompt Hub. |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of version 1.16,
RAGenerator
andSeq2SeqGenerator
have been deprecated in Haystack and will be removed in version 1.18.How to use
RAGenerator
andSeq2SeqGenerator
?If you're currently using
RAGenerator
andSeq2SeqGenerator
in a version older than 1.18, you don't need to make any changes and can continue to use them as before. Keep in mind that you will get a DeprecationWarning when you want to use these components starting from version 1.16. We recommend switching to the more powerfulPromptNode
so that you can smoothly upgrade to upcoming Haystack versions.See how you can use
PromptNode
as a replacement forSeq2SeqGenerator
in practice:Why are we doing this?
While these components have been valuable in the past, we have noticed that there is a scarcity of state-of-the-art models that perform well enough for Retrieval-augmented Generation with
RAGenerator
. Additionally, whileSeq2SeqGenerator
provides several model options,PromptNode
enables the usage of seq2seq models and allows for greater control over the prompt withPromptTemplate
.Let us know 🙌
If you have any questions or comments regarding this deprecation, feel free to comment on this post or send a message to the
#haystack
channel on Discord.Beta Was this translation helpful? Give feedback.
All reactions