Pre-pgvector migration checkpoint — upsert, allow_replace_deleted, maintenance timer

This commit is contained in:
2026-04-26 20:19:49 +00:00
parent 72c8d1ef2c
commit d2eed98906
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ embedder = SentenceTransformer("all-MiniLM-L6-v2")
chroma_client = chromadb.PersistentClient(path=DB_PATH)
collection = chroma_client.get_or_create_collection(
name="aaronai",
metadata={"hnsw:space": "cosine"}
metadata={"hnsw:space": "cosine", "hnsw:allow_replace_deleted": True}
)
anthropic_client = anthropic.Anthropic(api_key=os.getenv("ANTHROPIC_API_KEY"))