Skip to content

Conversation

@JJK801
Copy link
Contributor

@JJK801 JJK801 commented Dec 13, 2024

Hi Flowise,

This PR adds the ability to link a prompt template to RetrievalQAChain (it's also achievable for MultiRetrievalQAChain but this one targets PromptTemplate instead of BasePromptTemplate, so it would implies a lot on refacto)

  • Add prompt input (optional to prevent breaking changes and fit langchain behavior)
  • Allow return source documents for RetrievalQAChain

@HenryHengZJ BTW it would be great to update RetrievalQAChain logic as RetrievalQAChain is deprecated by langchain. (will be removed on 1.0.0)

@HenryHengZJ
Copy link
Contributor

Hi Flowise,

This PR adds the ability to link a prompt template to RetrievalQAChain (it's also achievable for MultiRetrievalQAChain but this one targets PromptTemplate instead of BasePromptTemplate, so it would implies a lot on refacto)

  • Add prompt input (optional to prevent breaking changes and fit langchain behavior)
  • Allow return source documents for RetrievalQAChain

@HenryHengZJ BTW it would be great to update RetrievalQAChain logic as RetrievalQAChain is deprecated by langchain. (will be removed on 1.0.0)

would you like to take an attempt to do it in this PR? using the new way via createRetrievalQAChain:
image

@JJK801
Copy link
Contributor Author

JJK801 commented Dec 18, 2024

@HenryHengZJ sure i can, i'll do it by the end of week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants