1. Python - Resume AI Api
Personal Resume Project
  • Personal Resume Project
    • Introduction, Read Me!
    • Golang - Echo Api
      • Technical Documentation for Go Echo Backend
      • MongoDB Schema Documentation
      • GetPersonalInfo
      • GetExperience
    • Python - Resume AI Api
      • AI Chat Service – Resume Assistant Tech Doc
  1. Python - Resume AI Api

AI Chat Service – Resume Assistant Tech Doc

🤖 AI Chat Service – Resume Assistant Tech Doc#

Welcome to the brains behind my interactive resume!
This AI microservice helps turn boring CVs into a smart, searchable, chatbot-powered experience—all serverlessly deployed on AWS Lambda.
If you’re into geeky stuff, you’re in for a treat! This isn’t just another run-of-the-mill online resume—nope, we’re taking things to the next level! ⚡

🧠 What This Does#

This Python-based FastAPI service is deployed to AWS Lambda and powers two endpoints:
1.
/chat – Lets users ask anything about your resume. It uses text embedding and Gemini to find the best answer.
2.
/embed-to-pinecone – Fetches your resume data from MongoDB and embeds it into Pinecone for semantic search.

🛠️ Tech Stack#

LayerTech
LanguagePython 3.10
FrameworkFastAPI + Mangum (for Lambda)
HostingAWS Lambda
Vector DBPinecone
DatabaseMongoDB Atlas
Embedding APIGemini API
SecretsAWS SSM Parameter Store

🔁 API Endpoints#

📥 /chat – Ask My Resume Anything#

Purpose:
Process a user’s natural language query and return an intelligent response based on resume data.
Workflow:
1.
✍️ Accept a user query
2.
🧠 Embed the query using Gemini
3.
🔍 Use Pinecone to find relevant context
4.
🤖 Feed context + query to Gemini
5.
🎯 Return the generated answer
Sample Request:
POST /chat
{
    "query":"can you tellme whats kenneth's skills?"
}

Sample Response:

{
    "response": "Certainly! Based on the context provided, here are some of Kenneth's key skills:\n\nHe has strong technical skills including:\n*   System Design and Architecture\n*   Programming Languages (specifically Java, Go, Rust, Python, and C# using various frameworks like Spring Boot, Echo, Actix Web, FastAPI, and .Net Core)\n*   Tech R&D\n*   Microservices Architecture\n*   Database Management\n\nHe's also skilled in:\n*   AI & Machine Learning (including LangChain integration with LLMs and text embedding)\n*   Cloud & Infrastructure (AWS, Google Cloud Platform)\n*   DevOps & CI/CD (Jenkins, Docker, Kubernetes, pipeline setup)\n\nOn the non-technical side, the context highlights:\n*   Critical Thinking & Problem-Solving\n*   Leadership (mentoring teams, fostering collaboration)\n\nHe identifies himself as a Backend Engineer and an AI Enthusiast.\n\nHope this helps!"
}

⸻

🚀 /embed-to-pinecone – One-Time Data Embedding#

Purpose:
Pull structured resume data from MongoDB, embed it with Gemini, and store the embeddings in Pinecone for fast retrieval later.
Workflow:
1.
📦 Fetch raw resume documents from MongoDB
2.
✨ Embed content using Gemini
3.
🧠 Store vector embeddings in Pinecone
Trigger: Usually run once or when the resume data is updated.
Sample Request:
POST /embed-to-pinecone
{
    "collectionName" : "expertise"
}
Sample Response:

{
    "status": "success",
    "message": "Upserted 2 chunks to Pinecone"
}

⸻
🚀 Deployment Info
This service is fully serverless, deployed to AWS Lambda using Mangum as the FastAPI adapter.
It scales automatically with zero cold start issues for most workloads, thanks to lightweight design and pre-warmed models.
⸻
Modified at 2025-05-05 09:53:19
Previous
GetExperience
Built with