langchain/docs/use_cases
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.
2023-01-14 07:23:48 -08:00
..
evaluation feat: add custom prompt for QAEvalChain chain (#610) 2023-01-14 07:23:48 -08:00
agents.md Docs refactor (#480) 2023-01-02 08:24:09 -08:00
chatbots.md bump to 0058 (#556) 2023-01-06 07:58:38 -08:00
combine_docs.md docs: fix small typo (#611) 2023-01-13 17:31:33 -08:00
evaluation.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
generate_examples.ipynb Docs refactor (#480) 2023-01-02 08:24:09 -08:00
model_laboratory.ipynb Docs refactor (#480) 2023-01-02 08:24:09 -08:00
question_answering.md improve documentation on how to pass in custom prompts (#561) 2023-01-08 19:20:13 -08:00
summarization.md Harrison/update links1 (#594) 2023-01-12 06:29:42 -08:00