pip install -e milvus-haystack
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
document_store = MilvusDocumentStore()
documents = [Document(
content="A Foo Document",
meta={"page": "100", "chapter": "intro"},
embedding=[-10.0] * 128,
)]
document_store.write_documents(documents)
document_store.count_documents() # 1
milvus-haystack
is distributed under the terms of the Apache-2.0 license.