Skip to content

Commit ff938e2

Browse files
committed
Add qdrant api key for agent cloud hosted db
1 parent 00bfd4f commit ff938e2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

agent-backend/src/init/env_variables.py

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
QDRANT_HOSTNAME = os.getenv("QDRANT_HOST", "localhost")
2020
QDRANT_PORT = os.getenv("QDRANT_PORT", "6333")
2121
QDRANT_HOST = f"{QDRANT_HOSTNAME}:{QDRANT_PORT}"
22+
QDRANT_API_KEY = os.getenv("QDRANT_API_KEY")
2223
REDIS_HOST = os.getenv("REDIS_HOST")
2324
REDIS_PORT = 6379
2425
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")

agent-backend/src/vectorstores/factory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def vectorstore_factory(embedding_model: Embeddings, collection_name: str, tool,
1212
match type:
1313
case VectorDatabase.Qdrant:
1414
print("Creating Qdrant CLIENT")
15-
from init.env_variables import QDRANT_HOST
15+
from init.env_variables import QDRANT_HOST, QDRANT_API_KEY
1616
from langchain_community.vectorstores.qdrant import Qdrant
1717
from qdrant_client import QdrantClient
1818

0 commit comments

Comments
 (0)