Add Parallel Search + Cartesia Line integration#1
Open
georgeatparallel wants to merge 15 commits into
Open
Conversation
georgeatparallel
marked this pull request as ready for review
June 30, 2026 23:25
georgeatparallel
force-pushed
the
george/parallel-cartesia-line
branch
from
June 30, 2026 23:28
a767409 to
2d0248d
Compare
georgeatparallel
marked this pull request as draft
June 30, 2026 23:28
georgeatparallel
marked this pull request as ready for review
June 30, 2026 23:32
vshulman
reviewed
Jun 30, 2026
| | Parameter | Type | Default | Description | | ||
| | --- | --- | --- | --- | | ||
| | `PARALLEL_MAX_RESULTS` | `int` | `3` | Maximum number of search results returned to the LLM. | | ||
| | `PARALLEL_MAX_CHARS_TOTAL` | `int` | `1800` | Character budget for search excerpts across all results. | |
Owner
Author
There was a problem hiding this comment.
seems decent - maybe not enough results? I was thinking speed first. wdyt? 5? 8?
sergei1152
reviewed
Jun 30, 2026
| return [] | ||
|
|
||
| body = { | ||
| "objective": ( |
There was a problem hiding this comment.
might be a redudant objective, you can just user search queries
There was a problem hiding this comment.
not sure if you want to somehow customize for voice agents in particular
Owner
Author
There was a problem hiding this comment.
agreed. for this search_queries=[query] is enough and keeps the SDK call easier to copy. I removed the custom objective and left voice response behavior to the agent prompt.
georgeatparallel
force-pushed
the
george/parallel-cartesia-line
branch
from
June 30, 2026 23:56
2d0248d to
fee76dd
Compare
georgeatparallel
marked this pull request as draft
June 30, 2026 23:57
georgeatparallel
marked this pull request as ready for review
July 1, 2026 00:02
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a fork-only review PR before opening anything upstream.
It adds a Cartesia community integration page for Parallel Search + Cartesia Line. The example builds a Line agent with a
web_searchloopback tool and calls Parallel Search withmode="turbo"through the Parallel Python SDK.Latest updates
I tightened the guide to match Cartesia's community-integration style: the quick start is step-by-step, the voice agent avoids reading citations or URLs aloud, and the example stays focused on the smallest runnable Line agent.
I also sharpened the example around the intended product message: Turbo Search inside a live voice turn. The guide calls out
mode="turbo"as Parallel's lowest-latency Search mode, uses a neutral time-sensitive weather prompt, and now defaults to 3 results x 240 excerpt chars = 720 total chars withLINE_MAX_TOKENS=180so the docs match the lower-latency demo path.After testing the real Cartesia voice path, I added current-date prompt guidance and then moved that prompt into a per-agent
system_prompt()helper so new calls get a fresh date. The agent includes date/year context for relative-time searches and tells the model to say when results are stale or conflicting instead of guessing.Checked
cartesia-line+parallel-webMAX_RESULTS=3,MAX_EXCERPT_CHARS=240,MAX_CHARS_TOTAL=720, andLINE_MAX_TOKENS=180LlmAgentfrom the extracted code and confirmed the Cerebras config path keepsreasoning_effort="low"mode="turbo"and the documented defaults; it returned 3 results and formatted a voice payload successfullyGET /statusplus Cartesia-shapedPOST /chatsgit diff --checkNote
This PR targets my fork only. It is not opened against
cartesia-ai/community-integrations.