rishabh1003/ai-agent-gemini ? reverse-engineered prompt
Reverse engineered prompt
Build me a Spring Boot backend for an enterprise AI assistant that can answer questions about HR policies and also do live database lookups when needed.
I want it to use Gemini for chat and embeddings, store searchable policy documents in PostgreSQL with pgvector, and keep a short conversation memory so it feels continuous across messages. It should also have simple AI tools for things like looking up employee data from the database and doing basic math on request.
Please wire it so one shared database connection setup is used for both regular JPA queries and vector search. Include a basic Employee entity and repository, plus the AI config, vector store setup, and the tool classes. Make sure it runs cleanly with a local PostgreSQL 16 plus pgvector database, and add sensible defaults in the config so I can plug in my Gemini API key and start testing right away.
If you need to check current docs or any setup details, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit