chore: jarvisChat → cAIc rename, single-node consolidation on jarvis, Qdrant UUID5 + chunk-size deploy fixes

This commit is contained in:
2026-08-08 09:56:39 -07:00
parent 44387919a8
commit e14ae2bd19
28 changed files with 72 additions and 48 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
"""JarvisChat routers - /api/ingest terminal command RAG hook."""
"""cAIc routers - /api/ingest terminal command RAG hook."""
import hashlib
import hmac
import logging
import uuid
from datetime import datetime, timezone
import httpx
@@ -53,7 +54,7 @@ async def ingest_content(request: Request):
continue
vector = embed_resp.json()["embedding"]
chunk_hash = hashlib.md5(chunk.encode("utf-8")).hexdigest()[:12]
point_id = f"ingest-{source}-{chunk_hash}-{i}"
point_id = str(uuid.uuid5(uuid.NAMESPACE_DNS, f"ingest-{source}-{chunk_hash}-{i}"))
payload = {"text": encrypt_text(chunk), "source": source, "ingest_date": datetime.now(timezone.utc).isoformat(), "type": "ingest"}
payload.update(metadata)
upsert_resp = await client.put(