File size: 2,073 Bytes
23f0ccf
 
 
 
 
 
 
 
 
 
 
 
0bc2639
 
 
 
 
 
 
 
 
 
 
 
 
2fbd512
0bc2639
 
2fbd512
 
 
 
0bc2639
 
 
2fbd512
 
 
0bc2639
 
 
2fbd512
 
 
0bc2639
 
 
2fbd512
 
 
0bc2639
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: Grok-4 Chatbot
emoji: 🗲
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
---
# grok-4-chatbot(phase0)
RAG_Chatbot_Grok
Grok-4 Chatbot (Phase 0)
Live demo: https://dykemanTech-grok-rag-chatbot.hf.space
A real-time streaming chatbot powered by xAI's Grok-4 API, built with Gradio for a clean, responsive user experience.
Current Phase: Phase 0 - Basic Streaming Chatbot (Complete)
This initial version demonstrates core functionality:

Real-time token streaming for natural, typing-effect responses
Multi-turn conversation support with stable context handling
Clean Monochrome dark theme for professional look and high readability
Grok avatar using remote URL
Secure API key management via Hugging Face Secrets
Fully deployed on Hugging Face Spaces with PWA support (installable on mobile/desktop)

Upcoming Features:
Phase 1: Retrieval-Augmented Generation (RAG)

    File upload support (PDF, TXT)
    Document chunking, embedding, and vector storage (Chroma/FAISS)
    Grounded responses using user-uploaded content to reduce hallucinations
    Source citations in responses

Phase 2: AI Agent with Tool Use

    Integration of external tools (web search, code execution, etc.)
    ReAct-style reasoning loop
    Autonomous multi-step task completion

Phase 3: Evaluation Dashboard

    Automated benchmarking and metrics (hallucination detection, relevance, latency)
    Side-by-side model comparison
    Custom test sets and red-teaming

Future Enhancements

    Voice input/output
    Multi-model support (compare Grok, Claude, GPT, etc.)
    Persistent user sessions and chat history

This project is being built iteratively as a hands-on demonstration of modern generative AI engineering skills - from API integration and UI design to advanced RAG and agentic workflows.
Live Demo: https://dykemanTech-grok-rag-chatbot.hf.space
Source Code: https://github.com/ChubbyPandaStudios/RAG_Chatbot_Grok_Clean
Built with passion by a generative AI enthusiast aiming for intermediate roles in 2026. Feedback welcome!