CoolFace
Apppublic

pratikkrsharma/personal-career-agent

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿง‘โ€๐Ÿ’ผ Personal Career Agent

A personal AI career chatbot built with Gradio, OpenAI API (via OpenRouter), and Vector Search (RAG). This assistant represents Pratik Sharma and answers career-related questions about his background, skills, projects, and experience. It can also capture leads by detecting when a user wants to get in touch and sending an push notification automatically on my mobile.


๐Ÿšฉ Key Features

โœ… Answers questions about Pratik Sharma career, experience, and expertise โœ… Uses Vector Database (RAG) to enrich context with past data โœ… Powered by LLMs via OpenRouter API โœ… Detects potential clients' interest and sends push notifications automatically โœ… Easy-to-use Gradio Chat Interface โœ… Github action to automatically deploy changes to Huggingface Space


๐Ÿ›  Tech Stack

  • โ€”Python
  • โ€”Gradio (Chat Interface)
  • โ€”OpenRouter / OpenAI API (LLMs)
  • โ€”Vector Database (Similarity Search)
  • โ€”SMTP / Gmail (Automated Email Notifications)
  • โ€”dotenv (Environment Variables)

๐Ÿ”ง Setup & Run

1๏ธโƒฃ Clone the Repo

bash
git clone https://github.com/pratikkrsharma/personal-career-agent
cd persona-career-agent

2๏ธโƒฃ Install Dependencies

bash
pip install -r requirements.txt

3๏ธโƒฃ Set Environment Variables

Create a .env file with the following:

env
OPENROUTER_API_KEY=your_openrouter_api_key_here
RECEIVER_MAIL_ADDRESS=any mail address which will receive mail with user's message
SENDER_MAIL_ADDRESS=gmail address to send user's message
MAIL_PASSWORD=your_gmail_app_password_here

โš ๏ธ Note: For Gmail, you need to use an App Password, not your main account password.


4๏ธโƒฃ Launch the App

bash
python app.py

With UV:

bash
uv sync
bash
uv run python app.py

It will open a Gradio web UI locally.


๐Ÿ“ค How Notifications Work

If the LLM detects a user expressing interest to connect, it sends an email to your configured Gmail with the message details.

Trigger Example:

send notification to pratik that this person with <user email> wants to get in touch with you

The user will then be shown your email and phone number automatically.


๐Ÿ“‚ Project Structure

โ”œโ”€โ”€ app.py               # Main app with Gradio UI
โ”œโ”€โ”€ vectordb.py          # Vector DB setup for context retrieval (RAG)
โ”œโ”€โ”€ .env                 # API keys & email credentials
โ”œโ”€โ”€ requirements.txt     # Dependencies
โ””โ”€โ”€ README.md            # Project documentation (this file)

๐Ÿš€ Example Interaction

User: Tell me more about Pratik's background in AI.

Agent: Pratik Sharma has worked as a software engineer, building projects in data pipelines, AI agents, LangGraph, and OpenAI integrations...


โœจ Future Enhancements

  • โ€”Analytics dashboard for tracking user questions
  • โ€”Deployment as a self hosted website

๐Ÿ“ง Contact

If you'd like to collaborate or learn more, feel free to contact: ๐Ÿ“ง [mail](mailto:pratikkrsharma@gmail.com)