Unverified Commit c1c87162 authored by Matt Williams's avatar Matt Williams Committed by GitHub
Browse files

Update docs/tutorials/langchainjs.md


Co-authored-by: default avatarBruce MacDonald <brucewmacdonald@gmail.com>
parent a21a8bef
...@@ -23,7 +23,7 @@ const answer = await ollama.call(`why is the sky blue?`); ...@@ -23,7 +23,7 @@ const answer = await ollama.call(`why is the sky blue?`);
console.log(answer); 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 ```javascript
import { CheerioWebBaseLoader } from "langchain/document_loaders/web/cheerio"; import { CheerioWebBaseLoader } from "langchain/document_loaders/web/cheerio";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment