Skip to main content

No project description provided

Project description

Milvus Document Store for Haystack

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

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

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

milvus_haystack-0.0.3.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

milvus_haystack-0.0.3-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page