What to build
A retriever service and supporting endpoint that embeds an incoming query and returns the top-K most semantically similar conversation chunks from pgvector. Used by the chat engine to inject factual context into each prompt.
Acceptance criteria
Blocked by
What to build
A retriever service and supporting endpoint that embeds an incoming query and returns the top-K most semantically similar conversation chunks from pgvector. Used by the chat engine to inject factual context into each prompt.
Acceptance criteria
retrieveContext(conversationId, query, { topK, scoreThreshold })returns ranked chunks with cosine similarity scores<=>cosine distance operatorGET /conversations/:id/context?q=...endpoint exposes retriever for testingBlocked by