AI-powered assistant for QA engineers
Uses OpenAI + LangChain to answer questions from test cases, feature files, logs, specs, and more — all from natural language.
This bot helps QA engineers:
-
✅ Ask natural questions like:
"What are the steps in TC-001?"
"List test cases for login." -
📄 Understand test specs and logs quickly
-
🔍 Search across multiple formats (JSON, Markdown, PDF, etc.)
-
🧪 Automate documentation understanding and reduce manual effort
It can read and index:
.json— Test cases.feature— BDD specs.md— Requirements.txt— Logs.html— Reports.pdf— Test documents.docx— Word specs
Place files inside the data/ folder.
git clone https://github.com/aiqualitylab/AI-QA-Assistant-Bot
cd qa-botMake sure Python 3.10+ is installed. Then:
pip install -r requirements.txtIn the project root, create a file called .env:
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx🔐 You can get your API key from: https://platform.openai.com/account/api-keys
python bot.pyIf it's your first run, it will index the documents. After that, it reuses the saved index.
You'll see:
🤖 QA Assistant Ready! Ask anything (type 'exit' to quit')- What is the expected result of TC-002?
- What steps are in TC-003?
- Summarize all login test cases.
- What's inside the markdown spec?
If you see a deprecation warning about run(), you can change:
qa.run(query)To:
qa.invoke(query)- You can add any number of files inside the data/ folder
- Re-run the bot to re-index updated content
- The assistant uses FAISS + OpenAI to give accurate, contextual answers
qa-bot/
├── data/ ← Your documents go here
├── bot.py ← Main script
├── qa_utils.py ← Loaders + vector index
├── requirements.txt ← Python dependencies
├── .env ← Your OpenAI API key
- LangChain
- OpenAI API
- FAISS Vector Search