rename prompt-lab to querykey

This commit is contained in:
Kyle Corbitt
2023-07-05 10:43:28 -07:00
parent 1a45607409
commit 552199da4a
22 changed files with 119 additions and 163 deletions

View File

@@ -11,7 +11,7 @@
# Prisma # Prisma
# https://www.prisma.io/docs/reference/database-reference/connection-urls#env # https://www.prisma.io/docs/reference/database-reference/connection-urls#env
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/prompt-lab?schema=public" DATABASE_URL="postgresql://postgres:postgres@localhost:5432/querykey?schema=public"
# OpenAI API key. Instructions on generating a key can be found here: # OpenAI API key. Instructions on generating a key can be found here:
# https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key # https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key

View File

@@ -1,10 +1,10 @@
# 🧪 Prompt Lab # 🔑 QueryKey
Prompt Lab is a flexible playground for comparing and optimizing LLM prompts. It lets you quickly generate, test and compare candidate prompts with realistic sample data. QueryKey is a flexible playground for comparing and optimizing LLM prompts. It lets you quickly generate, test and compare candidate prompts with realistic sample data.
<img src="https://github.com/corbt/prompt-lab/assets/176426/fc7624c6-5b65-4d4d-82b7-4a816f3e5678" alt="demo" height="400px"> <img src="https://github.com/corbt/querykey/assets/176426/fc7624c6-5b65-4d4d-82b7-4a816f3e5678" alt="demo" height="400px">
Currently there's a public playground available at [https://promptlab.corbt.com/](https://promptlab.corbt.com/), but the recommended approach is to [run locally](#running-locally). Currently there's a public playground available at [https://querykey.dev/](https://querykey.dev/), but the recommended approach is to [run locally](#running-locally).
## High-Level Features ## High-Level Features
@@ -15,31 +15,31 @@ Set up multiple prompt configurations and compare their output side-by-side. Eac
Inspect prompt completions side-by-side. Inspect prompt completions side-by-side.
**Test Many Inputs** **Test Many Inputs**
Prompt Lab lets you *template* a prompt. Use the templating feature to run the prompts you're testing against many potential inputs for broader coverage of your problem space than you'd get with manual testing. QueryKey lets you *template* a prompt. Use the templating feature to run the prompts you're testing against many potential inputs for broader coverage of your problem space than you'd get with manual testing.
**🪄 Auto-generate Test Scenarios** **🪄 Auto-generate Test Scenarios**
Prompt Lab includes a tool to generate new test scenarios based on your existing prompts and scenarios. Just click "Autogenerate Scenario" to try it out! QueryKey includes a tool to generate new test scenarios based on your existing prompts and scenarios. Just click "Autogenerate Scenario" to try it out!
**Prompt Validation and Typeahead** **Prompt Validation and Typeahead**
We use OpenAI's OpenAPI spec to automatically provide typeahead and validate prompts. We use OpenAI's OpenAPI spec to automatically provide typeahead and validate prompts.
<img alt="typeahead" src="https://github.com/corbt/prompt-lab/assets/176426/acc638f8-d851-4742-8d01-fe6f98890840" height="300px"> <img alt="typeahead" src="https://github.com/corbt/querykey/assets/176426/acc638f8-d851-4742-8d01-fe6f98890840" height="300px">
**Function Call Support** **Function Call Support**
Natively supports [OpenAI function calls](https://openai.com/blog/function-calling-and-other-api-updates) on supported models. Natively supports [OpenAI function calls](https://openai.com/blog/function-calling-and-other-api-updates) on supported models.
<img height="300px" alt="function calls" src="https://github.com/corbt/prompt-lab/assets/176426/48ad13fe-af2f-4294-bf32-62015597fd9b"> <img height="300px" alt="function calls" src="https://github.com/corbt/querykey/assets/176426/48ad13fe-af2f-4294-bf32-62015597fd9b">
## Supported Models ## Supported Models
Prompt Lab currently supports GPT-3.5 and GPT-4. Wider model support is planned. QueryKey currently supports GPT-3.5 and GPT-4. Wider model support is planned.
## Running Locally ## Running Locally
1. Install [Postgresql](https://www.postgresql.org/download/). 1. Install [Postgresql](https://www.postgresql.org/download/).
2. Install [NodeJS 20](https://nodejs.org/en/download/current) (earlier versions will very likely work but aren't tested). 2. Install [NodeJS 20](https://nodejs.org/en/download/current) (earlier versions will very likely work but aren't tested).
3. Install `pnpm`: `npm i -g pnpm` 3. Install `pnpm`: `npm i -g pnpm`
4. Clone this repository: `git clone https://github.com/prompt-lab/prompt-lab` 4. Clone this repository: `git clone https://github.com/querykey/querykey`
5. Install the dependencies: `cd prompt-lab && pnpm install` 5. Install the dependencies: `cd querykey && pnpm install`
6. Create a `.env` file (`cp .env.example .env`) and enter your `OPENAI_API_KEY`. 6. Create a `.env` file (`cp .env.example .env`) and enter your `OPENAI_API_KEY`.
7. Update `DATABASE_URL` if necessary to point to your Postgres instance and run `pnpm prisma db push` to create the database. 7. Update `DATABASE_URL` if necessary to point to your Postgres instance and run `pnpm prisma db push` to create the database.
8. Start the app: `pnpm dev`. 8. Start the app: `pnpm dev`.

View File

@@ -1,5 +1,5 @@
{ {
"name": "prompt-lab", "name": "querykey",
"type": "module", "type": "module",
"version": "0.1.0", "version": "0.1.0",
"license": "Apache-2.0", "license": "Apache-2.0",

2
pnpm-lock.yaml generated
View File

@@ -1,4 +1,4 @@
lockfileVersion: '6.0' lockfileVersion: '6.1'
settings: settings:
autoInstallPeers: true autoInstallPeers: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 835 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M2486 6993 c-35 -9 -94 -51 -119 -85 -34 -47 -46 -88 -42 -151 4 -65
21 -101 71 -149 41 -41 94 -59 177 -61 31 -1 58 -4 58 -7 1 -3 2 -520 3 -1150
3 -1071 2 -1147 -15 -1180 -9 -19 -133 -224 -275 -455 -141 -231 -263 -431
-271 -445 -8 -14 -33 -55 -56 -92 -120 -192 -147 -236 -164 -265 -20 -35 -198
-327 -465 -761 -92 -151 -168 -278 -168 -282 0 -5 -3 -10 -8 -12 -8 -3 -170
-272 -200 -333 -24 -49 -70 -176 -77 -213 -3 -15 -7 -38 -10 -52 -12 -52 -18
-117 -18 -190 -1 -76 10 -207 18 -220 2 -3 6 -19 9 -34 31 -171 148 -385 289
-528 171 -174 380 -281 617 -316 25 -4 785 -7 1690 -7 l1645 0 98 27 c117 32
265 101 356 164 36 26 103 84 147 130 293 298 394 727 263 1118 -32 93 -78
179 -231 430 -282 461 -631 1032 -655 1071 -62 100 -327 533 -343 560 -10 17
-108 179 -220 360 -111 182 -208 344 -214 360 -9 22 -11 319 -10 1155 1 619 3
1134 3 1145 1 18 9 20 64 21 81 2 127 17 171 57 65 60 90 153 65 242 -15 53
-91 129 -144 144 -40 11 -1996 15 -2039 4z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -1 +0,0 @@
<svg id="Capa_1" enable-background="new 0 0 512 512" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m374.533 292.994h-237.066l53.828-87.996c.99-1.618 1.514-3.479 1.514-5.376v-183.273h126.383v183.273c0 1.897.524 3.757 1.514 5.376z" fill="#d3e1f4"/><path d="m374.533 292.994h-48.707l-55.341-90.471v-110.219c0-14.999-12.156-27.156-27.156-27.156h-50.52v-48.8h126.383v183.269c0 1.906.525 3.76 1.514 5.378z" fill="#b3cbea"/><path d="m368.237 282.692h-224.474l-65.678 107.367c-32.661 53.393 5.763 121.941 68.353 121.941h219.123c62.59 0 101.015-68.548 68.353-121.941z" fill="#31a7fb"/><path d="m368.233 282.692h-48.707l65.679 107.365c32.667 53.395-5.758 121.943-68.352 121.943h48.707c62.594 0 101.02-68.548 68.353-121.943z" fill="#1c96f9"/><path d="m325.649 33.23h-139.298c-9.176 0-16.615-7.439-16.615-16.615 0-9.176 7.438-16.615 16.615-16.615h139.298c9.176 0 16.615 7.439 16.615 16.615 0 9.176-7.439 16.615-16.615 16.615z" fill="#eaf6ff"/><path d="m342.267 16.617c0 4.584-1.854 8.746-4.862 11.754s-7.17 4.862-11.754 4.862h-35.222c4.595 0 8.746-1.854 11.755-4.862 2.998-3.008 4.862-7.17 4.862-11.754-.001-9.179-7.438-16.617-16.618-16.617h35.222c9.179 0 16.617 7.438 16.617 16.617z" fill="#d3e1f4"/><g><g><path d="m275.169 179.905h-44.961c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h44.961c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#84aee1"/></g><g><path d="m258.033 214.339h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726.001 4.267-3.458 7.726-7.726 7.726z" fill="#84aee1"/></g><g><path d="m258.033 248.773h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#84aee1"/></g><g><path d="m258.033 283.207h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726.001 4.267-3.458 7.726-7.726 7.726z" fill="#84aee1"/></g><g><path d="m275.169 317.641h-44.961c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h44.961c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#1c96f9"/></g><g><path d="m275.169 455.378h-44.961c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h44.961c4.268 0 7.726 3.459 7.726 7.726s-3.458 7.726-7.726 7.726z" fill="#1c96f9"/></g><g><path d="m258.033 352.075h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726.001 4.267-3.458 7.726-7.726 7.726z" fill="#1c96f9"/></g><g><path d="m258.033 386.51h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726.001 4.266-3.458 7.726-7.726 7.726z" fill="#1c96f9"/></g><g><path d="m258.033 420.944h-27.825c-4.267 0-7.726-3.459-7.726-7.726s3.459-7.726 7.726-7.726h27.825c4.268 0 7.726 3.459 7.726 7.726.001 4.266-3.458 7.726-7.726 7.726z" fill="#1c96f9"/></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -1,117 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg4893"
xml:space="preserve"
width="682.66669"
height="682.66669"
viewBox="0 0 682.66669 682.66669"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs4897"><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath4907"><path
d="M 0,512 H 512 V 0 H 0 Z"
id="path4905" /></clipPath></defs><g
id="g4899"
transform="matrix(1.3333333,0,0,-1.3333333,0,682.66667)"><g
id="g4901"><g
id="g4903"
clip-path="url(#clipPath4907)"><g
id="g4909"
transform="translate(428.7021,125.8687)"><path
d="M 0,0 -111.36,182.046 V 362.762 H -234.044 V 182.046 L -345.405,0 c -31.704,-51.829 5.594,-118.369 66.351,-118.369 H -66.351 C -5.594,-118.369 31.705,-51.829 0,0"
style="fill:#d3e1f5;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4911" /></g><g
id="g4913"
transform="translate(428.7002,125.8701)"><path
d="m 0,0 -111.36,182.04 0.002,180.72 h -122.684 v -47.373 h 49.045 c 14.557,0 26.356,-11.8 26.356,-26.356 V 182.04 L -47.28,0 c 31.71,-51.83 -5.59,-118.37 -66.35,-118.37 h 47.279 C -5.591,-118.37 31.71,-51.83 0,0"
style="fill:#b2caec;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4915" /></g><g
id="g4917"
transform="translate(364.9482,230.0898)"><path
d="m 0,0 h -217.897 l -63.754,-104.221 c -31.704,-51.829 5.594,-118.369 66.351,-118.369 H -2.597 c 60.757,0 98.056,66.54 66.351,118.369 z"
style="fill:#26a5fe;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4919" /></g><g
id="g4921"
transform="translate(364.9453,230.0898)"><path
d="m 0,0 h -47.28 l 63.755,-104.22 c 31.71,-51.83 -5.59,-118.37 -66.35,-118.37 h 47.279 c 60.76,0 98.061,66.54 66.351,118.37 z"
style="fill:#0694fc;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4923" /></g><g
id="g4925"
transform="translate(384.7168,197.7739)"><path
d="M 0,0 -67.375,110.141 V 290.856 H -190.059 V 203.134"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4927" /></g><g
id="g4929"
transform="translate(194.6582,367.0835)"><path
d="m 0,0 v -59.169 l -111.361,-182.046 c -31.704,-51.828 5.594,-118.368 66.351,-118.368 h 212.703 c 60.757,0 98.056,66.54 66.351,118.368 l -26.351,43.077"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4931" /></g><g
id="g4933"
transform="translate(323.6084,472.2432)"><path
d="m 0,0 h -135.217 c -8.908,0 -16.128,7.221 -16.128,16.128 0,8.908 7.22,16.129 16.128,16.129 L 0,32.257 c 8.907,0 16.128,-7.221 16.128,-16.129 C 16.128,7.221 8.907,0 0,0"
style="fill:#eaf6ff;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4935" /></g><g
id="g4937"
transform="translate(339.7402,488.3701)"><path
d="m 0,0 c 0,-4.45 -1.801,-8.49 -4.721,-11.41 -2.92,-2.92 -6.96,-4.72 -11.41,-4.72 H -50.32 c 4.46,0 8.49,1.8 11.41,4.72 2.91,2.92 4.72,6.96 4.72,11.41 0,8.91 -7.22,16.13 -16.13,16.13 h 34.189 C -7.221,16.13 0,8.91 0,0"
style="fill:#d3e1f5;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path4939" /></g><g
id="g4941"
transform="translate(252.2305,472.2432)"><path
d="m 0,0 h 71.378 c 8.907,0 16.128,7.221 16.128,16.128 0,8.908 -7.221,16.129 -16.128,16.129 H -63.839 c -8.908,0 -16.128,-7.221 -16.128,-16.129 C -79.967,7.221 -72.747,0 -63.839,0 h 30.014"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4943" /></g><g
id="g4945"
transform="translate(274.6074,330.3657)"><path
d="M 0,0 H -43.644"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4947" /></g><g
id="g4949"
transform="translate(257.9736,296.9404)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4951" /></g><g
id="g4953"
transform="translate(257.9736,263.5151)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4955" /></g><g
id="g4957"
transform="translate(257.9736,230.0898)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4959" /></g><g
id="g4961"
transform="translate(274.6074,196.6646)"><path
d="M 0,0 H -43.644"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4963" /></g><g
id="g4965"
transform="translate(274.6074,62.9634)"><path
d="M 0,0 H -43.644"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4967" /></g><g
id="g4969"
transform="translate(257.9736,163.2393)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4971" /></g><g
id="g4973"
transform="translate(257.9736,129.814)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4975" /></g><g
id="g4977"
transform="translate(257.9736,96.3887)"><path
d="M 0,0 H -27.01"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4979" /></g><g
id="g4981"
transform="translate(364.9482,230.0898)"><path
d="M 0,0 H -217.897"
style="fill:none;stroke:#000000;stroke-width:15;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:none;stroke-opacity:1"
id="path4983" /></g></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 7.2 KiB

100
public/logo.svg Normal file
View File

@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Generator: Adobe Illustrator 24.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="0 0 512 512"
style="enable-background:new 0 0 512 512;"
xml:space="preserve"
sodipodi:docname="logo.svg"
inkscape:version="1.2.2 (b0a8486, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs144" /><sodipodi:namedview
id="namedview142"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
showgrid="false"
inkscape:zoom="0.4609375"
inkscape:cx="304.81356"
inkscape:cy="-29.288136"
inkscape:window-width="1440"
inkscape:window-height="847"
inkscape:window-x="1080"
inkscape:window-y="1105"
inkscape:window-maximized="0"
inkscape:current-layer="g429" />
<style
type="text/css"
id="style132">
.st0{fill:#F39C12;}
.st1{fill:#F1C40F;}
</style>
<g
id="g429"
transform="rotate(-31.952357,237.34973,219.54994)"><g
id="XMLID_1_"
transform="matrix(0.75514475,0.02046743,-0.01995659,0.75644772,46.808592,36.430117)">
<path
id="XMLID_5_"
class="st0"
d="M 463.2,68.4 C 399.4,4.6 297.8,3 231.6,68.4 c -63.8,63.8 -63.8,167.8 0,231.6 63.8,63.8 167.8,63.8 231.6,0 66.2,-65.4 63.9,-167.8 0,-231.6 z M 424.6,107 c 21.3,21.3 21.3,55.9 0,77.2 -21.3,21.3 -55.9,21.3 -77.2,0 -21.3,-21.3 -21.3,-55.9 0,-77.2 21.3,-21.3 56,-21.3 77.2,0 z" />
<path
id="XMLID_8_"
class="st1"
d="m 462.5,48.7 c -63.8,-63.8 -167.8,-63.8 -231.6,0 -63.8,63.8 -63.8,167.8 0,231.6 63.8,63.8 167.8,63.8 231.6,0 63.8,-64.6 63.8,-167.8 0,-231.6 z m -38.6,38.6 c 21.3,21.3 21.3,55.9 0,77.2 -21.3,21.3 -55.9,21.3 -77.2,0 -21.3,-21.3 -21.3,-55.9 0,-77.2 22,-21.3 55.9,-21.3 77.2,0 z" />
<rect
id="XMLID_9_"
x="204.10001"
y="197.7"
transform="matrix(0.7071,-0.7071,0.7071,0.7071,-130.0056,245.4256)"
class="st1"
width="54.400002"
height="163.89999" />
<polygon
id="XMLID_10_"
class="st1"
points="193,395.3 250.5,337.8 173.3,260.6 0,434 0,511.2 77.2,511.2 96.1,492.3 77.2,434 134.7,453.6 154.4,434 154.4,395.3 " />
<path
id="XMLID_14_"
class="st0"
d="m 231.6,318.1 -77.2,77.2 H 193 l 57.5,-57.5 z m -77.2,77.2 -48.1,48.1 29.1,9.5 18.9,-18.9 c 0.1,0 0.1,-38.7 0.1,-38.7 z m -67.7,67.8 -48.1,48.1 h 38.6 l 18.9,-18.9 z" />
<polygon
id="XMLID_15_"
class="st0"
points="193,279.5 0,472.6 0,511.2 77.2,434 211.9,299.2 " />
</g></g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:424.372px;line-height:1.25;font-family:sans-serif;fill:#1a202c;fill-opacity:1;stroke:none;stroke-width:1.06093"
x="-51.142395"
y="363.65485"
id="text475"
transform="scale(0.8254529,1.2114562)"><tspan
sodipodi:role="line"
id="tspan473"
x="-51.142395"
y="363.65485"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:424.372px;font-family:'Fira Code';-inkscape-font-specification:'Fira Code';stroke-width:1.06093;fill:#1a202c;fill-opacity:1">{</tspan></text><text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:424.373px;line-height:1.25;font-family:sans-serif;fill:#1a202c;fill-opacity:1;stroke:none;stroke-width:1.06093"
x="-671.40875"
y="363.655"
id="text475-6"
transform="scale(-0.82545186,1.2114577)"><tspan
sodipodi:role="line"
id="tspan473-2"
x="-671.40875"
y="363.655"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:424.373px;font-family:'Fira Code';-inkscape-font-specification:'Fira Code';stroke-width:1.06093;fill:#1a202c;fill-opacity:1">{</tspan></text></svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -11,7 +11,7 @@ export default function PublicPlaygroundWarning() {
<Text> <Text>
Warning: this is a public playground. Anyone can see, edit or delete your experiments. For Warning: this is a public playground. Anyone can see, edit or delete your experiments. For
private use,{" "} private use,{" "}
<Link textDecor="underline" href="https://github.com/corbt/prompt-lab" target="_blank"> <Link textDecor="underline" href="https://github.com/corbt/querykey" target="_blank">
run a local copy run a local copy
</Link> </Link>
. .

View File

@@ -58,9 +58,9 @@ const NavSidebar = () => {
return ( return (
<VStack align="stretch" bgColor="gray.100" p={2} pb={0} height="100%"> <VStack align="stretch" bgColor="gray.100" p={2} pb={0} height="100%">
<HStack spacing={0}> <HStack spacing={0}>
<Image src="/flask2.svg" alt="" w={6} h={6} /> <Image src="/logo.svg" alt="" w={6} h={6} />
<Heading size="md" p={2}> <Heading size="md" p={2}>
Prompt Lab QueryKey
</Heading> </Heading>
</HStack> </HStack>
<Separator /> <Separator />
@@ -98,7 +98,7 @@ const NavSidebar = () => {
<Separator /> <Separator />
<HStack align="center" justify="center" spacing={4} p={2}> <HStack align="center" justify="center" spacing={4} p={2}>
<Link <Link
href="https://github.com/corbt/prompt-lab" href="https://github.com/corbt/querykey"
target="_blank" target="_blank"
color="gray.500" color="gray.500"
_hover={{ color: "gray.800" }} _hover={{ color: "gray.800" }}
@@ -127,7 +127,7 @@ export default function AppShell(props: { children: React.ReactNode; title?: str
templateAreas={'"warning warning"\n"sidebar main"'} templateAreas={'"warning warning"\n"sidebar main"'}
> >
<Head> <Head>
<title>{props.title ? `${props.title} | Prompt Lab` : "Prompt Lab"}</title> <title>{props.title ? `${props.title} | QueryKey` : "QueryKey"}</title>
</Head> </Head>
<GridItem area="warning"> <GridItem area="warning">
<PublicPlaygroundWarning /> <PublicPlaygroundWarning />