An interactive chatbot that answers HR policy questions using FAISS vector search and GPT-4o via GitHub-provided OpenAI token.

- 💬 Chat interface using Streamlit
- 📁 HR documents embedded using
sentence-transformers+ FAISS - 🔍 Context-aware question rephrasing
- 🤖 GPT-4o responses via GitHub Token (
https://models.github.ai/inference)
git clone https://github.com/YOUR_USERNAME/hr-chatbot.git
cd hr-chatbotpip install -r requirements.txtGITHUB_TOKEN=your_github_provided_token_here├── faiss_index/ # Vector store (auto-generated)
├── hr-policies/ # Your HTML files (input)
├── hr-chatbot.py # Main Streamlit chatbot app
├── hr-upload.py # Script to build FAISS index from HTML
├── requirements.txt
└── README.md
Make sure your hr-policies/ folder contains all the HTML documents.
python hr-upload.pystreamlit run hr-chatbot.pyYou’ll be able to chat with the bot about HR policies in a Streamlit web UI.
- GPT-4o is accessed via GitHub’s models.github.ai inference endpoint.
- Your
GITHUB_TOKENmust be valid and have access to that endpoint. - Ensure
faiss_index/exists before running the chatbot.
MIT – free to use, modify, and share.