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
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.
1 year ago
..
agents Harrison/wolfram alpha (#579) 1 year ago
callbacks Add BaseCallbackHandler and CallbackManager (#478) 1 year ago
chains Custom prompt option for llm_bash and api chains (#612) 1 year ago
docstore Samantha/add conversation chain (#166) 2 years ago
embeddings (WIP) add HyDE (#393) 1 year ago
evaluation feat: add custom prompt for QAEvalChain chain (#610) 1 year ago
llms bump to 0058 (#556) 1 year ago
prompts Harrison/load from hub (#580) 1 year ago
utilities wolfram alpha improvements (#591) 1 year ago
vectorstores Added filter argument to pinecone queries, fixes #600 (#601) 1 year ago
__init__.py Harrison/wolfram alpha (#579) 1 year ago
cache.py Harrison/sqlalchemy cache store (#536) 1 year ago
example_generator.py Harrison/improve cache (#368) 1 year ago
formatting.py initial commit 2 years ago
input.py Add BaseCallbackHandler and CallbackManager (#478) 1 year ago
model_laboratory.py Harrison/improve cache (#368) 1 year ago
py.typed Add py.typed marker to package (#121) 2 years ago
python.py Harrison/tools exp (#372) 1 year ago
requests.py LLMRequestsChain (#267) 2 years ago
schema.py Add finish reason to Generation for usage downstream (#526) 1 year ago
serpapi.py expose more serpapi parameters (#609) 1 year ago
sql_database.py Add schema property to sql database utility class (#448) (#462) 1 year ago
text_splitter.py [Minor Fix] Fix spacy TextSplitter init (#606) 1 year ago
utils.py Harrison/cleanup env check (#144) 2 years ago