mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-05 14:43:08 +00:00
Fix wrong prompt in refine chain (#1770)
I got this during testing ``` ValueError: Missing some input keys: {'existing_answer'} ``` Upon review, the initial prompt should be `QUESTION_PROMPT_SELECTOR`. Co-authored-by: Bao Nguyen <bnguyen@roku.com>
This commit is contained in:
parent
b1b4a4065a
commit
85e4dd7fc3
@ -155,7 +155,7 @@ def _load_refine_chain(
|
|||||||
**kwargs: Any,
|
**kwargs: Any,
|
||||||
) -> RefineDocumentsChain:
|
) -> RefineDocumentsChain:
|
||||||
_question_prompt = (
|
_question_prompt = (
|
||||||
question_prompt or refine_prompts.REFINE_PROMPT_SELECTOR.get_prompt(llm)
|
question_prompt or refine_prompts.QUESTION_PROMPT_SELECTOR.get_prompt(llm)
|
||||||
)
|
)
|
||||||
_refine_prompt = refine_prompt or refine_prompts.REFINE_PROMPT_SELECTOR.get_prompt(
|
_refine_prompt = refine_prompt or refine_prompts.REFINE_PROMPT_SELECTOR.get_prompt(
|
||||||
llm
|
llm
|
||||||
|
Loading…
Reference in New Issue
Block a user