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)
Built Distribution
Close
Hashes for milvus_haystack-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9730dcede8625ab896a3b04a856b508dbfb3179a16fa0755d5bef07990d4aea7 |
|
MD5 | 3d2d919f5839e094aa86944919833241 |
|
BLAKE2b-256 | b4aa0320b7cd52e391484d8a4e1b8127d44f42d5afc93b7df57bcbf54224667f |