Metadata-Version: 2.1
Name: milvus-haystack
Version: 0.0.3
Project-URL: Documentation, https://github.com/milvus-io/milvus-haystack#readme
Project-URL: Issues, https://github.com/milvus-io/milvus-haystack/issues
Project-URL: Source, https://github.com/milvus-io/milvus-haystack
Author-email: Zilliz <support@zilliz.com>
License-Expression: Apache-2.0
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.7
Requires-Dist: farm-haystack
Requires-Dist: haystack-ai
Requires-Dist: milvus
Requires-Dist: pymilvus
Requires-Dist: typing-extensions
Description-Content-Type: text/markdown

# Milvus Document Store for Haystack


## Installation

```console
pip install -e milvus-haystack
```

## Usage
First, to start up a Milvus service, follow the ['Start Milvus'](https://milvus.io/docs/install_standalone-docker.md#Start-Milvus) instructions in the documentation. 

Then, to use the `MilvusDocumentStore` in a Haystack pipeline"

```py
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](https://spdx.org/licenses/Apache-2.0.html) license.