aiskillstore/marketplace / skills/abdulsamad94/chatbot-implementation
chatbot-implementation
VerifiedDetails of the RAG Chatbot, including UI and backend logic.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.2 KB |
| skill-report.json | config | 13.6 KB |
SKILL.md
View on GitHub---
name: chatbot-implementation
description: Details of the RAG Chatbot, including UI and backend logic.
---
# Chatbot Logic
## Overview
A specialized RAG (Retrieval Augmented Generation) chatbot that helps users learn from the textbook content.
## Backend
- **Route**: `app/api/chat/route.ts`
- **Logic**:
1. Receives `query` and `history`.
2. Embeds query using Gemini or OpenAI embedding model.
3. Searches Qdrant (vector DB) for relevant textbook chunks.
4. Constructs context from matches.
5. Generates response using Gemini Flash/Pro.
## Vector Search (Qdrant)
We use Qdrant for storing embeddings of the textbook.
- Collection: `textbook_chunks` (or similar).
- Fields: `text`, `source`, `chunk_id`.
## UI Component
- **Location**: `textbook/src/components/Chatbot/index.tsx`.
- **Features**:
- Floating chat window.
- Size controls (Small, Medium, Large).
- Markdown rendering of responses.
- Context selection (highlight text to ask about it).
- Mobile responsive design.
- Auth awareness (personalizes answer based on user profile).
## Styling
- **CSS**: `styles.module.css` (Premium animations, shadow effects).
- **Themes**: Dark/Light mode compatible (using `--ifm` variables).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |