Skip to content

Commit

Permalink
Fix LLM varname in docs (langchain-ai#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marviel authored Feb 27, 2023
1 parent 7e09227 commit fced19c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/modules/chains/question_answering.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { OpenAI } from "langchain/llms";
import { loadQAChain } from "langchain/chains";
import { Document } from "langchain/document";

const model = new OpenAI({});
const llm = new OpenAI({});
const chain = loadQAChain(llm);
const docs = [
new Document({ pageContent: "harrison went to harvard" }),
Expand All @@ -30,7 +30,7 @@ import { Document } from "langchain/document";

// Optionally limit the nr of concurrent requests to the language model,
// if you have a lot of documents, to avoid rate limiting.
const model = new OpenAI({ concurrency: 10 });
const llm = new OpenAI({ concurrency: 10 });
const chain = loadQAChain(llm, { type: "map_reduce" });
const docs = [
new Document({ pageContent: "harrison went to harvard" }),
Expand Down

0 comments on commit fced19c

Please sign in to comment.