KostiantynBk/ragAssistant ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python app that answers questions from a technical docs collection using retrieval augmented generation, with answers that always include citations and only say things that are supported by the source text.

I want a small API where I can send a question and get back a grounded answer, the source passages it used, and some basic timing info. Please include two ways to split the docs, one simple text splitter and one that respects markdown headers, then store embeddings in a vector database and add a reranking step before generating the final answer. The responses should be validated so they have a clear structure and a grounded flag.

Also add a simple evaluation flow that can run a few saved question and answer pairs, compare the different chunking and reranking options, and save results locally. A health endpoint and a way to view the latest evaluations would be nice too. If you need to check current library docs while building it, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab