Skip to content

Commit

Permalink
Fix readme (#1495)
Browse files Browse the repository at this point in the history
Fix readme


Summary:

Test Plan:

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1495).
* __->__ #1495
* #1494
* #1493
* #1492
  • Loading branch information
saqadri authored May 21, 2024
2 parents 830cbb7 + f720618 commit 80c9a89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbooks/Basic-Prompt-Routing/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Basic Prompting Routing - AI Teaching Assistant

[![colab](https://colab.research.google.com/drive/1ue0ZAEdlalw57JwTtXlfl8kH8W_j1XQq#scrollTo=kNmnUZnUFzt3)]
[![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1ue0ZAEdlalw57JwTtXlfl8kH8W_j1XQq#scrollTo=kNmnUZnUFzt3)

This demo shows prompt routing with AIConfig. We used streamlit to host the app so you can interact with the assistant!
Alternatively, you can run the aiconfig in an ipynb

![image](https://github-production-user-asset-6210df.s3.amazonaws.com/81494782/282203473-f779feb6-339d-4331-9aed-1761b845100a.png)

## Streamlit

![image](https://github-production-user-asset-6210df.s3.amazonaws.com/81494782/282203473-f779feb6-339d-4331-9aed-1761b845100a.png)

### How does it work?

The user asks a question. The LLM decides the topic as math, physics, or general. Based on the topic, the LLM selects a different "assistant" to respond. These assistants have different system prompts and respond with varying introductions and style of response.
Expand All @@ -25,6 +25,6 @@ The user asks a question. The LLM decides the topic as math, physics, or general

## IPython Notebook

[![colab](https://colab.research.google.com/drive/1ue0ZAEdlalw57JwTtXlfl8kH8W_j1XQq#scrollTo=kNmnUZnUFzt3)]
[![colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1ue0ZAEdlalw57JwTtXlfl8kH8W_j1XQq#scrollTo=kNmnUZnUFzt3)

Open assistant.ipynb in this folder, or in Colab, to use the aiconfig

0 comments on commit 80c9a89

Please sign in to comment.