Home > front end >  Do Jina docarray supports third party data storages like Elasticsearch?
Do Jina docarray supports third party data storages like Elasticsearch?

Time:12-19

I am building a neural search project using Jina AI, is it possible to use third party data storage or Elasticsearch as backend data source?

I tried finding resources and sample projects, didn't find any relevant results.

CodePudding user response:

Yes, it supports elasticsearch for backend data source.

pip install -U docarray[elasticsearch]
docker-compose up

To create docarray with elastic search backend-

from docarray import DocumentArray
da = DocumentArray(storage='elasticsearch', config={'n_dim': 128})

You can learn more here- https://docarray.jina.ai/advanced/document-store/elasticsearch/

  • Related