100x fewer tokens.
Zero retry loops.
One API call.
No credit card. No sales call.
Live in 10 minutes. MCP-compatible.
MCP-compatible — add Shaped to Cursor or Claude in 5 minutes
The problem isn't your LLM. It's what you're feeding it.
What this looks like in practice
from shaped import RankQueryBuilder, TextSearch
results = (
RankQueryBuilder()
.from_entity('item')
.retrieve(TextSearch(
input_text_query='cancel subscription',
mode={
'type': 'vector',
'text_embedding_ref': 'content_embedding'
},
limit=50
))
.score(
value_model='click_through_rate',
input_user_id='user_892'
)
.limit(10)
.build()
) You’re on an Annual Pro plan (3 months in).
Here’s what applies to you specifically:
- Cancellation takes effect at renewal
(9 months away)
- You qualify for a prorated refund: $180
- Based on your usage, consider our pause
feature — keeps your data, stops billing
See docs/billing/annual-plan-cancellation.md import pinecone
import cohere
from openai import OpenAI
# 1. Embed user query
res = client.embeddings.create(
input=query,
model="text-embedding-3-small")
query_vec = res.data[0].embedding
# 2. Vector search (200 noisy results)
idx = pinecone.Index("my-index")
raw_docs = idx.query(
vector=query_vec,
top_k=200,
include_metadata=True)
# 3. Rerank with static model
co = cohere.Client('API_KEY')
reranked = co.rerank(
query=query,
documents=[d.metadata['text']
for d in raw_docs['matches']],
top_n=10)
# 4. Stuff context and hope
context = "\n".join(
[doc.document['text']
for doc in reranked.results])
prompt = f"Context: {'{context}'}\n\nAnswer: {'{query}'" To cancel your subscription, go to
Settings → Billing → Cancel Plan.
Cancellation policies vary by plan
type. Please review our terms of
service for details on refunds...
// Wrong plan type referenced.
// Refund amount not calculated.
// User’s usage history ignored.
// Agent retried 3x. Total: 2,340ms. 10 results · 2,100 tokens · 38ms · Your agent gets exactly what it needs — nothing more.
Works alongside your existing stack. No migration required. Live in 10 minutes.
“Shaped became the obvious choice.”
— Han Yuan, CTO, Outdoorsy
200,000 free queries.
No card. Live in 10 minutes.
Free to start. Scales with usage.
No surprise bills.