Browse Source

Update docs/tutorials/langchainjs.md

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
shell
Matt Williams 3 years ago
committed by GitHub
parent
commit
c1c871620a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/tutorials/langchainjs.md

2
docs/tutorials/langchainjs.md

@ -23,7 +23,7 @@ const answer = await ollama.call(`why is the sky blue?`);
console.log(answer);
```
That will get us the same thing as if we ran `ollama run llama2 "why is the sky blue"`. But we want to load a document from the web to ask a question against. **Cheerio** is a great library for ingesting a webpage, and **LangChain** uses it in their **CheerioWebBaseLoader**. So let's build that part of the app.
That will get us the same thing as if we ran `ollama run llama2 "why is the sky blue"` in the terminal. But we want to load a document from the web to ask a question against. **Cheerio** is a great library for ingesting a webpage, and **LangChain** uses it in their **CheerioWebBaseLoader**. So let's build that part of the app.
```javascript
import { CheerioWebBaseLoader } from "langchain/document_loaders/web/cheerio";

Loading…
Cancel
Save