Spaces:
Runtime error
Runtime error
File size: 507 Bytes
9e6b8ed |
1 2 3 4 5 6 7 8 9 10 11 |
from qdrant_haystack import QdrantDocumentStore
from haystack.nodes import EmbeddingRetriever
from pathlib import Path
proj_dir = Path(__file__).parents[1]
qd_document_store = QdrantDocumentStore(path=str(proj_dir/'Qdrant'), index='RAGDemo')
qd_retriever = EmbeddingRetriever(document_store=qd_document_store,
embedding_model="BAAI/bge-base-en-v1.5",
model_format="sentence_transformers",
use_gpu=False)
|