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

Missing get_by_ids Implementation in ElasticsearchStore #49

Open
istvancsabakis opened this issue Oct 9, 2024 · 1 comment
Open

Missing get_by_ids Implementation in ElasticsearchStore #49

istvancsabakis opened this issue Oct 9, 2024 · 1 comment

Comments

@istvancsabakis
Copy link

Description:

The ElasticsearchStore class within the langchain_elasticsearch package currently lacks an implementation for the get_by_ids method. Attempting to use this method results in a NotImplementedError.

Error Details:

When calling get_by_ids with a list of IDs, such as ["1"], the following error is raised:

NotImplementedError: ElasticsearchStore does not yet support get_by_ids.

Steps to Reproduce:

  1. Create an instance of ElasticsearchStore with the necessary parameters:

    from langchain_elasticsearch import ElasticsearchStore 
    from langchain_openai import OpenAIEmbeddings
    
    store = ElasticsearchStore("test", embedding=OpenAIEmbeddings(), es_url="http://localhost:9200")
  2. Attempt to retrieve documents by using their IDs:

    store.get_by_ids(["1"])
  3. Observe the NotImplementedError that indicates the method is not currently supported.

Expected Behavior:

The get_by_ids method should allow retrieval of documents from the ElasticsearchStore using their unique IDs without raising an error.

Actual Behavior:

A NotImplementedError is raised, indicating that the method is not supported.

Request for Enhancement:

Please implement the get_by_ids method in the ElasticsearchStore class to allow for the retrieval of documents by their IDs.

Thank you for your assistance!

@jstoneman-ME
Copy link

Has there been any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants