render-examples/RAG-chatbot-template ? reverse-engineered prompt

Reverse engineered prompt

Build me a full stack chatbot app that can answer questions from a small knowledge base using OpenAI and retrieval from a database. I want a clean chat interface where people can have back and forth conversations, see where answers came from with source citations, and get a sense of how much context is being used as they chat.

Please set it up so it runs easily with Docker locally, with a PostgreSQL database that supports vector search, a TypeScript backend, and a React frontend. It should automatically load a starter set of docs into the database when it starts, and the backend should handle the chat API, health checks, migrations, and the retrieval logic. Use shared UI components if that helps keep the look consistent.

Make it easy to deploy too, ideally with a ready to use Render setup. If anything needs current docs or best practices, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab