DevVerse RAG And Chat Workflow
Preserve the response contract between backend and UI. The UI expects an
answerstring, asourcesarray, bracket citations in the answer body, and a trailingSources:section that it strips before rendering.Keep citation parsing aligned with UI behavior. If you change citation formatting, update both
lib/chat-citations.tsand the chat UI in the same task.Preserve hybrid retrieval unless you are intentionally redesigning it.
lib/rag.tsmerges Pinecone results with the local lexical fallback fromlib/rag-local.ts.Read the detailed contract before changing retrieval, prompt format, or vector metadata. @references/rag-contract.md
Assume Pinecone vectors are stale after article or chunking changes until vectorization is rerun.
Validate chat changes with both tests and explicit runtime caveats. Use the
devverse-validateskill for automated checks, then note any live env checks you could not perform.