From b113d2af319b4e433128bd2de8e48f5fb3520c96 Mon Sep 17 00:00:00 2001 From: Jacob Lee Date: Tue, 3 Dec 2024 19:16:53 -0800 Subject: [PATCH] docs: Fix import (#7311) --- docs/core_docs/docs/integrations/vectorstores/opensearch.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/core_docs/docs/integrations/vectorstores/opensearch.mdx b/docs/core_docs/docs/integrations/vectorstores/opensearch.mdx index 62c33165b26c..f0c9a6cb6a3c 100644 --- a/docs/core_docs/docs/integrations/vectorstores/opensearch.mdx +++ b/docs/core_docs/docs/integrations/vectorstores/opensearch.mdx @@ -31,7 +31,7 @@ You'll also need to have an OpenSearch instance running. You can use the [offici import { Client } from "@opensearch-project/opensearch"; import { Document } from "langchain/document"; import { OpenAIEmbeddings } from "@langchain/openai"; -import { OpenSearchVectorStore } from "langchain/vectorstores/opensearch"; +import { OpenSearchVectorStore } from "@langchain/community/vectorstores/opensearch"; const client = new Client({ nodes: [process.env.OPENSEARCH_URL ?? "http://127.0.0.1:9200"], @@ -70,7 +70,7 @@ import { Client } from "@opensearch-project/opensearch"; import { VectorDBQAChain } from "langchain/chains"; import { OpenAIEmbeddings } from "@langchain/openai"; import { OpenAI } from "@langchain/openai"; -import { OpenSearchVectorStore } from "langchain/vectorstores/opensearch"; +import { OpenSearchVectorStore } from "@langchain/community/vectorstores/opensearch"; const client = new Client({ nodes: [process.env.OPENSEARCH_URL ?? "http://127.0.0.1:9200"],