-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial scope of lessons - placeholders added
- Loading branch information
Showing
35 changed files
with
235 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# For GitHub Marketplace Deployments | ||
# ----------------------------------------- | ||
# These are standardized names (Sep 16, 2024) | ||
# from https://github.com/marketplace/models | ||
# ----------------------------------------- | ||
GITHUB_TOKEN= | ||
GITHUB_MODEL_DEPLOYMENT= | ||
SERVERLESS_KEY=${GITHUB_TOKEN} | ||
|
||
# For Azure OpenAI Deployments | ||
AZURE_OPENAI_ENDPOINT= | ||
AZURE_OPENAI_KEY= | ||
AZURE_OPENAI_DEPLOYMENT= | ||
|
||
# For OpenAI Deployments | ||
OPENAI_ENDPOINT= | ||
OPENAI_KEY= | ||
OPENAI_DEPLOYMENT= | ||
OPENAI_ORGANIZATION= | ||
OPENAI_PROJECT= | ||
|
||
# For Azure Serverless Deployments | ||
AZURE_SERVERLESS_ENDPOINT= | ||
AZURE_SERVERLESS_KEY= | ||
AZURE_SERVERLESS_DEPLOYMENT= | ||
|
||
# API VERSION | ||
API_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.env |
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 +1,21 @@ | ||
# 1. Motivation | ||
# 1. Introduction | ||
|
||
Building production-ready generative AI applications involves 3 stages: | ||
|
||
- **Ideation** - rapid prototyping, testing apps with simple test prompts. | ||
- **Augmentation** - evaluation, testing quality & safety with larger datasets. | ||
- **Operationalization** - deploying apps and monitoring them for insights. | ||
|
||
The challenge is in providing developers with a developer experience and tooling support to streamline these stages - without requiring a massive learning curve in new semantics, model-specific APIs or plaform-specific SDKs. | ||
|
||
What if we could make the **prompt** the central unit of development - and build tooling to build agency and observability around it? That's the vision behind Prompty. Watch this Microsoft Build 2024 session for a deeper dive into end-to-end AI development using Prompty and AI Studio. | ||
|
||
|
||
|
||
Using Prompty you can: | ||
|
||
- **Design Prompts** - Create & refine prompt templates in an IDE | ||
- **Explore Models** - Configure model parameters, diverse deployments | ||
- **Execute Prompts** - Use built-in tools and custom runtimes to test prompts | ||
- **Observe Traces** - Use built-in features to track and debug execution | ||
- **Compose Apps** - Chain and compose Prompty assets for complex flows |
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 +1 @@ | ||
# | ||
# Create Prompty |
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 +1 @@ | ||
# | ||
# Configure 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 |
---|---|---|
@@ -1 +1 @@ | ||
# | ||
# Create Sample |
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 @@ | ||
# Run Prompty |
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 +1 @@ | ||
# | ||
# System Context |
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 +1 @@ | ||
# | ||
# Prompt Instructions |
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 +1 @@ | ||
# | ||
# Model Parameters |
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 @@ | ||
# Add Data |
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 +1 @@ | ||
# | ||
# Open AI |
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 +1 @@ | ||
# | ||
# Azure Open AI |
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 +1 @@ | ||
# | ||
# Azure Serverless |
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 @@ | ||
# GitHub Marketplace |
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 +1 @@ | ||
# | ||
# Prompty Tracing |
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 +1 @@ | ||
# | ||
# Trace Decorators |
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 +1 @@ | ||
# | ||
# Trace Runs |
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 @@ | ||
# Open Telemetry |
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 +1 @@ | ||
# | ||
# Hardcoded Input |
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 +1 @@ | ||
# | ||
# Sample File |
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 +1 @@ | ||
# | ||
# Commandline Input |
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 @@ | ||
# Function Call |
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 +1 @@ | ||
# | ||
# Prompty + Data Binding |
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 +1 @@ | ||
# | ||
# Prompty + RAG Pattern |
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 +1 @@ | ||
# | ||
# Prompty + Evaluation |
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 @@ | ||
# Prompty + Multi-Agent |
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 +1 @@ | ||
# | ||
# AI-Assisted Evaluation |
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 +1 @@ | ||
# | ||
# Evaluation Metrics |
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 +1 @@ | ||
# | ||
# Evaluation Test Data |
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 @@ | ||
# Evaluation Workflow |
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,40 @@ | ||
--- | ||
name: ExamplePrompt | ||
description: A prompt that uses context to ground an incoming question | ||
authors: | ||
- Seth Juarez | ||
model: | ||
api: chat | ||
configuration: | ||
type: azure_openai | ||
azure_endpoint: ${env:AZURE_OPENAI_ENDPOINT} | ||
azure_deployment: <your-deployment> | ||
api_version: 2024-07-01-preview | ||
parameters: | ||
max_tokens: 3000 | ||
sample: | ||
firstName: Seth | ||
context: > | ||
The Alpine Explorer Tent boasts a detachable divider for privacy, | ||
numerous mesh windows and adjustable vents for ventilation, and | ||
a waterproof design. It even has a built-in gear loft for storing | ||
your outdoor essentials. In short, it's a blend of privacy, comfort, | ||
and convenience, making it your second home in the heart of nature! | ||
question: What can you tell me about your tents? | ||
--- | ||
|
||
system: | ||
You are an AI assistant who helps people find information. As the assistant, | ||
you answer questions briefly, succinctly, and in a personable manner using | ||
markdown and even add some personal flair with appropriate emojis. | ||
|
||
# Customer | ||
You are helping {{firstName}} to find answers to their questions. | ||
Use their name to address them in your responses. | ||
|
||
# Context | ||
Use the following context to provide a more personalized response to {{firstName}}: | ||
{{context}} | ||
|
||
user: | ||
{{question}} |
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,40 @@ | ||
--- | ||
name: Azure Serverless Prompty | ||
description: Basic chat prompt using n | ||
authors: | ||
- Nitya Narasimhan | ||
model: | ||
api: chat | ||
configuration: | ||
type: azure_serverless | ||
azure_endpoint: ${env:AZURE_SERVERLESS_ENDPOINT} | ||
azure_deployment: ${env:AZURE_SERVERLESS_DEPLOYMENT:gpt-4} | ||
api_version: ${env:API_VERSION} | ||
parameters: | ||
max_tokens: 3000 | ||
sample: | ||
firstName: Seth | ||
context: > | ||
The Alpine Explorer Tent boasts a detachable divider for privacy, | ||
numerous mesh windows and adjustable vents for ventilation, and | ||
a waterproof design. It even has a built-in gear loft for storing | ||
your outdoor essentials. In short, it's a blend of privacy, comfort, | ||
and convenience, making it your second home in the heart of nature! | ||
question: What can you tell me about your tents? | ||
--- | ||
|
||
system: | ||
You are an AI assistant who helps people find information. As the assistant, | ||
you answer questions briefly, succinctly, and in a personable manner using | ||
markdown and even add some personal flair with appropriate emojis. | ||
|
||
# Customer | ||
You are helping {{firstName}} to find answers to their questions. | ||
Use their name to address them in your responses. | ||
|
||
# Context | ||
Use the following context to provide a more personalized response to {{firstName}}: | ||
{{context}} | ||
|
||
user: | ||
{{question}} |
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,40 @@ | ||
--- | ||
name: ExamplePrompt | ||
description: A prompt that uses context to ground an incoming question | ||
authors: | ||
- Seth Juarez | ||
model: | ||
api: chat | ||
configuration: | ||
type: serverless | ||
endpoint: https://models.inference.ai.azure.com | ||
model: Mistral-small | ||
key: ${env:SERVERLESS_KEY:KEY} | ||
parameters: | ||
max_tokens: 3000 | ||
sample: | ||
firstName: Nitya | ||
context: > | ||
The Alpine Explorer Tent boasts a detachable divider for privacy, | ||
numerous mesh windows and adjustable vents for ventilation, and | ||
a waterproof design. It even has a built-in gear loft for storing | ||
your outdoor essentials. In short, it's a blend of privacy, comfort, | ||
and convenience, making it your second home in the heart of nature! | ||
question: What can you tell me about tents? | ||
--- | ||
|
||
system: | ||
You are an AI assistant who helps people find information. As the assistant, | ||
you answer questions briefly, succinctly, and in a personable manner using | ||
markdown and even add some personal flair with appropriate emojis. | ||
|
||
# Customer | ||
You are helping {{firstName}} to find answers to their questions. | ||
Use their name to address them in your responses. | ||
|
||
# Context | ||
Use the following context to provide a more personalized response to {{firstName}}: | ||
{{context}} | ||
|
||
user: | ||
{{question}} |