File size: 884 Bytes
0af0679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# RAG Chat Evaluator Bot

A lightweight chatbot app that uses LangChain RAG for chunk retrieval, OpenAI for generation, and Gemini for response evaluation.

## πŸ”§ Features

- πŸ“š Retrieval-Augmented Generation (RAG) with LangChain + ChromaDB
- πŸ€– Chat interface powered by OpenAI's GPT
- βœ… Gemini-based evaluator checks tone + accuracy
- πŸ› οΈ Records user emails to Google Sheets or CSV fallback


## πŸš€ Setup

1. Clone the repo:

```bash
git clone https://github.com/your-username/rag-chat-evaluator-bot.git
cd career-chats
```

2. Create a virtual environment:

```bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

3. Install dependencies:

```bash
 install -r requirements.txt
```

2. Keys in `.env` file:
```
   GOOGLE_API_KEY=<your-api-key>
   OPENAI_API_KEY=<your-api-key>
   GOOGLE_CREDENTIALS_JSON=<b64encoded-json>
```