ChatPilot
Vector Search
pgvector HNSW search and retrieval flow.
Use pgvector HNSW indexes on vector_chunks.embedding.
Query flow: user message to Cohere embed, cosine similarity search, top-k chunks, prompt injection, answer. Tune thresholds and define a fallback for empty day-one content libraries.