Skip to content
Back to skills

Chatbot Abdulsamad94 Hackhaton Specskitpl

ASecurity

Details of the RAG Chatbot, including UI and backend logic.

  • 666 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added June 2, 2026
ai-agentsapibackend

Works with

  • api

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill chatbot-abdulsamad94-hackhaton-specskitpl --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chatbot Abdulsamad94 Hackhaton Specskitpl?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chatbot Abdulsamad94 Hackhaton Specskitpl
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-chatbot-abdulsamad94-hackhaton-specskitpl/badge)](https://www.skillsdirectory.com/skills/majiayu000-chatbot-abdulsamad94-hackhaton-specskitpl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.