filip-halt / milvus-haystack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

milvus-documentstore

Installation

pip install -e milvus-haystack

Usage

First, to start up a Milvus service, follow the 'Start Milvus' instructions in the documentation.

Then, to use the MilvusDocumentStore in a Haystack pipeline"

from haystack import Document
from milvus_haystack import MilvusDocumentStore

ds = MilvusDocumentStore()
ds.write_documents([Document("Some Content")])
ds.get_all_documents()  # prints [<Document: {'content': 'foo', 'content_type': 'text', ...>]

License

milvus-documentstore is distributed under the terms of the Apache-2.0 license.

About

License:Apache License 2.0


Languages

Language:Python 100.0%