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

BadRequestError: BadRequestError(400, 'search_phase_execution_exception', 'runtime error') using ElasticVectorSearch #5953

Closed
2 of 14 tasks
Yafaa5 opened this issue Jun 9, 2023 · 1 comment

Comments

@Yafaa5
Copy link

Yafaa5 commented Jun 9, 2023

System Info

langchain version = '0.0.191'
elasticsearch version='(8, 8, 0)'

Who can help?

@hwchase17 @eyurtsev

Information

  • The official example notebooks/scripts
  • My own modified scripts

Related Components

  • LLMs/Chat Models
  • Embedding Models
  • Prompts / Prompt Templates / Prompt Selectors
  • Output Parsers
  • Document Loaders
  • Vector Stores / Retrievers
  • Memory
  • Agents / Agent Executors
  • Tools / Toolkits
  • Chains
  • Callbacks/Tracing
  • Async

Reproduction

I am trying ElasticVectorSearchon langchain with my Azure elastic instance and I am getting BadRequestError: BadRequestError(400, 'search_phase_execution_exception', 'runtime error')

from langchain import ElasticVectorSearch
from langchain.embeddings import OpenAIEmbeddings

embedding = OpenAIEmbeddings()

elastic_host = "hostid.westeurope.azure.elastic-cloud.com"  
elasticsearch_url = f"https://user:password-elastic@{elastic_host}:9243"
elastic_vector_search = ElasticVectorSearch(
    elasticsearch_url=elasticsearch_url,
    index_name="test_langchain",
    embedding=embedding
)

doc = elastic_vector_search.similarity_search("simple query")

The response is :
BadRequestError: BadRequestError(400, 'search_phase_execution_exception', 'runtime error')

Expected behavior

It should return a list of document that match the query from elastic search

@dosubot
Copy link

dosubot bot commented Sep 8, 2023

Hi, @Yafaa5! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you reported an issue related to a BadRequestError that occurs when using ElasticVectorSearch with an Azure elastic instance. The expected behavior is to return a list of documents that match the query from Elasticsearch. However, there hasn't been any activity or comments on the issue yet, and it remains unresolved.

Could you please let us know if this issue is still relevant to the latest version of the LangChain repository? If it is, please comment on the issue to let the LangChain team know. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the LangChain project. Let us know if you have any further questions or concerns!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 8, 2023
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 15, 2023
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 15, 2023
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

1 participant