ritiksontakke/Rag_project ? reverse-engineered prompt

Reverse engineered prompt

Build me a company knowledge assistant web app where people can sign up, log in with email and password, and then ask questions about internal PDF documents.

I want role based access for employee, manager, and admin, with department level document isolation so people only see content from their own department. Managers and admins should be able to upload PDF files, view documents, search them, update them, and delete them, while employees can mostly just search and ask questions.

The app should use a FastAPI backend, store users in PostgreSQL, and use JWT login. For the knowledge search, index PDF content in a vector database, retrieve the most relevant chunks, and answer only from the company docs. If the answer is not in the documents, say so clearly.

Please make it work end to end, include a simple API docs page, and wire in the agent flow for upload, document management, and question answering. If you need to check current docs for any library details, 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