Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: opensearch vectorstore example code imports from incorrect path #7308

Closed
2 tasks done
caroline717 opened this issue Dec 3, 2024 · 2 comments · Fixed by #7311
Closed
2 tasks done

DOC: opensearch vectorstore example code imports from incorrect path #7308

caroline717 opened this issue Dec 3, 2024 · 2 comments · Fixed by #7311
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder

Comments

@caroline717
Copy link

caroline717 commented Dec 3, 2024

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

https://js.langchain.com/docs/integrations/vectorstores/opensearch/
The current example code incorrectly imports OpenSearchVectorStore from "langchain/vectorstores/opensearch";. The package does not exist there

Idea or request for content:

The code should be corrected to
import { OpenSearchVectorStore } from "@langchain/community/vectorstores/opensearch";

Copy link

dosubot bot commented Dec 3, 2024

Hey there, @caroline717! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together!

The import path for OpenSearchVectorStore in the OpenSearch vectorstore example code should be updated to:

import { OpenSearchVectorStore } from "@langchain/community/vectorstores/opensearch";

This reflects the correct path following recent changes. Note that the entry point has been deprecated, so ensure you are using the latest version of the package [1].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder label Dec 3, 2024
@jacoblee93
Copy link
Collaborator

Thanks for flagging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants