-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update ab-testing cookbook * fix: context relevancy -> context utilization * fix: create a dataset cookbook * fix: evaluate agent runs * fix: distributed tracing * fix: evaluate user satisfaction cookbook * fix: langgraph example cookbook * fix: RAG LlamaIndex cookbook * fix: monitor conversational ai agent * fix: multimodal conversational ai cookbook * fix: add example image * fix: relevancy -> utilization * fix: swap LLMs * fix: literalai version * fix: version literalai * fix: typescript cookbooks versions & co * fix: add experiment comparison
- Loading branch information
Showing
66 changed files
with
9,104 additions
and
6,618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,8 @@ | |
**/dist | ||
**/node_modules | ||
|
||
# Uvicorn CPython | ||
**/*.pyc | ||
|
||
.env | ||
.python-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
OPENAI_API_KEY= | ||
LITERAL_API_KEY= | ||
LITERAL_API_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
# Client-side A/B testing two prompts | ||
|
||
In this notebook, you will learn how to do a simple A/B test between two different prompts, using Literal AI's Thread observability but running the test client-side. | ||
In this notebook, you will learn how to do a simple A/B test between two different prompts, | ||
using Literal AI's Thread observability and running the test client-side. | ||
|
||
## Setup | ||
|
||
To install dependencies, run: | ||
To install dependencies, run: | ||
|
||
```bash | ||
pip install -r requirements.txt | ||
``` | ||
``` | ||
|
||
Create and set your Literal AI and OpenAI API keys in `.env`: | ||
|
||
```bash | ||
cp .env.example .env | ||
``` | ||
``` |
95 changes: 49 additions & 46 deletions
95
python/ab-testing-client-side/ab-testing-client-side.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
python-dotenv>=1.0.1 | ||
literalai>=0.0.503 | ||
literalai>=0.1.0 | ||
openai | ||
matplotlib |
Oops, something went wrong.