You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/chains
ElReyZero ab7ecc9c30
Feat: Add a prompt template parameter to qa with structure chains (#6495)
This pull request introduces a new feature to the LangChain QA Retrieval
Chains with Structures. The change involves adding a prompt template as
an optional parameter for the RetrievalQA chains that utilize the
recently implemented OpenAI Functions.

The main purpose of this enhancement is to provide users with the
ability to input a more customizable prompt to the chain. By introducing
a prompt template as an optional parameter, users can tailor the prompt
to their specific needs and context, thereby improving the flexibility
and effectiveness of the RetrievalQA chains.

## Changes Made
- Created a new optional parameter, "prompt", for the RetrievalQA with
structure chains.
- Added an example to the RetrievalQA with sources notebook.

My twitter handle is @El_Rey_Zero

---------

Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
12 months ago
..
api [APIChain] enhance the robustness or url (#6008) 12 months ago
chat_vector_db WIP: Harrison/base retriever (#1765) 1 year ago
combine_documents Add the ability to run the map_reduce chains process results step as async (#6181) 12 months ago
constitutional_ai Fix typo in the CAI critique prompt (#6123) 12 months ago
conversation Doc refactor (#6300) 12 months ago
conversational_retrieval propagate callbacks to ConversationalRetrievalChain (#5572) 12 months ago
flare WIP: FLARE-inspired chain (#4612) 1 year ago
graph_qa Add KuzuQAChain (#6454) 12 months ago
hyde Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
llm_bash Add _type for all parsers (#4189) 1 year ago
llm_checker Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
llm_math Add an example to make the prompt more robust (#5291) 1 year ago
llm_summarization_checker fix typos in the prompts of LLMSummarizationCheckerChain (#4518) 1 year ago
natbot Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
openai_functions Feat: Add a prompt template parameter to qa with structure chains (#6495) 12 months ago
pal Callbacks Refactor [base] (#3256) 1 year ago
qa_generation Callbacks Refactor [base] (#3256) 1 year ago
qa_with_sources fix: update qa_chain doc for "chai_type" (#5877) 12 months ago
query_constructor Harrison/myscale self query (#6376) 12 months ago
question_answering propagate callbacks to ConversationalRetrievalChain (#5572) 12 months ago
retrieval_qa Implement saving and loading of RetrievalQA chain (#5818) 12 months ago
router Add async support to routing chains (#5373) 1 year ago
sql_database Replaced `SQLDatabaseChain` deprecated direct initialisation with `from_llm` method (#4778) 1 year ago
summarize Callbacks Refactor [base] (#3256) 1 year ago
__init__.py Add KuzuQAChain (#6454) 12 months ago
base.py improve documentation on base chain (#6468) 12 months ago
llm.py changes to llm chain (#6328) 12 months ago
llm_requests.py Fixes #6282 (#6283) 12 months ago
loading.py changes to llm chain (#6328) 12 months ago
mapreduce.py Fixed multi input prompt for MapReduceChain (#4979) 1 year ago
moderation.py changed ValueError to ImportError (#5103) 1 year ago
prompt_selector.py Callbacks Refactor [base] (#3256) 1 year ago
sequential.py Add support for tags (#5898) 12 months ago
transform.py Callbacks Refactor [base] (#3256) 1 year ago