Feb 2025GenAI / RAG
HerCare AI is an AI assistant that gives reliable, personalized support for menstrual health. It started at PearlHack 2025, where it won Best Use of AI (Infosys Foundation USA), and I later rebuilt it as version 2.0 with a production-style backend: a LangServe (FastAPI) API, a FAISS-powered RAG pipeline over curated medical articles, conversational memory for multi-turn chats, and Docker-based deployment.
Reliable information about menstrual and reproductive health is scattered, and general-purpose chatbots answer health questions without showing where the answer came from. I wanted an assistant whose answers are grounded in trusted medical sources, that handles natural follow-up questions, and that is clear about its limits.
At the hackathon we had one weekend. Version 1 was a Streamlit app on Gemini 1.5 Flash: it matched each question against 14 curated question-and-answer pairs using TF-IDF similarity, returned the curated answer when the match was confident (similarity above 0.3), and otherwise fell back to Gemini with the last three turns of the chat. It won Best Use of AI, but it only covered questions close to those 14 pairs, and the fallback answers were not grounded in any source. Version 2 was a rebuild to fix exactly that.
11 trusted pages (9 from NIH NICHD, plus ACOG and a peer-reviewed article), cleaned with BeautifulSoup
Recursive text splitter, 500 characters with 50 overlap
OpenAI embeddings stored in a FAISS vector index
Top 4 most similar chunks for each question
GPT-4o at temperature 0; follow-ups are rewritten into standalone questions using chat memory
LangServe (FastAPI) API plus a Streamlit chat UI, containerized for Hugging Face Spaces
| Hackathon | PearlHack 2025, UNC Chapel Hill |
| Award | Winner, Best Use of AI (Infosys Foundation USA) |
| Stack | Python, LangChain, LangServe, FastAPI, FAISS, Gemini / OpenAI, Streamlit, Docker |
I'm always happy to chat about agents, RAG, and GenAI engineering.
Get in touch