Skip to content

Commit 6f02acf

Browse files
docs: update parallel integration (#2250)
1 parent 13acbb8 commit 6f02acf

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

cookbook/integration_parallel.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"<!-- NOTEBOOK_METADATA source: \"⚠️ Jupyter Notebook\" title: \"Monitor Parallel AI Tasks with Langfuse\" sidebarTitle: \"Parallel AI\" logo: \"/images/integrations/parallel_icon.svg\" description: \"Learn how to trace Parallel AI task execution using Langfuse to capture detailed observability data for your AI workflow operations.\" category: \"Integrations\" -->\n",
7+
"<!-- NOTEBOOK_METADATA source: \"⚠️ Jupyter Notebook\" title: \"Monitor Parallel Tasks with Langfuse\" sidebarTitle: \"Parallel\" logo: \"/images/integrations/parallel_icon.svg\" description: \"Learn how to trace Parallel task execution using Langfuse to capture detailed observability data for your AI workflow operations.\" category: \"Integrations\" -->\n",
88
"\n",
9-
"# Parallel AI Integration\n",
9+
"# Parallel Integration\n",
1010
"\n",
11-
"In this guide, we'll show you how to integrate [Langfuse](https://langfuse.com) with [Parallel AI](https://parallel.ai/) to trace your AI task operations. By leveraging Langfuse's tracing capabilities, you can automatically capture details such as inputs, outputs, and execution times of your Parallel AI tasks.\n",
11+
"In this guide, we'll show you how to integrate [Langfuse](https://langfuse.com) with [Parallel](https://parallel.ai/) to trace your AI task operations. By leveraging Langfuse's tracing capabilities, you can automatically capture details such as inputs, outputs, and execution times of your Parallel tasks.\n",
1212
"\n",
13-
"> **What is Parallel AI?** [Parallel AI](https://parallel.ai/) is an API service that enables you to execute AI tasks in parallel, optimizing workflow efficiency. It provides a powerful task API that allows you to run multiple AI operations concurrently, making it ideal for building scalable AI applications.\n",
13+
"> **What is Parallel?** [Parallel](https://parallel.ai/) develops a suite of web search and web agent APIs that connect AI agents, applications, and workflows to the open internet, enabling programmable tasks from simple searches to complex knowledge work.\n",
1414
"\n",
1515
"> **What is Langfuse?** [Langfuse](https://langfuse.com) is an open source LLM engineering platform that helps teams trace API calls, monitor performance, and debug issues in their AI applications.\n",
1616
"\n",
@@ -33,7 +33,7 @@
3333
"cell_type": "markdown",
3434
"metadata": {},
3535
"source": [
36-
"Next, configure your environment with your Parallel AI and Langfuse API keys. You can get these keys by signing up for a free [Langfuse Cloud](https://cloud.langfuse.com/) account or by [self-hosting Langfuse](https://langfuse.com/self-hosting) and from the [Parallel AI dashboard](https://parallel.ai/)."
36+
"Next, configure your environment with your Parallel and Langfuse API keys. You can get these keys by signing up for a free [Langfuse Cloud](https://cloud.langfuse.com/) account or by [self-hosting Langfuse](https://langfuse.com/self-hosting) and from the [Parallel dashboard](https://parallel.ai/)."
3737
]
3838
},
3939
{
@@ -50,7 +50,7 @@
5050
"os.environ[\"LANGFUSE_HOST\"] = \"https://cloud.langfuse.com\" # 🇪🇺 EU region\n",
5151
"# os.environ[\"LANGFUSE_HOST\"] = \"https://us.cloud.langfuse.com\" # 🇺🇸 US region\n",
5252
"\n",
53-
"# Your Parallel AI key\n",
53+
"# Your Parallel key\n",
5454
"os.environ[\"PARALLEL_API_KEY\"] = \"...\"\n",
5555
"\n",
5656
"# Your openai key\n",
@@ -122,7 +122,7 @@
122122
"\n",
123123
"response = client.chat.completions.create(\n",
124124
" model=\"speed\", # Parallel model name\n",
125-
" name=\"Parallel AI Chat\",\n",
125+
" name=\"Parallel Chat\",\n",
126126
" messages=[\n",
127127
" {\"role\": \"user\", \"content\": \"What does Parallel Web Systems do?\"}\n",
128128
" ],\n",
@@ -161,7 +161,7 @@
161161
"source": [
162162
"## Example 3: Parallel Search API and OpenAI\n",
163163
"\n",
164-
"You can also trace more complex workflows that involve summarizing the search results with OpenAI. Here we use the [Langfuse `@observe()` decorator](https://langfuse.com/docs/sdk/python/decorators) to group both the Parallel AI search and the OpenAI generation into one trace. "
164+
"You can also trace more complex workflows that involve summarizing the search results with OpenAI. Here we use the [Langfuse `@observe()` decorator](https://langfuse.com/docs/sdk/python/decorators) to group both the Parallel search and the OpenAI generation into one trace. "
165165
]
166166
},
167167
{
@@ -183,7 +183,7 @@
183183
"\n",
184184
" @observe(as_type=\"retriever\")\n",
185185
" def search_with_parallel(objective, search_queries, num_results: int = 5):\n",
186-
" \"\"\"Search the web using Parallel AI and return results.\"\"\"\n",
186+
" \"\"\"Search the web using Parallel and return results.\"\"\"\n",
187187
" search = parallel_client.beta.search(\n",
188188
" objective=objective,\n",
189189
" search_queries=search_queries,\n",
@@ -231,7 +231,7 @@
231231
"- Input prompts and output results\n",
232232
"- Performance metrics for each task\n",
233233
"\n",
234-
"![Parallel AI Example trace in Langfuse UI](https://langfuse.com/images/cookbook/integration_parallel-ai/parallel-ai-example-trace.png)\n",
234+
"![Parallel Example trace in Langfuse UI](https://langfuse.com/images/cookbook/integration_parallel-ai/parallel-ai-example-trace.png)\n",
235235
"\n",
236236
"[Example trace in Langfuse](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/a664e35ab40a75d04cf6a262d0399f05?timestamp=2025-10-28T15%3A16%3A26.617Z&observation=13fc56583aafeb06)\n",
237237
"\n",

pages/integrations/other/parallel-ai.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
source: ⚠️ Jupyter Notebook
3-
title: Monitor Parallel AI Tasks with Langfuse
4-
sidebarTitle: Parallel AI
3+
title: Monitor Parallel Tasks with Langfuse
4+
sidebarTitle: Parallel
55
logo: /images/integrations/parallel_icon.svg
6-
description: Learn how to trace Parallel AI task execution using Langfuse to capture detailed observability data for your AI workflow operations.
6+
description: Learn how to trace Parallel task execution using Langfuse to capture detailed observability data for your AI workflow operations.
77
category: Integrations
88
---
99

10-
# Parallel AI Integration
10+
# Parallel Integration
1111

12-
In this guide, we'll show you how to integrate [Langfuse](https://langfuse.com) with [Parallel AI](https://parallel.ai/) to trace your AI task operations. By leveraging Langfuse's tracing capabilities, you can automatically capture details such as inputs, outputs, and execution times of your Parallel AI tasks.
12+
In this guide, we'll show you how to integrate [Langfuse](https://langfuse.com) with [Parallel](https://parallel.ai/) to trace your AI task operations. By leveraging Langfuse's tracing capabilities, you can automatically capture details such as inputs, outputs, and execution times of your Parallel tasks.
1313

14-
> **What is Parallel AI?** [Parallel AI](https://parallel.ai/) is an API service that enables you to execute AI tasks in parallel, optimizing workflow efficiency. It provides a powerful task API that allows you to run multiple AI operations concurrently, making it ideal for building scalable AI applications.
14+
> **What is Parallel?** [Parallel](https://parallel.ai/) develops a suite of web search and web agent APIs that connect AI agents, applications, and workflows to the open internet, enabling programmable tasks from simple searches to complex knowledge work.
1515
1616
> **What is Langfuse?** [Langfuse](https://langfuse.com) is an open source LLM engineering platform that helps teams trace API calls, monitor performance, and debug issues in their AI applications.
1717
@@ -25,7 +25,7 @@ First, install the necessary Python packages:
2525
%pip install langfuse parallel-web openai
2626
```
2727

28-
Next, configure your environment with your Parallel AI and Langfuse API keys. You can get these keys by signing up for a free [Langfuse Cloud](https://cloud.langfuse.com/) account or by [self-hosting Langfuse](https://langfuse.com/self-hosting) and from the [Parallel AI dashboard](https://parallel.ai/).
28+
Next, configure your environment with your Parallel and Langfuse API keys. You can get these keys by signing up for a free [Langfuse Cloud](https://cloud.langfuse.com/) account or by [self-hosting Langfuse](https://langfuse.com/self-hosting) and from the [Parallel dashboard](https://parallel.ai/).
2929

3030

3131
```python
@@ -37,7 +37,7 @@ os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..."
3737
os.environ["LANGFUSE_HOST"] = "https://cloud.langfuse.com" # 🇪🇺 EU region
3838
# os.environ["LANGFUSE_HOST"] = "https://us.cloud.langfuse.com" # 🇺🇸 US region
3939

40-
# Your Parallel AI key
40+
# Your Parallel key
4141
os.environ["PARALLEL_API_KEY"] = "..."
4242

4343
# Your openai key
@@ -91,7 +91,7 @@ client = OpenAI(
9191

9292
response = client.chat.completions.create(
9393
model="speed", # Parallel model name
94-
name="Parallel AI Chat",
94+
name="Parallel Chat",
9595
messages=[
9696
{"role": "user", "content": "What does Parallel Web Systems do?"}
9797
],
@@ -126,7 +126,7 @@ print(response.choices[0].message.content)
126126

127127
## Example 3: Parallel Search API and OpenAI
128128

129-
You can also trace more complex workflows that involve summarizing the search results with OpenAI. Here we use the [Langfuse `@observe()` decorator](https://langfuse.com/docs/sdk/python/decorators) to group both the Parallel AI search and the OpenAI generation into one trace.
129+
You can also trace more complex workflows that involve summarizing the search results with OpenAI. Here we use the [Langfuse `@observe()` decorator](https://langfuse.com/docs/sdk/python/decorators) to group both the Parallel search and the OpenAI generation into one trace.
130130

131131

132132
```python
@@ -143,7 +143,7 @@ def search_and_summarize(objective, search_queries):
143143

144144
@observe(as_type="retriever")
145145
def search_with_parallel(objective, search_queries, num_results: int = 5):
146-
"""Search the web using Parallel AI and return results."""
146+
"""Search the web using Parallel and return results."""
147147
search = parallel_client.beta.search(
148148
objective=objective,
149149
search_queries=search_queries,
@@ -187,7 +187,7 @@ After executing the traced functions, log in to your [Langfuse Dashboard](https:
187187
- Input prompts and output results
188188
- Performance metrics for each task
189189

190-
![Parallel AI Example trace in Langfuse UI](https://langfuse.com/images/cookbook/integration_parallel-ai/parallel-ai-example-trace.png)
190+
![Parallel Example trace in Langfuse UI](https://langfuse.com/images/cookbook/integration_parallel-ai/parallel-ai-example-trace.png)
191191

192192
[Example trace in Langfuse](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/a664e35ab40a75d04cf6a262d0399f05?timestamp=2025-10-28T15%3A16%3A26.617Z&observation=13fc56583aafeb06)
193193
</Steps>

0 commit comments

Comments
 (0)