Pieces/AI

Compact, self-contained widgets that behave like assets. Drop them into any block, card, or page to add a small touch of polish without rewriting the surrounding UI.

support-reply.prompt
You are a helpful assistant. The user asked: {{question}}. Answer in {{tone}} tone.

Prompt Template

ai25

Monospace prompt card with inline handlebars-style variables highlighted in violet against plain body text.

embedding.vec1,536 dims
[0]cosine similarity ready[15]

Embedding Preview

ai26

Vector embedding visualizer with a zero baseline, positive values drawn upward in the tone color and negatives drawn downward in muted.

Implementing rate limits with Redis
0.92

Use INCR with an EXPIRE TTL to build a fixed-window limiter that resets every minute.

docs/guides/rate-limits.md

KB Search Result

ai27

Knowledge base hit card with a document title, snippet, source path, and an emerald similarity score badge.

whiteboard.jpg1920×1080
Analyzing
diagramtextarrows

Vision Input

ai28

Attached image card with a tone-tinted thumbnail tile, a scanning line overlay, filename, dimensions, and detected-object chips.

Epoch7/10
loss0.0421
step 1,280/2,00064%

Training Progress

ai29

Training run card with current epoch, step counter, loss value, and a violet progress bar reflecting completion.

Harassmenthigh

Response blocked for containing targeted insults.

Safety Filter

ai30

Moderation card with a rose shield icon, category label, severity pill, and the reason the output was blocked.

support_tickets48,200 rows · 120 MB
train 80%val 10%test 10%

Dataset Card

ai31

Dataset summary with row count, total size, and a stacked train/val/test split bar. Tone controls the dataset icon tile and train segment.

llama-3-8b+support_tickets
running

Fine-tune Run

ai32

Fine-tuning job row with base model + dataset, a status indicator, and a tone-colored progress bar that flips emerald on success.

Guardrailsactive
PII redactionToxicityPrompt injection

Guardrail Badge

ai33

Safety guardrail card with an emerald shield, active status pill, and a row of enabled policy tags.

Input
1,240$0.0031
Output
528$0.0053
Total
1,768 tok$0.0084

Cost Estimate

ai34

Token and cost breakdown table with input/output rows and a totaled bottom line. Tone highlights the final amount.

claude-sonnet

Explain rate limiting strategies with simple examples.

Playground Prompt

ai35

Playground card with the selected model, a prompt draft box, and a tone-colored Run button to kick off the request.

Research Copilot4 tools

Searches papers and drafts literature reviews on request.

Assistant Card

ai36

Catalog card for a configured assistant with a tone-filled bot tile, name, short description, and the tool count.

docs
top_k = 5
lang:ensection:guides

Vector Search Filter

ai37

Vector query bar with namespace name, top_k value, and removable key:value filter chips for metadata.

Query
Retrieve
Rerank
Answer

RAG Pipeline

ai38

Horizontal pipeline diagram with tone-tinted stage nodes connected by arrows, showing the path from query to answer.

Anthropicclaude-sonnet-4

Provider Chip

ai39

Pill showing the LLM provider with a branded initial avatar, the provider name, and the exact model identifier.

NovaSenior engineer
ConciseCode-firstTerminal-friendly

Persona Card

ai40

Assistant persona card with a tone-colored header, role label, initial avatar, and a row of personality trait chips.

"where is my order?"

order_status
87%
shipping_eta
9%
refund_request
4%

Intent Classifier

ai41

Intent ranking panel with the raw user input quoted above and a list of candidate labels with confidence bars.

stream142 tok/s
The quick brown fox jumps over

Token Stream

ai42

Live token visualizer with tone-tinted token chips, tokens-per-second rate, and a pulsing caret at the end.

response.json
{
  "answer": "Use Redis INCR",
  "sources": 3,
  "latency_ms": 420
}

Export JSON

ai43

Mini code viewer for a structured response, with a filename header, copy button, and a preformatted JSON preview body.

batch_01HX9K2820/1,000
ok 820fail 4

Batch Job

ai44

Batch inference progress card with completed/failed counts and a stacked bar where the error segment shows in rose.

rate limited users get a 429 response

rate-limited users get a 429 response with a Retry-After header

Diff Suggestion

ai45

Two-line before/after suggestion with a rose strike-through original and an emerald accepted revision.