demeter
Autonomous Hydroponic Intelligencegit clone https://github.com/maydayv7/demeter
agent/Qdrant/Setup.py (418B)
1from qdrant_client import models
2from Qdrant.Client import client # <--- FIXED IMPORT
3
4VECTOR_SIZE = 516
5COLLECTION_NAME = "Farm_Memory"
6
7# client = QdrantClient(url="http://localhost:6333")
8
9client.recreate_collection(
10 collection_name=COLLECTION_NAME,
11 vectors_config=models.VectorParams(
12 size=VECTOR_SIZE,
13 distance=models.Distance.COSINE
14 )
15)
16
17print("Collection created:", COLLECTION_NAME)