File size: 1,635 Bytes
ae7baed
40cef76
 
 
 
ae7baed
 
 
40cef76
 
 
 
 
0406edf
40cef76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0406edf
40cef76
 
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
title: Beyond ChatGPT – Beginner LLM App
emoji: πŸ’¬
colorFrom: blue
colorTo: indigo
sdk: docker
---

# πŸ’¬ Beyond ChatGPT – Beginner LLM App

This is a simple LLM-based chatbot built during the **Beyond ChatGPT** tutorial from [AI Makerspace](https://github.com/AI-Maker-Space/Beyond-ChatGPT).  
It runs locally or in a Hugging Face Space using Docker.

The app connects to the OpenAI API and supports system messages, few-shot prompting, and chain-of-thought-style reasoning.

---

## 🧠 What You Can Do

- Send prompts to a live OpenAI model
- Test structured prompting techniques
- Explore different system/assistant/user message configurations
- Use this app as a foundation for building your own LLM tools

---

## πŸš€ How to Use

If running on Hugging Face (or locally via Docker):

1. Enter a prompt in the chat window
2. Press `Enter` or click `Send`
3. The model will respond in a conversational format

---

## πŸ”§ Tech Stack

- Python
- OpenAI API (`gpt-3.5-turbo` or similar)
- Chainlit (chat interface)
- Docker (for deployment)
- Hugging Face Spaces (hosted version)

---

## πŸ“¦ Tutorial Origin

This app was built as part of the *Beyond ChatGPT* tutorial by AI Makerspace:  
πŸ”— https://github.com/AI-Maker-Space/Beyond-ChatGPT

---

## ⚠️ Notes

- You’ll need a valid OpenAI API key to run this locally or deploy it to Hugging Face.
- If using Docker, the app runs on port 7860 by default.

---

## πŸ§ͺ Example Prompt

```
What are the key takeaways from the book "Thinking, Fast and Slow"?
```

---

## πŸ™Œ Credits

Thanks to the team at #AIMakerspace for the tutorial and code scaffold.

---