-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from PromptSail/dev
Alpha release
- Loading branch information
Showing
14 changed files
with
199 additions
and
53 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
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: "How PromptSail stores transactions" | ||
permalink: /docs/storing-transactions/ | ||
excerpt: "How all inputs and outputs are stored by PromptSail" | ||
last_modified_at: 2024-01-04T18:48:05+01:00 | ||
redirect_from: | ||
- /theme-setup/ | ||
toc: true | ||
|
||
--- | ||
|
||
|
||
## Input/output proxy | ||
|
||
Prompt Sail stores transactions by acting as a proxy for libraries and capturing the request and response data. This is done in the **store_transaction** function in the **src\transactions\use_cases.py** file. | ||
|
||
All the magic happens thanks to properly prepared **base_url** with points to the prompt sail backend as a proxy | ||
|
||
The url structure is as follows: | ||
|
||
``` | ||
http://<prompt_sail_backend_url>/project_slug/ai_deployment/?tags=tag1,tag2,tag3 | ||
``` | ||
|
||
where: | ||
* **project_slug** is a slugified project name, configured in the UI while creating a project | ||
* **ai_deployment** is a slugified AI deployment name, configured in the project settings with the target AI provider api url eg. https://api.openai.com/v1/, you can configure multiple AI deployments for a single project | ||
* **tags** is a comma-separated list of tags. This is optional and can be used to tag a transaction eg. with a specific experiment name, department, prompting technique etc. Tags can help you filter and analyze transactions in the UI. | ||
|
||
|
||
Proxy on your behalf make a call to the configured AI API and log the request and response data in the database. | ||
|
||
Transaction object is created with the following fields: | ||
|
||
* `id`: The ID of the transaction. | ||
* `project_id`: The ID of the project that the transaction belongs to. | ||
* `request`: A dictionary that contains the original request data, including the method, URL, host, headers, extensions, and content. | ||
* `response`: A dictionary that contains the response data, including the status code, headers, next request, error status, success status, content, elapsed time, and encoding. | ||
* `query_params`: A dictionary that contains additional query parameters like tags. |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "LLM integrations" | ||
permalink: /docs/llm-integrations/ | ||
excerpt: "Integrations with most common LLM libraries and providers" | ||
last_modified_at: 2024-01-04T18:18:15+01:00 | ||
redirect_from: | ||
- /theme-setup/ | ||
toc: true | ||
|
||
--- | ||
|
||
|
||
todo: Under construction | ||
|
||
## Supported LLM libraries and providers | ||
|
||
* [LangChain](#langchain-integration) | ||
* [OpenAI](#openai-integration) | ||
|
||
|
||
## OpenAI integration | ||
|
||
|
||
### Chat models | ||
|
||
### Embedding models | ||
|
||
|
||
## Azure OpenAI integration | ||
|
||
### Chat models | ||
|
||
### Embedding models |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Organization Dashboard" | ||
permalink: /docs/organization-dashboard/ | ||
excerpt: "The Organization Dashboard page serves as a central hub for managing projects within the organization" | ||
last_modified_at: 2024-02-01T14:06:00+01:00 | ||
redirect_from: | ||
- /theme-setup/ | ||
toc: true | ||
--- | ||
|
||
The Organization Dashboard page serves as a central hub for managing projects within the organization. It provides users with easy access to all pertinent project information and enables quick searching and creation of new projects. | ||
This page can be accessed at `localhost:80` after logging in to the application. | ||
|
||
<img src='../assets/images/Organization_Dashboard.png' /> | ||
|
||
### Interface Elements: | ||
|
||
- **Project List:** | ||
|
||
- Displays a list of all projects belonging to the organization. | ||
- Each project is represented by a container containing basic information such as name, description, tags, etc. | ||
- Clicking on a project opens the Project Dashboard, where users can access detailed information and manage the project. | ||
|
||
- **Search bar:** | ||
|
||
- Allows users to quickly find a specific project by entering search criteria such as name, slug, description, or tags. | ||
- Search is performed live, dynamically filtering the project list as the user types their query. | ||
|
||
- **"New Project" Button:** | ||
- Clicking the button opens the new project wizard, which guides the user through the process of creating a new project. | ||
- The wizard enables users to specify all necessary information about the new project, such as name, description, tags, etc. | ||
|
||
### Notes: | ||
|
||
- The Organization Dashboard page serves as the starting point for users of the application, providing them with quick access to all essential project management functions. |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: "Project Dashboard" | ||
permalink: /docs/project-dashboard/ | ||
excerpt: "The Project Dashboard page provides detailed information about a specific project" | ||
last_modified_at: 2024-02-01T15:36:00+01:00 | ||
redirect_from: | ||
- /theme-setup/ | ||
toc: true | ||
--- | ||
|
||
The Project Dashboard page provides detailed information about a specific project. The main container displays key project details such as name, description, slug, tags, list of AI providers, number of members, number of transactions, URL address utilizing the slug, which is used by `Promptsail` to add transactions. | ||
|
||
### Buttons | ||
|
||
- **Delete:** Displays a popup to delete the project. | ||
- **Update:** Redirects to the project form for editing. | ||
- **Install:** Displays a popup with instructions on how to add transactions for this project. | ||
|
||
### LLM Transactions | ||
|
||
- **Transactions Table:** Displays a table with the last five transactions for this project. | ||
- **"All Project Transactions" Button:** Redirects to a table with all transactions for this project. | ||
|
||
**Notes:** | ||
|
||
- The Project Dashboard page provides users with comprehensive project information and convenient access to project-related actions such as editing, deleting, and managing transactions. | ||
- The Recent Transactions table offers a quick overview of recent project activity, while the "All Project Transactions" button allows users to view all transactions associated with the project. |
Oops, something went wrong.