diff --git a/client-libs/python/README.md b/client-libs/python/README.md
index 85e87f3..2d40d85 100644
--- a/client-libs/python/README.md
+++ b/client-libs/python/README.md
@@ -3,6 +3,7 @@
This client allows you automatically report your OpenAI calls to [OpenPipe](https://openpipe.ai/). OpenPipe
## Installation
+
`pip install openpipe`
## Usage
@@ -15,7 +16,7 @@ This client allows you automatically report your OpenAI calls to [OpenPipe](http
from openpipe import openai, configure_openpipe
import os
-# Set the OpenPipe API key you got in step (3) above.
+# Set the OpenPipe API key you got in step (2) above.
# If you have the `OPENPIPE_API_KEY` environment variable set we'll read from it by default.
configure_openpipe(api_key=os.getenv("OPENPIPE_API_KEY"))
@@ -37,4 +38,4 @@ completion = openai.ChatCompletion.create(
messages=[{"role": "system", "content": "count to 10"}],
openpipe={"tags": {"prompt_id": "counting"}},
)
-```
\ No newline at end of file
+```
diff --git a/docs/faq/how-reporting-works.mdx b/docs/faq/how-reporting-works.mdx
new file mode 100644
index 0000000..ae5feb7
--- /dev/null
+++ b/docs/faq/how-reporting-works.mdx
@@ -0,0 +1,23 @@
+---
+title: "How reporting works"
+description: "Our SDK wraps calls and forwards requests"
+---
+
+### Does reporting calls add latency to streamed requests?
+
+Streamed requests won't have any added latency. The SDK forwards each streamed token as it's received from the server while
+simultaneously collecting it in the response it will report to your OpenPipe instance once the entire response has been received.
+
+#### Your OpenAI key never leaves your machine.
+
+Calls to OpenAI are carried out by our SDK **on your machine**, meaning that your API key is secure, and you'll
+continue getting uninterrupted inference even if your OpenPipe instance goes down.
+
+##
+
+### Want to dig deeper? Take a peek in our open-source code.
+
+We benefit from a growing community of developers and customers who are
+dedicated to improving the OpenPipe experience. Our [open source repo](https://github.com/openpipe/openpipe)
+is an opportunity for developers to confirm the quality of our offering
+and to make improvements when they can.
diff --git a/docs/favicon.webp b/docs/favicon.webp
new file mode 100644
index 0000000..5946aa5
Binary files /dev/null and b/docs/favicon.webp differ
diff --git a/docs/features/experiments.mdx b/docs/features/experiments.mdx
new file mode 100644
index 0000000..3f45b51
--- /dev/null
+++ b/docs/features/experiments.mdx
@@ -0,0 +1,8 @@
+---
+title: "Experiments"
+description: "
+Template multiple scenarios into combinations of prompts and models to compare their output. Use flexible regex and GPT-4 evaluations to assess completion quality.
+Quickly iterate and spot model shortcomings before deployment."
+---
+
+
diff --git a/docs/features/exporting-data.mdx b/docs/features/exporting-data.mdx
new file mode 100644
index 0000000..8125d84
--- /dev/null
+++ b/docs/features/exporting-data.mdx
@@ -0,0 +1,8 @@
+---
+title: "Export Data - Beta"
+sidebarTitle: "Export Data"
+description: "
+Export your past requests as a JSONL file in an Alpaca or OpenAI fine-tuning format or in their raw form."
+---
+
+
diff --git a/docs/features/fine-tuning.mdx b/docs/features/fine-tuning.mdx
new file mode 100644
index 0000000..14807d3
--- /dev/null
+++ b/docs/features/fine-tuning.mdx
@@ -0,0 +1,8 @@
+---
+title: "Fine Tuning - Beta"
+sidebarTitle: "Fine Tuning"
+description: "
+Fine tune your data on specific logs. Filter by prompt id and exclude requests with an undesirable output."
+---
+
+
diff --git a/docs/features/log-filters.mdx b/docs/features/log-filters.mdx
new file mode 100644
index 0000000..db960f7
--- /dev/null
+++ b/docs/features/log-filters.mdx
@@ -0,0 +1,7 @@
+---
+title: "Log Filters"
+description: "
+Search and filter your past LLM requests to inspect your responses and build a training dataset."
+---
+
+
diff --git a/docs/getting-started/openpipe-sdk.mdx b/docs/getting-started/openpipe-sdk.mdx
new file mode 100644
index 0000000..75045bb
--- /dev/null
+++ b/docs/getting-started/openpipe-sdk.mdx
@@ -0,0 +1,114 @@
+---
+title: "Installing the SDK"
+---
+
+Use the OpenPipe SDK as a drop-in replacement for the generic OpenAI package. We currently support logging OpenAI calls and support for more LLM providers will be added soon.
+
+
+
+
+Find the SDK at https://pypi.org/project/openpipe/
+
+## Simple Integration
+
+Add `OPENPIPE_API_KEY` to your environment variables.
+
+```bash
+export OPENPIPE_API_KEY=opk-
+# Or you can set it in your code, as shown in the example below
+```
+
+Replace this line
+
+```python
+from openai import openai
+```
+
+with this one
+
+```python
+from openpipe import openai
+```
+
+## Adding Searchable Tags
+
+OpenPipe has a concept of "tagging." This is very useful for grouping a certain set of completions together.
+When you're using a dataset for fine-tuning, you can select all the prompts that match a certain set of tags. Here's how you can use the tagging feature:
+
+```python
+from openpipe import openai, configure_openpipe
+import os
+
+# If you have the `OPENPIPE_API_KEY` environment variable set
+# we'll read from it by default.
+configure_openpipe(api_key=os.getenv("OPENPIPE_API_KEY"))
+
+# Configure OpenAI the same way you would normally
+openai.api_key = os.getenv("OPENAI_API_KEY")
+
+completion = openai.ChatCompletion.create(
+ model="gpt-3.5-turbo",
+ messages=[{"role": "system", "content": "count to 10"}],
+ openpipe={"tags": {"prompt_id": "counting", "any_key": "any_value"}},
+)
+
+```
+
+
+
+
+Find the SDK at https://www.npmjs.com/package/openpipe
+
+## Simple Integration
+
+Add `OPENPIPE_API_KEY` to your environment variables.
+
+```bash
+export OPENPIPE_API_KEY=opk-
+# Or you can set it in your code, as shown in the example below
+```
+
+Replace this line
+
+```typescript
+import OpenAI from "openai";
+```
+
+with this one
+
+```typescript
+import OpenAI from "openpipe/openai";
+```
+
+## Adding Searchable Tags
+
+OpenPipe has a concept of "tagging." This is very useful for grouping a certain set of completions together.
+When you're using a dataset for fine-tuning, you can select all the prompts that match a certain set of tags. Here's how you can use the tagging feature:
+
+```typescript
+// Fully compatible with original OpenAI initialization
+const openai = new OpenAI({
+ apiKey: "my api key", // defaults to process.env["OPENAI_API_KEY"]
+ // openpipe key is optional
+ openpipe: {
+ apiKey: "my api key", // defaults to process.env["OPENPIPE_API_KEY"]
+ baseUrl: "my url", // defaults to process.env["OPENPIPE_BASE_URL"] or https://app.openpipe.ai/api/v1 if not set
+ },
+});
+
+const completion = await openai.chat.completions.create({
+ messages: [{ role: "user", content: "Count to 10" }],
+ model: "gpt-3.5-turbo",
+ // optional
+ openpipe: {
+ // Add custom searchable tags
+ tags: {
+ prompt_id: "counting",
+ any_key: "any_value",
+ },
+ },
+});
+```
+
+
+
diff --git a/docs/getting-started/quick-start.mdx b/docs/getting-started/quick-start.mdx
new file mode 100644
index 0000000..fe728df
--- /dev/null
+++ b/docs/getting-started/quick-start.mdx
@@ -0,0 +1,35 @@
+---
+title: "Quick Start"
+description: "Get started with OpenPipe in a few quick steps."
+---
+
+## Step 1: Create your OpenPipe Account
+
+If you don't already have one, create an account with OpenPipe at https://app.openpipe.ai/. You can sign up with GitHub, so you don't need to remember an extra password.
+
+## Step 2: Find your Project API key
+
+In order to capture your calls and fine-tune a model on them, we need an API key to authenticate you and determine which project to store your logs under.
+
+
+ When you created your account, a project was automatically configured for you as well. Find its
+ API key at https://app.openpipe.ai/project/settings.
+
+
+## Step 3: Integrate the OpenPipe SDK
+
+You're done with the hard part! Learn how to integrate the OpenPipe SDK on the next page.
+
+
+
+ OpenPipe
+
+
+ }
+ iconType="duotone"
+ href="/getting-started/openpipe-sdk"
+ >
+
diff --git a/docs/images/features/experiments.png b/docs/images/features/experiments.png
new file mode 100644
index 0000000..0757fdd
Binary files /dev/null and b/docs/images/features/experiments.png differ
diff --git a/docs/images/features/exporting-data.png b/docs/images/features/exporting-data.png
new file mode 100644
index 0000000..eb71271
Binary files /dev/null and b/docs/images/features/exporting-data.png differ
diff --git a/docs/images/features/fine-tuning.png b/docs/images/features/fine-tuning.png
new file mode 100644
index 0000000..b9e23f1
Binary files /dev/null and b/docs/images/features/fine-tuning.png differ
diff --git a/docs/images/features/log-filters.png b/docs/images/features/log-filters.png
new file mode 100644
index 0000000..e5437ea
Binary files /dev/null and b/docs/images/features/log-filters.png differ
diff --git a/docs/images/intro/request-logs.png b/docs/images/intro/request-logs.png
new file mode 100644
index 0000000..a41817c
Binary files /dev/null and b/docs/images/intro/request-logs.png differ
diff --git a/docs/introduction.mdx b/docs/introduction.mdx
new file mode 100644
index 0000000..4b9c485
--- /dev/null
+++ b/docs/introduction.mdx
@@ -0,0 +1,18 @@
+---
+title: "OpenPipe Documentation"
+sidebarTitle: "Introduction"
+description: "
+Product-focused teams use OpenPipe's seamless fine-tuning and monitoring services to decrease the cost and latency of their LLM operations.
+You can use OpenPipe to collect and analyze LLM logs, create fine-tuned models, and compare output from multiple models given the same input."
+---
+
+
+
+
+
+ Quickly integrate the OpenPipe SDK into your application and start collecting data.
+
+
+ View the platform features OpenPipe provides and learn how to use them.
+
+
diff --git a/docs/logo/dark.svg b/docs/logo/dark.svg
new file mode 100644
index 0000000..d6d6579
--- /dev/null
+++ b/docs/logo/dark.svg
@@ -0,0 +1,25 @@
+
diff --git a/docs/logo/light.svg b/docs/logo/light.svg
new file mode 100644
index 0000000..a3321a6
--- /dev/null
+++ b/docs/logo/light.svg
@@ -0,0 +1,25 @@
+
diff --git a/docs/mint.json b/docs/mint.json
new file mode 100644
index 0000000..33e3811
--- /dev/null
+++ b/docs/mint.json
@@ -0,0 +1,65 @@
+{
+ "name": "OpenPipe",
+ "logo": {
+ "light": "/logo/light.svg",
+ "dark": "/logo/dark.svg"
+ },
+ "favicon": "/favicon.webp",
+ "colors": {
+ "primary": "#FF5733",
+ "light": "#FF5733",
+ "dark": "#FF5733"
+ },
+ "modeToggle": {
+ "default": "light"
+ },
+ "topbarCtaButton": {
+ "name": "Sign In",
+ "url": "https://app.openpipe.ai"
+ },
+ "anchors": [
+ {
+ "name": "GitHub",
+ "icon": "github",
+ "url": "https://github.com/openpipe/openpipe"
+ }
+ ],
+ "feedback": {
+ "suggestEdit": true,
+ "raiseIssue": true
+ },
+ "navigation": [
+ {
+ "group": "Welcome",
+ "pages": ["introduction", "overview"]
+ },
+ {
+ "group": "Getting Started",
+ "pages": ["getting-started/quick-start", "getting-started/openpipe-sdk"]
+ },
+ {
+ "group": "Features",
+ "pages": [
+ "features/log-filters",
+ "features/exporting-data",
+ "features/fine-tuning",
+ "features/experiments"
+ ]
+ },
+ {
+ "group": "FAQ",
+ "pages": ["faq/how-reporting-works"]
+ }
+ ],
+ "topbarLinks": [
+ {
+ "name": "Github",
+ "url": "https://github.com/OpenPipe/OpenPipe"
+ }
+ ],
+ "footerSocials": {
+ "twitter": "https://twitter.com/OpenPipeAI",
+ "linkedin": "https://www.linkedin.com/company/openpipe/about/",
+ "github": "https://github.com/OpenPipe/OpenPipe"
+ }
+}
diff --git a/docs/overview.mdx b/docs/overview.mdx
new file mode 100644
index 0000000..35c793d
--- /dev/null
+++ b/docs/overview.mdx
@@ -0,0 +1,32 @@
+---
+title: "Overview"
+description: "OpenPipe is a streamlined platform designed to help product-focused teams train specialized LLM models as replacements for slow and expensive prompts."
+---
+
+## Who We Are
+
+We're a team of full-stack engineers and machine learning researchers working to streamline the process of integrating fine-tuned models into any application. Our goal is to make the fine-tuning process accessible to everyone.
+
+## What We Offer
+
+Here are a few of the features we provide:
+
+- **Data Capture**: OpenPipe automatically captures every request and response sent through our drop-in replacement sdk and stores it for your future use.
+
+- **Monitoring**: OpenPipe provides intuitive tools to view the frequency and cost of your LLM requests, and provides a special tool for viewing requests with error status codes.
+
+- **Searchable Logs**: We enable you to search your past requests, and provide a simple protocol for tagging them by prompt id for easy filtering.
+
+- **Fine-Tuning**: With all your LLM requests and responses in one place, it's easy to select the data you want to fine-tune on and kick off a job.
+
+- **Model Hosting**: After we've trained your model, OpenPipe will automatically begin hosting it. Accessing your model will require an API key from your project.
+
+- **Unified SDK**: Switching requests from your previous LLM provider to your new model is as simple as changing the model name. All our models implement the OpenAI inference format, so you won't have to change how you parse its response.
+
+- **Data Export**: OpenPipe allows you to download your request logs or the fine-tuned models you've trained at any time for easy self-hosting.
+
+- **Experimentation**: The fine-tunes you've created on OpenPipe are immediately available for you to run inference on in our experimentation playground.
+
+Join us in our mission to make the benefits of hyper-efficient models accessible to everyone. Read through our documentation, and don't hesitate to throw a question our way.
+
+Welcome to the OpenPipe community!