rag-chatbot / app /VectorStores /Vectorstores.py
Al1Abdullah's picture
Initial clean deploy without binary files
6256536
raw
history blame contribute delete
488 Bytes
from langchain_qdrant import QdrantVectorStore
from embeddings.embedding import get_embedding
from config.config import QDRANT_URL, QDRANT_API_KEY # Use config variables
from dotenv import load_dotenv
load_dotenv()
def get_vectorstore():
return QdrantVectorStore.from_existing_collection(
embedding=get_embedding(),
collection_name="Ninesol_Technologies_Knowledge_Base",
prefer_grpc=True,
url=QDRANT_URL,
api_key=QDRANT_API_KEY
)