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.4.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for milvus_haystack-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6423c79efb982a49524ffc8455b7be5e26fd8b02115f2a4b538e158a71bea0d |
|
MD5 | 4309f9e49776706dc5bb5cab338d5df8 |
|
BLAKE2b-256 | 816a329f6c51addc09b339f1897dd4caca65a9b8b6d9fe2558dff06ea5d22963 |