Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat tutorials #1206

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ st.altair_chart(combined_chart, use_container_width=True)
### Initialize your app

1. In `your_repository`, create a file named `app.py`.
1. In a terminal, change directories to `your_repository` and start your app.
1. In a terminal, change directories to `your_repository`, and start your app.

```bash
streamlit run app.py
```

Your app will be blank since you still need to add code.
Your app will be blank because you still need to add code.

1. In `app.py`, write the following:

Expand All @@ -140,10 +140,10 @@ st.altair_chart(combined_chart, use_container_width=True)
- You'll maniputate the data using `pandas`.
- You'll define a chart using `altair`.

1. Save your `app.py` file and view your running app.
1. Click "**Always rerun**" or hit your "**A**" key in your running app.
1. Save your `app.py` file, and view your running app.
1. In your app, select "**Always rerun**", or press your "**A**" key.

Your running preview will automatically update as you save changes to `app.py`. Your preview will still be blank. Return to your code.
Your preview will be blank but will automatically update as you save changes to `app.py`. Return to your code.

### Build the data layer

Expand Down
10 changes: 5 additions & 5 deletions content/develop/tutorials/elements/dataframes/row_selections.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ Here's a look at what you'll build:
### Initialize your app

1. In `your_repository`, create a file named `app.py`.
1. In a terminal, change directories to `your_repository` and start your app.
1. In a terminal, change directories to `your_repository`, and start your app.

```bash
streamlit run app.py
```

Your app will be blank since you still need to add code.
Your app will be blank because you still need to add code.

1. In `app.py`, write the following:

Expand All @@ -159,10 +159,10 @@ Here's a look at what you'll build:
- You'll generate random activity data with `numpy`.
- You'll manipulate the data with `pandas`.

1. Save your `app.py` file and view your running app.
1. Click "**Always rerun**" or hit your "**A**" key in your running app.
1. Save your `app.py` file, and view your running app.
1. In your app, select "**Always rerun**", or press your "**A**" key.

Your running preview will automatically update as you save changes to `app.py`. Your preview will still be blank. Return to your code.
Your preview will be blank but will automatically update as you save changes to `app.py`. Return to your code.

### Build a function to create random member data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ with st.sidebar:
### Initialize your app

1. In `your_repository`, create a file named `app.py`.
1. In a terminal, change directories to `your_repository` and start your app.
1. In a terminal, change directories to `your_repository`, and start your app.

```bash
streamlit run app.py
```

Your app will be blank since you still need to add code.
Your app will be blank because you still need to add code.

1. In `app.py`, write the following:

Expand All @@ -116,10 +116,10 @@ with st.sidebar:

You'll use `time.sleep()` to slow things down and see the fragments working.

1. Save your `app.py` file and view your running app.
1. Click "**Always rerun**" or hit your "**A**" key in your running app.
1. Save your `app.py` file, and view your running app.
1. In your app, select "**Always rerun**", or press your "**A**" key.

Your running preview will automatically update as you save changes to `app.py`. Your preview will still be blank. Return to your code.
Your preview will be blank but will automatically update as you save changes to `app.py`. Return to your code.

### Frame out your app's containers

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ show_latest_data()
### Initialize your app

1. In `your_repository`, create a file named `app.py`.
1. In a terminal, change directories to `your_repository` and start your app.
1. In a terminal, change directories to `your_repository`, and start your app.

```bash
streamlit run app.py
```

Your app will be blank since you still need to add code.
Your app will be blank because you still need to add code.

1. In `app.py`, write the following:

Expand All @@ -125,10 +125,10 @@ show_latest_data()
- You'll generate random data with `numpy`.
- The data will have `datetime.datetime` index values.

1. Save your `app.py` file and view your running app.
1. Click "**Always rerun**" or hit your "**A**" key in your running app.
1. Save your `app.py` file, and view your running app.
1. In your app, select "**Always rerun**", or press your "**A**" key.

Your running preview will automatically update as you save changes to `app.py`. Your preview will still be blank. Return to your code.
Your preview will be blank but will automatically update as you save changes to `app.py`. Return to your code.

### Build a function to generate random, recent data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ with monthly:
### Initialize your app

1. In `your_repository`, create a file named `app.py`.
1. In a terminal, change directories to `your_repository` and start your app.
1. In a terminal, change directories to `your_repository`, and start your app.

```bash
streamlit run app.py
```

Your app will be blank since you still need to add code.
Your app will be blank because you still need to add code.

1. In `app.py`, write the following:

Expand All @@ -164,10 +164,10 @@ with monthly:
- The products sold will be "Widget A" through "Widget Z," so you'll use `string` for easy access to an alphabetical string.
- Optional: To help add emphasis at the end, you'll use `time.sleep()` to slow things down and see the fragment working.

1. Save your `app.py` file and view your running app.
1. Click "**Always rerun**" or hit your "**A**" key in your running app.
1. Save your `app.py` file, and view your running app.
1. In your app, select "**Always rerun**", or press your "**A**" key.

Your running preview will automatically update as you save changes to `app.py`. Your preview will still be blank. Return to your code.
Your preview will be blank but will automatically update as you save changes to `app.py`. Return to your code.

### Build a function to create random sales data

Expand Down
20 changes: 19 additions & 1 deletion content/develop/tutorials/llms/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Build LLM apps
slug: /develop/tutorials/llms
slug: /develop/tutorials/chat-and-llm-apps
---

# Build LLM apps
Expand All @@ -23,4 +23,22 @@ Build a chat app using the LangChain framework with OpenAI.

</RefCard>

<RefCard href="/develop/tutorials/chat-and-llm-apps/chat-response-feedback">

<h5>Get chat response feedback</h5>

Buid a chat app and let users rate the responses.
(<i style={{ verticalAlign: "-.25em" }} className={{ class: "material-icons-sharp" }}>thumb_up</i>
<i style={{ verticalAlign: "-.25em" }} className={{ class: "material-icons-sharp" }}>thumb_down</i>)

</RefCard>

<RefCard href="/develop/tutorials/chat-and-llm-apps/validate-and-edit-chat-responses">

<h5>Validate and edit chat responses</h5>

Build a chat app with response validation. Let users correct or edit the responses.

</RefCard>

</TileContainer>
Loading