File size: 1,224 Bytes
2e8ad95
981338a
2e8ad95
 
981338a
2e8ad95
 
 
 
981338a
 
 
e05c6c8
2e8ad95
 
 
 
 
c6afd6f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e05c6c8
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
---
title: Gradio RAG
emoji: 💬
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
thumbnail: >-
  https://cdn-uploads.huggingface.co/production/uploads/6717debbdc93697931443e1a/ZGyXEFgXtnCB8QMWAzExn.jpeg
short_description: 'RAG in chatbot style '
license: mit
---

An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).


# Knowledge Base Chatbot

This is a chatbot that can answer questions based on your knowledge base. It uses FAISS for similarity search and the Together API for generating responses.

## Features

- Natural conversation with context awareness
- Chat history preservation
- Clean interface
- Fast responses

## Setup

1. Create a Hugging Face Space
2. Upload your FAISS index files
3. Set your Together API key in the Space's secrets with the name `TOGETHER_API_KEY`
4. The app will automatically deploy

## Usage

Simply type your questions in the chat interface and get responses based on the knowledge base.

## Environment Variables

- `TOGETHER_API_KEY`:  Together API key (required)