Skip to content

Commit 5c537d4

Browse files
authored
Merge pull request #3 from rich-iannone/feat-chat-component
feat: chat component
2 parents 961ae5f + 62594dd commit 5c537d4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+11852
-14
lines changed

.vite/deps/_metadata.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hash": "3059ecb5",
3+
"configHash": "58e520d3",
4+
"lockfileHash": "e3b0c442",
5+
"browserHash": "32f77d53",
6+
"optimized": {},
7+
"chunks": {}
8+
}

.vite/deps/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,37 @@ Looking at the generated prompts, we can identify several key principles that co
223223
And we've implemented these principles in our prompt engineering process, ensuring that the prompts
224224
you create and use are effective and aligned with these best practices.
225225

226+
## Modern Web Interface
227+
228+
Launch a polished React-based chat interface by using `show("react")`:
229+
230+
```python
231+
import talk_box as tb
232+
233+
# Create and configure a chatbot
234+
bot = (
235+
tb.ChatBot(
236+
name="FriendlyBot",
237+
description="A bot that'll talk about any topic."
238+
)
239+
.model("gpt-4")
240+
.temperature(0.3)
241+
.persona("You are a friendly conversationalist")
242+
)
243+
244+
bot.show("react")
245+
```
246+
247+
![Talk Box React Interface](talk-box-interface.png)
248+
249+
The React interface provides a professional chat experience with:
250+
251+
- **Modern Design**: clean, responsive interface that works on desktop and mobile
252+
- **Live Typing Indicators**: visual feedback during bot responses
253+
- **Code Block Highlighting**: syntax highlighting for technical conversations
254+
- **Conversation History**: full chat history with easy navigation
255+
- **Bot Configuration Display**: see your bot's settings and persona at a glance
256+
226257
## Pre-configured Engineering Templates
227258

228259
Start with expert-crafted prompts for common engineering tasks:

docs/_quarto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ website:
4848
contents:
4949
- user-guide/index.qmd
5050
- user-guide/installation.qmd
51+
- user-guide/react-chat.qmd
5152
- section: "Core Concepts"
5253
contents:
5354
- user-guide/chatbot-basics.qmd

0 commit comments

Comments
 (0)