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/docs
Nicolas 91d7fd20ae
feat: add custom prompt for QAEvalChain chain (#610)
I originally had only modified the `from_llm` to include the prompt but
I realized that if the prompt keys used on the custom prompt didn't
match the default prompt, it wouldn't work because of how `apply` works.

So I made some changes to the evaluate method to check if the prompt is
the default and if not, it will check if the input keys are the same as
the prompt key and update the inputs appropriately.

Let me know if there is a better way to do this.

Also added the custom prompt to the QA eval notebook.
2 years ago
..
ecosystem Harrison/wolfram alpha (#579) 2 years ago
getting_started Docs refactor (#480) 2 years ago
modules Custom prompt option for llm_bash and api chains (#612) 2 years ago
reference Harrison/wolfram alpha (#579) 2 years ago
use_cases feat: add custom prompt for QAEvalChain chain (#610) 2 years ago
Makefile Feature: linkcheck-action (#534) (#542) 2 years ago
conf.py Feature: linkcheck-action (#534) (#542) 2 years ago
deployments.md Harrison/deployments (#572) 2 years ago
ecosystem.rst Docs refactor (#480) 2 years ago
gallery.rst Add subsection for colab notebooks (#599) 2 years ago
glossary.md Feature: linkcheck-action (#534) (#542) 2 years ago
index.rst Harrison/deployments (#572) 2 years ago
make.bat initial commit 2 years ago
reference.rst Feature: linkcheck-action (#534) (#542) 2 years ago
requirements.txt Docs refactor (#480) 2 years ago