Your agent is only as good as the context it retrieves.

Shaped is a retrieval API that gives your agent the right 10 results instead of 200 noisy ones. Less hallucination, lower cost, better answers.

Works with and any MCP-compatible agent.

Afterhour
Breakr
Checkmate
DEV
Hang
Kogan
Outdoorsy
Playbook

What Shaped looks like in production.

Your agent asks Shaped for context. Here's what comes back.

WITH SHAPED
"How do I configure SSO for enterprise accounts?"
ShapedQL
SELECT content, title
FROM
  text_search('SSO enterprise configuration', mode=vector),
  text_search('SSO enterprise', mode=lexical),
  similarity(user_id=$user_id)
WHERE doc_type = 'guide'
ORDER BY relevance(user, item)
LIMIT 10
1.docs/enterprise/sso-setup.md0.97
2.docs/enterprise/saml-configuration.md0.94
3.docs/auth/identity-providers.md0.91
4.docs/admin/org-settings.md0.87
5.changelog/v2.4-sso-updates.md0.83
WHAT THE AGENT RETURNS:
Based on the SSO setup guide and SAML config docs:

1. Navigate to Admin → Org Settings → Authentication
2. Select your identity provider (Okta, Azure AD, Google)
3. Upload your SAML metadata XML

See docs/enterprise/sso-setup.md for full walkthrough.
WITHOUT SHAPED
"How do I configure SSO for enterprise accounts?"
Python
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 docs)
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 massive context and hope
context = "\n".join(
    [doc.document['text'] for doc in reranked.results])
prompt = f"Context: {context}\n\nAnswer: {query}"
50,000 TOKENS OF CONTEXT
90% irrelevant. $0.50/query. Static forever.
WHAT THE LLM RETURNS:
SSO (Single Sign-On) allows users to authenticate using a single set of credentials. Enterprise accounts can configure SSO through the admin panel...

// Generic overview with no specific steps

10 results · 2,100 tokens · 38ms · Your agent gets exactly what it needs — nothing more.

This is how most agents retrieve context today.

Query
Embed
Vector DB
Reranker
Stuff into prompt
LLM
200 results by cosine similarity
Static model doesn't learn
50,000 tokens $0.50/query · 90% noise

Too much irrelevant context

200 results. 190 are noise. Your agent re-retrieves, burning tokens and time.

No personalization

Senior engineers and new hires get the same 200 chunks.

Never improves

Day 100 is no smarter than day 1.

This is how agents retrieve context with Shaped.

Query + User
Shaped
10 ranked results
LLM

Ranked, minimal context

Shaped returns only relevant results. 100% of the context matters.

No retry loops

Shaped gets it right the first time. Your agent doesn't re-retrieve.

Learns from every interaction

User rephrases or thumbs-down? Day 100 is dramatically better than day 1.

0x fewer tokens 0ms latency No retry loops Learns from feedback

One API. Not five services.

Vector DB (e.g. Pinecone)
Search engine (e.g. Elasticsearch)
Reranker (e.g. Cohere)
Feature store (e.g. Redis)
Glue code (~2,000 LOC)
5 services5 bills5 points of failure
Shaped 1 API · ~40 LOC
1 service1 bill1 endpoint
Capability DIY Retrieval Stack Shaped
Retrieval Single embedding space Multi-retriever (vector + lexical + behavioral)
Ranking Static reranker model ML models that learn from outcomes
Personalization None User-aware ranking via user_id
Context size 50K+ tokens (top-k dump) 2,500 tokens (ranked LIMIT 10)
Infrastructure Vector DB + Search engine + Reranker + Feature store + glue 1 API call
Improves over time No - static from day 1 Yes - retrains on agent feedback
Query language Multiple SDKs + custom code ShapedQL (SQL-like, declarative)

No rip and replace required.

Run side by side

Keep your existing stack running.
Zero risk.

Compare results

A/B test on real queries. Measure
everything head to head.

Migrate when ready

Swap one API call. Roll
back anytime.

Outdoorsy
"After assessing the landscape Shaped became the obvious choice"
Han Yuan CTO @ Outdoorsy

When agents get the right context, business metrics soar.

Deploy before lunch. Improve forever.

9 AM

Connect your data

Connect a data source in the Shaped console. Postgres, S3, BigQuery, or any of 20+ connectors.

10 AM

Write your first query

Configure an engine. Write a ShapedQL query. Test it in the playground.

Lunch

Deploy to production

Your agent connects via MCP or API. <50ms. Retrains on outcomes automatically.

Better results. Fewer tokens. Zero hallucinations.

Deploy in a morning. Run alongside your existing stack. See the difference immediately.

$100 free credits. No credit card required. Sign up, connect a data source, and query in under 10 minutes.

See pricing →