AbhiCoder25/Adaptive-Rag ? reverse-engineered prompt
Reverse engineered prompt
Build me an Adaptive RAG chatbot that lets a user upload PDF or TXT files, ask questions in a chat window, and get answers that are pulled from their documents when possible, or from general knowledge, or from a live web search when needed.
I want a simple Streamlit web app for the chat and document upload, backed by a FastAPI service. The app should keep conversation history for each session, remember past messages, and feel like a real assistant. It should automatically figure out whether a question belongs to the uploaded docs, needs outside knowledge, or should search the web, then route it to the right path and generate a useful answer.
Please use a vector database for document retrieval, MongoDB for chat memory, and an agent style workflow so the system can decide what to do step by step. If you need current docs or setup details for any of the libraries, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit