Skip to content

Commit

Permalink
[ConversationalRetrievalQAChain] Fix wrong return type in Doc (langch…
Browse files Browse the repository at this point in the history
…ain-ai#1140)

* fix

* Fixed snippets not being interpreted
  • Loading branch information
killinsun authored May 6, 2023
1 parent a049663 commit dcef8ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The `ConversationalRetrievalQA` chain builds on `RetrievalQAChain` to provide a
It requires two inputs: a question and the chat history. It first combines the chat history and the question into a standalone question, then looks up relevant documents from the retriever, and then passes those documents and the question to a question answering chain to return a response.

To create one, you will need a retriever. In the below example, we will create one from a vectorstore, which can be created from embeddings.

import Example from "@examples/chains/conversational_qa.ts";

<CodeBlock language="typescript">{ConvoRetrievalQAExample}</CodeBlock>
Expand All @@ -28,7 +29,7 @@ static fromLLM(
qaTemplate?: string;
returnSourceDocuments?: boolean;
}
): ChatVectorDBQAChain
): ConversationalRetrievalQAChain
```

Here's an explanation of each of the attributes of the options object:
Expand Down

0 comments on commit dcef8ea

Please sign in to comment.