⚡ Instant answers. Zero guesswork. Powered by Gemini 1.5 Flash + RAG
🎯 Built for developers, support teams & technical demos — 100% free stack
📚 Answers sourced directly from official CapillaryTech API docs
| Feature | Benefit |
|---|---|
| ✅ Instant Q&A | Ask “How to authenticate?” → Get exact steps + code snippet |
| 🔍 Source Citations | Every answer links back to official CapillaryTech docs |
| 💸 Zero Cost | Uses free-tier Gemini + local embeddings (no OpenAI bills) |
| 🧠 RAG Architecture | Retrieval-Augmented Generation ensures accuracy, not hallucination |
| 🚀 Demo-Ready | Pre-loaded curated docs guarantee flawless responses |
graph LR
A[User Query] --> B(Retrieval QA Chain)
B --> C[FAISS Vector Store]
C --> D[Local Embeddings<br>sentence-transformers/all-MiniLM-L6-v2]
B --> E[Gemini 1.5 Flash LLM]
E --> F[Accurate Answer + Source URL]
- 🧠 LLM:
gemini-1.5-flash(Free, fast, factual) - 📚 Embeddings:
sentence-transformers/all-MiniLM-L6-v2(Local, no cost) - ⚡ Vector DB: FAISS (Blazing-fast similarity search)
- 🧩 Framework: LangChain (Modular RAG pipeline)
- 🌐 Docs Source: Curated snippets from docs.capillarytech.com
git clone https://github.com/your-github-username/capillary-docs-ai.git
cd capillary-docs-aipython -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
pip install -r requirements.txt- Go to 👉 Google AI Studio → Get API Key
- Create
.envfile:
GEMINI_API_KEY=AIzaYourKeyHere1234567890💡 No credit card. Free tier = 60 RPM. Takes 30 seconds.
python chatbot_free.pyAsk it anything:
💬 You: How do I authenticate API requests?
🤖 Bot: Use OAuth 2.0 Bearer Token. Header: 'Authorization: Bearer <token>'...
📚 Source: https://docs.capillarytech.com/reference/authentication
capillary-docs-ai/
├── 📁 data/
│ └── docs.json # Curated Q&A pairs (pre-loaded for accuracy)
├── 🐍 chatbot_free.py # Main RAG pipeline (Gemini + FAISS)
├── 🕸️ scraper.py # Web scraper (disabled for demo reliability)
├── 📄 .env.example # Template for your API key
├── 📋 requirements.txt # Dependencies
├── 📜 README.md # You are here!
└── 🎬 demo_script.md # Script for your 1-min video
| Question | Bot Response Snippet | Source |
|---|---|---|
| “How to authenticate?” | “Use OAuth 2.0 Bearer Token. Include header: Authorization: Bearer ...” | Authentication Docs |
| “Create customer fields?” | “Required: mobile (E.164), firstName, storeId. Example: {"mobile": "+91..."}” | Customer API |
| “Loyalty campaign setup?” | “POST /v1.1/campaigns. Required: name, type, startDate, endDate...” | Campaign Docs |
- ➕ Add More Docs: Edit
data/docs.jsonwith new Q&A pairs. - 🔄 Enable Scraper: Uncomment scraper logic in
scraper.pyfor live updates. - 🚀 Upgrade LLM: Switch to
gemini-1.5-profor deeper reasoning (rate-limited). - 🌐 Deploy Web UI: Wrap with Gradio or Streamlit for browser access.
Distributed under the MIT License. See LICENSE for details.
⚠️ Not affiliated with Capillary Technologies. For educational/demo use only.
- Google Gemini Team — for the amazing free LLM
- LangChain — for simplifying RAG pipelines
- CapillaryTech — for public developer documentation
Open an Issue or DM me on LinkedIn! Contributions welcome 🤝