From daa1a032f7b7663378aca20fee5558bf9e2dd022 Mon Sep 17 00:00:00 2001 From: Carlos Gamez <118949383+CarlosGamez-Nova@users.noreply.github.com> Date: Thu, 9 May 2024 11:21:03 +0800 Subject: [PATCH] Update langchainjs.md (#2027) Updated sample code as per warning notification from the package maintainers --- docs/tutorials/langchainjs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/langchainjs.md b/docs/tutorials/langchainjs.md index 63b34aa6e..4d60afb64 100644 --- a/docs/tutorials/langchainjs.md +++ b/docs/tutorials/langchainjs.md @@ -5,13 +5,13 @@ In this tutorial, we are going to use JavaScript with LangChain and Ollama to le To get started, let's just use **LangChain** to ask a simple question to a model. To do this with JavaScript, we need to install **LangChain**: ```bash -npm install langchain +npm install @langchain/community ``` Now we can start building out our JavaScript: ```javascript -import { Ollama } from "langchain/llms/ollama"; +import { Ollama } from "@langchain/community/llms/ollama"; const ollama = new Ollama({ baseUrl: "http://localhost:11434",