Max Jakob
Max Jakob
I encountered this bug yesterday trying to set up some integration tests locally on my Mac through Docker. The problem is not ELSER-specific but happens for other trained models too....
I deployed `sentence-transformers/msmarco-minilm-l-12-v3` with Eland which worked fine but upon ~search~ inference I got ``` "type": "status_exception", "reason": "Error in inference process: [inference canceled as process is stopping]" ``` and...
And I should add, this was with a regular Elasticsearch `docker.elastic.co/elasticsearch/elasticsearch` container, not with serverless!
The `ElasticsearchStore` expects an `AsyncElasticsearch` object for `es_client`. It's described in the [docstring](https://github.com/run-llama/llama_index/blob/1bde70b75ee5b4e6a5bc8c1c3f95eaa0dd889ab0/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py#L126). The [type annotation](https://github.com/run-llama/llama_index/blob/1bde70b75ee5b4e6a5bc8c1c3f95eaa0dd889ab0/llama-index-integrations/vector_stores/llama-index-vector-stores-elasticsearch/llama_index/vector_stores/elasticsearch/base.py#L207) could be clearer on this.
Implementing this in the client's helpers module works. Then we also have a simple programmatic way to do this in Python. Additionally, I think it's also important to have a...
This would also remove the necessity for these large code blocks in our blog posts: https://www.elastic.co/search-labs/blog/serverless-semantic-search-with-elser-in-python#download-and-deploy-elser-model
@anakin87 @silvanocerza Would be great to get your input here.
I agree that breaking changes should be avoided. We can attempt to integrate this into the existing document store. If it proves too hard without breakage we can add a...
I'm going to work on the LangChain integration. It will become the reference implementation for this kind of integration with the package mentioned above. It would be fantastic if somebody...
The mentioned LangChain reference implementation can be found here: https://github.com/langchain-ai/langchain-elastic/blob/66cf6f110dbfb2a89a1f92fbaa6488022275e17d/libs/elasticsearch/langchain_elasticsearch/vectorstores.py#L553