For years, performance optimization mostly meant speed. Faster load times, lower latency, smoother UX. If your app felt slow, users simply left. But the rules are starting to change.
As more applications become AI-powered and agentic, optimizing for speed alone is no longer enough. Now we also have to think about token usage. Every prompt, every response, every tool call carries a cost. Tokens influence latency, infrastructure spend, and how well your system scales.
If you’re building LLM-powered applications, you’ve probably seen this firsthand. Responses that run longer than necessary. Context windows are filling up faster than expected. Costs are gradually creeping upward. Workflows are slowing down because the model is processing more information than it actually needs.
This is a different kind of performance engineering.
In this guide, we’ll explore ten practical tools and response formats you can start using today to make your LLM applications more efficient, more cost-effective, and more scalable without sacrificing capability.
An AI token is the smallest unit of data that an AI model processes. Input to the LLM and output from the LLM add up to the total tokens used. For instance, if your input runs into 230 tokens and receives an output of 150 tokens, your total usage for that interaction will be 380 tokens.
That simple model is still the foundation, but a real bill now has more line items:
| Token type | What it is | Why it matters |
|---|---|---|
| Uncached input | Prompt tokens processed from scratch | Full price |
| Cache write | Input tokens stored for reuse | Slightly more than normal input (e.g., 1.25× on Anthropic’s 5-minute cache and OpenAI GPT-5.6+) |
| Cache read | Input tokens served from a prior cache entry | A fraction of normal input (0.1× on most models, less on some) |
| Output | Tokens the model generates | Usually several times the price of input |
| Reasoning/thinking | Hidden “thought” tokens produced before the answer | Billed as output on the major providers; often the highest hidden cost |
| Tool-definition and tool-result tokens | Schemas you send and data tools return | Counted as input on every turn of an agent loop |
| Media | Images, PDFs, audio, video | Converted to tokens at a rate you can often control |
The tools and formats that we will be looking at involve reducing token usage during input and output.
To follow along with the code examples in this guide, you will need:
Let’s set up our testing arena.
For this guide, we will be using the Gemini SDK, Anthropic, and OpenAI together with their API keys for our demonstrations.
The tools and formats demonstrated here can be implemented using other LLM providers.
First, go ahead and install the Google AI SDK for Node.js.
Run the command below to install the Google Gemini SDK:
npm install @google/genai @anthropic-ai/sdk openai @toon-format/toon
Then go ahead and create a .env file in your project root and paste in your Gemini API key.
GEMINI_API_KEY=YOUR_GEMINI_KEY ANTHROPIC_API_KEY=YOUR_ANTHROPIC_KEY OPENAI_API_KEY=YOUR_OPENAI_KEY
Run any script with Node’s built-in env loader (no dotenv needed):
node --env-file=.env script.mjs
Before and after every optimization, we need to count the tokens used in a given prompt. We’ll use two methods throughout the article:
Go ahead and create a file tokens.mjs for this:
import { GoogleGenAI } from "@google/genai";
import Anthropic from "@anthropic-ai/sdk";
export const ai = new GoogleGenAI({
apiKey: process.env.GEMINI_API_KEY,
httpOptions: { apiVersion: "v1beta" },
});
export const anthropic = new Anthropic();
// Pre-flight: Gemini
export async function countGemini(contents, model = "gemini-3-flash-preview") {
const { totalTokens } = await ai.models.countTokens({ model, contents });
return totalTokens;
}
// Pre-flight: Claude. The endpoint accepts system prompts, tools, images and PDFs.
export async function countClaude({ system, messages, tools }, model = "claude-sonnet-5-5") {
const { input_tokens } = await anthropic.messages.countTokens({
model,
system,
messages,
tools,
});
return input_tokens;
}
Claude’s count endpoint returns an estimate, as the actual billed number can differ slightly. It rejects server tools, the MCP connector, and URL-sourced images or documents, so send images and PDFs as base64 when counting.
For OpenAI, read usage from the response, or use a local tokenizer such as js-tiktoken for estimates.
Pre-flight counts are great for A/B-testing prompt changes, while post-flight usage is what you log in production.
One of the mistakes developers make is stuffing persona, rules, and formatting instructions into every user message, bloating input tokens. Use the system instruction field instead.
So why use the system block at all?
It provides better structure and instruction-following because models are trained to treat system instructions as higher-priority rules than user text. It also makes prompt caching more efficient since system instructions sit at the beginning of the prompt, where stable content can be cached. Also, it reduces duplication by allowing you to define rules once instead of repeating them in every turn of a conversation.
Here’s an honest measurement with and without systemInstruction. Both requests carry the same instruction, and we compare real billed input from usageMetadata:
import { ai } from "./tokens.mjs";
const model = "gemini-3-flash-preview";
const persona = "You are a helpful assistant that always responds in a friendly tone.";
const question = "Tell me about the benefits of exercise.";
const inline = await ai.models.generateContent({
model,
contents: `${persona}\n\n${question}`,
config: { maxOutputTokens: 400 },
});
const withSystem = await ai.models.generateContent({
model,
contents: question,
config: { systemInstruction: persona, maxOutputTokens: 400 },
});
console.log("Inline persona input tokens:", inline.usageMetadata.promptTokenCount);
console.log("System-block input tokens: ", withSystem.usageMetadata.promptTokenCount);
Look at the token count below:

Notice the number of tokens saved in the console.
I recommend keeping system prompts short and specific because every token in them is paid for on every request (or at the cached rate if you set up caching). Move rarely needed instructions out of the system prompt and load them only when relevant.
One of the problems with AI is that they are prone to generating unnecessary completions or filler words that add up in the final token count. You can define a stopsequence to instruct the model to immediately stop generation when it hits a specific character or pattern.
We will now define a stop sequence.
By defining stopSequences we instruct the model to stop generating as soon as it encounters any of the specified sequences.
For example, we only need a single line, so we stopped at the first newline character.
import { ai } from "./tokens.mjs";
const prompt = "Generate a short headline for a tech article. Start with 'Headline:'";
const without = await ai.models.generateContent({
model: "gemini-3-flash-preview",
contents: prompt,
});
const withStop = await ai.models.generateContent({
model: "gemini-3-flash-preview",
contents: prompt,
config: {
stopSequences: ["\n"], // stop at the first newline
maxOutputTokens: 40, // hard ceiling as a safety net
},
});
console.log("Without:", without.usageMetadata.candidatesTokenCount, without.text);
console.log("With: ", withStop.usageMetadata.candidatesTokenCount, withStop.text);
Use candidatesTokenCount from the response for the comparison. It is the real output size. The stop sequence itself is not included in the returned text.
Always set a maximum output size as well. Every provider has one: maxOutputTokens (Gemini), max_tokens (Anthropic, required), max_output_tokens (OpenAI Responses). It protects you from runaway generations, but be careful with reasoning models: thinking tokens usually count against the same budget, so an overly tight cap can end the response before the answer starts.
Now, let’s look at the token savings:

If you are building a simple Optical Character Recognition (OCR) or classification application with an LLM, sending a high-quality image to the AI for processing will be overkill, as you will be burning massive amounts of tokens for this. You can instead adjust the mediaResolution parameter to reduce the image quality before processing. Gemini lets you cap how many tokens each media item uses with mediaResolution.
For Gemini 4 and Gemini 3, the approximate image cost per level is:
| Level | Image | Video (per frame) | PDF page |
|---|---|---|---|
low |
280 | 70 | 280 + native text |
medium |
560 | 70 | 560 + native text |
high |
1,120 | 280 | 1,120 + native text |
ultra_high (per item only) |
2,240 | n/a | n/a |
unspecified (default) |
1,120 | 70 | 560 |
So dropping a simple image from the default to low cuts its input cost by about 75% (1,120 to 280 tokens). Google recommends high as the best setting for most use cases, so test your own task before settling on low.
Let’s check out how this can reduce token usage.
import fs from "node:fs";
import { GoogleGenAI, MediaResolution } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const data = fs.readFileSync("./receipt.jpg", { encoding: "base64" });
async function inputTokens(level) {
const r = await ai.models.generateContent({
model: "gemini-3-flash-preview",
contents: [
{
role: "user",
parts: [
{ inlineData: { mimeType: "image/jpeg", data } },
{ text: "What is the total amount on this receipt?" },
],
},
],
config: { mediaResolution: level, maxOutputTokens: 100 },
});
return r.usageMetadata.promptTokenCount;
}
for (const level of [
MediaResolution.MEDIA_RESOLUTION_LOW,
MediaResolution.MEDIA_RESOLUTION_MEDIUM,
MediaResolution.MEDIA_RESOLUTION_HIGH,
]) {
console.log(level, await inputTokens(level));
}
Gemini 4 and Gemini 3 also support setting resolution per media item within one request. Use high for a dense diagram and low for a decorative photo in the same prompt. In the Interactions API, this is the resolution field on each image part.
Other cheap media wins that apply to every provider: downscale and crop images before upload, send only the relevant PDF pages, and prefer extracted text over page images when the layout does not matter.
Another format to try is configuring the thinking budget. Models can generate a lot of internal thought tokens before even providing an answer. While this is great for complex tasks, it’s overkill for simple tasks. For simple tasks, cap or disable thoughts.
Below is how to achieve this with Gemini:
import { GoogleGenAI, ThinkingLevel } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const response = await ai.models.generateContent({
model: "gemini-4-hydrogen",
contents: "Provide a list of 3 famous physicists and their key contributions",
config: {
thinkingConfig: { thinkingLevel: ThinkingLevel.LOW },
},
});
console.log("Thinking tokens:", response.usageMetadata.thoughtsTokenCount);
console.log("Answer tokens: ", response.usageMetadata.candidatesTokenCount);
Not every model supports turning thinking fully off. Current Gemini models use thinkingLevel, and it is required on Gemini 4.
Below is how to achieve this with Anthropic Claude:
const response = await client.messages.create({
model: "claude-opus-5-5",
max_tokens: 4096,
output_config: { effort: "medium" },
messages: [{ role: "user", content: "Analyze the trade-offs between microservices and monoliths" }],
});
Claude exposes a single output_config.effort knob. Where adaptive thinking is available, Anthropic recommends effort as the way to control thinking depth. It trades response thoroughness against token efficiency on the same model.
Prompt caching is the single highest-leverage optimization for most applications. When consecutive requests share the same prefix (instructions, tool definitions, reference documents, earlier conversation), the provider reuses its already-computed state for that prefix and bills the reused tokens at a steep discount.
Here are the economics, from the providers’ current documentation:
| Provider | Cache write | Cache read | Default lifetime | Control |
|---|---|---|---|---|
| Anthropic | 1.25× input (5-min TTL), 2× (1-hour TTL) | 0.1× input on most models; 0.05× on Opus 5.5 / Sonnet 5.5; 0.025× on Fable and Mythos 5.1+ | 5 minutes, refreshed free on each hit | Opt-in via cache_control |
| OpenAI (GPT-5.6 and later) | 1.25× input (30-min TTL), 2.5× (12-hour TTL) | 0.1× input; 0.05× on GPT-6.1 Sol / Terra | 30 minutes | On by default; optional explicit breakpoints |
| Google Gemini | Implicit: none. Explicit: storage billed by size × TTL | Savings passed on automatically (implicit) or guaranteed (explicit) | Implicit: automatic. Explicit: 1-hour default | Implicit on by default (2.5 and newer) |
Implicit caching is enabled by default on Gemini 2.5 and newer. There is nothing to configure, but you can improve your hit rate as follows:
Explicit caching guarantees the savings. It is a beta feature, supported on Gemini 3 and 2.5 models but not on Gemini 4 (use implicit caching there). It is available through the generateContent API but not the Interactions API.
import { GoogleGenAI, createUserContent, createPartFromUri } from "@google/genai";
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const model = "gemini-3.8-flash";
// Use a real document that is well above the minimum cacheable size.
const doc = await ai.files.upload({
file: "./meeting-transcripts.txt",
config: { mimeType: "text/plain" },
});
const cache = await ai.caches.create({
model,
config: {
displayName: "q4-meeting-transcripts",
systemInstruction: "You are an expert analyzing transcripts.",
contents: createUserContent(createPartFromUri(doc.uri, doc.mimeType)),
ttl: "600s", // defaults to 1 hour if omitted; you pay for storage by size × TTL
},
});
for (const question of ["Summarize the decisions.", "List every action item and owner."]) {
const response = await ai.models.generateContent({
model,
contents: question,
config: { cachedContent: cache.name },
});
console.log(response.text);
console.log(response.usageMetadata); // cachedContentTokenCount shows the reused tokens
}
await ai.caches.delete({ name: cache.name });
await ai.files.delete({ name: doc.name });
Explicit caches only pay off when the content is large, and you will query it several times before the TTL expires.
Another way to reduce token usage is TOON. TOON is a subset of JSON specifically made to reduce AI token usage.
First, install the package:
npm install @toon-format/toon
Then test token reduction:
import { encode, decode } from "@toon-format/toon";
import { ai } from "./tokens.mjs";
export async function demonstrateToonEncodingDecoding() {
const sampleData = {
users: [
{ id: 1, name: "Alice", role: "admin" },
{ id: 2, name: "Bob", role: "user" }
],
context: {
task: "Our favorite hikes together",
location: "Boulder",
season: "spring_2025"
}
};
try {
const jsonString = JSON.stringify(sampleData, null, 2);
const { totalTokens: jsonTokens } = await ai.models.countTokens({
model: "gemini-3-flash-preview",
contents: [{ role: "user", parts: [{ text: jsonString }] }],
});
console.log(`Tokens for original JSON: ${jsonTokens}`);
const toonString = encode(sampleData);
const { totalTokens: toonTokens } = await ai.models.countTokens({
model: "gemini-3-flash-preview",
contents: [{ role: "user", parts: [{ text: toonString }] }],
});
console.log("Encoded TOON:\n", toonString);
console.log(`Tokens for encoded TOON: ${toonTokens}`);
} catch (error) {
console.error("Error demonstrating TOON:", error);
}
}
demonstrateToonEncodingDecoding();
Check it out in the console:

This works best for a multi-purpose AI app. You can implement a routing layer to use the least powerful model for simple tasks and the most powerful model for tasks that require high reasoning or a massive context window.
You can use LLMRouter, an open-source Python library for LLM routing.
A longer context costs more on every turn, and quality often degrades as irrelevant content piles up. There are three practical ways to manage context as conversations grow: trimming, compaction, and history retrieval.
Compaction helps keep long conversations and agent runs within the model’s context window by replacing older conversation turns with a model-generated summary.
OpenAI supports server-side compaction through the Responses API. You can configure a threshold that triggers compaction when the rendered context exceeds a specified size. The server then returns an opaque compaction item that you can carry forward into subsequent requests.
import OpenAI from "openai";
const client = new OpenAI();
const conversation = [{ type: "message", role: "user", content: "Let's begin a long coding task." }];
const response = await client.responses.create({
model: "gpt-5.3-codex",
input: conversation,
store: false,
context_management: [{ type: "compaction", compact_threshold: 200_000 }],
});
conversation.push(...response.output); // includes the compaction item when one occurs
If you chain with previous_response_id, send only the new message each turn and don’t manually remove older context. However, if you manage the input array yourself, you can drop items before the latest compaction item to keep requests small.
Selective retention is a context management strategy for LLM applications.
Rather than feeding an LLM the entire history of a conversation, only the most important information relevant to the conversation is fed to the LLM.
The following pseudo-code demonstrates how you can achieve this:
import { VectorDB } from 'vector-db-library';
const vectorDB = new VectorDB();
await vectorDB.add({ id: message.id, embedding: await createEmbedding(message.content) });
async function generateResponse(latestQuery) {
const queryEmbedding = await createEmbedding(latestQuery);
const relevantHistory = await vectorDB.search(queryEmbedding, { topK: 5 });
const prompt = buildPrompt(systemPrompt, relevantHistory, latestQuery);
return await model.generateContent(prompt);
}
Retrieval-augmented generation (RAG) can help reduce token usage, but if implemented poorly, it can just as easily increase it. The goal is to give the model only the most relevant information, using as few tokens as possible.
But first, do you even need RAG?
Anthropic points out that if your knowledge base is under 200,000 tokens (roughly 500 pages), you might not need RAG at all. You can simply include the entire knowledge base in your prompt. With prompt caching, this can be both fast and cost-effective.
RAG starts to make more sense when your knowledge base gets bigger or changes so frequently that caching the entire thing becomes impractical.
Here’s a compact implementation of the retrieve-wide, rerank, pack-narrow flow (Retrieval techniques that reduce tokens):
function rrf(rankings, k = 60) {
const scores = new Map();
for (const ranking of rankings) {
ranking.forEach((id, rank) => {
scores.set(id, (scores.get(id) ?? 0) + 1 / (k + rank + 1));
});
}
return [...scores].sort((a, b) => b[1] - a[1]).map(([id]) => id);
}
export async function retrieve(query, { budgetTokens = 3000, filters = {} } = {}) {
const [semanticIds, lexicalIds] = await Promise.all([
vectorSearch(query, { limit: 50, filters }), // ranked ids by embedding similarity
bm25Search(query, { limit: 50, filters }), // ranked ids by keyword match
]);
const candidates = rrf([semanticIds, lexicalIds]).slice(0, 30);
const reranked = await rerank(query, await loadChunks(candidates)); // best first
const picked = [];
let used = 0;
for (const chunk of reranked) {
if (used + chunk.tokens > budgetTokens) break;
picked.push(chunk);
used += chunk.tokens;
}
return picked;
}
Reciprocal rank fusion rrf combines rankings without comparing raw scores.
You can’t optimize what you don’t measure. Without logging, a small change to a prompt, a new tool, or a model upgrade can double your token usage without you noticing until the bill arrives.
Log a unified usage record for every API call. Since each provider reports token usage differently, normalize their responses into a consistent format so you can track usage and compare costs across providers more easily.
Anthropic implementation:
export const fromAnthropic = (u) => ({
input: u.input_tokens,
cachedRead: u.cache_read_input_tokens ?? 0,
cacheWrite: u.cache_creation_input_tokens ?? 0,
output: u.output_tokens,
reasoning: 0,
});
OpenAI implementation:
export const fromOpenAI = (u) => {
const cached = u.input_tokens_details?.cached_tokens ?? 0;
return {
input: u.input_tokens - cached,
cachedRead: cached,
cacheWrite: 0,
output: u.output_tokens,
reasoning: u.output_tokens_details?.reasoning_tokens ?? 0,
};
};
OpenAI’s input_tokens includes cached tokens.
Gemini implementation:
export const fromGemini = (m) => {
const cached = m.cachedContentTokenCount ?? 0;
const thoughts = m.thoughtsTokenCount ?? 0;
return {
input: m.promptTokenCount - cached,
cachedRead: cached,
cacheWrite: 0,
output: (m.candidatesTokenCount ?? 0) + thoughts,
reasoning: thoughts,
};
};
Gemini’s promptTokenCount includes cached tokens, while thoughts are reported separately.
const PRICES = {
"claude-sonnet-5-5": { input: 0, cachedRead: 0, cacheWrite: 0, output: 0 },
// ...
};
Fill PRICES from each provider’s pricing page ($ per million tokens).
export function logUsage({ provider, model, feature, userId, latencyMs, usage }) {
const p = PRICES[model] ?? { input: 0, cachedRead: 0, cacheWrite: 0, output: 0 };
const costUsd =
(usage.input * p.input +
usage.cachedRead * p.cachedRead +
usage.cacheWrite * p.cacheWrite +
usage.output * p.output) / 1_000_000;
const totalIn = usage.input + usage.cachedRead + usage.cacheWrite;
const record = {
ts: new Date().toISOString(),
provider, model, feature, userId, latencyMs,
...usage,
cacheHitRate: totalIn ? usage.cachedRead / totalIn : 0,
costUsd,
};
fs.appendFileSync("usage.jsonl", JSON.stringify(record) + "\n");
return record;
}
Wrap every model call with the logUsage function:
const t0 = Date.now();
const res = await ai.models.generateContent({ model, contents, config });
logUsage({
provider: "google", model, feature: "support-summary", userId,
latencyMs: Date.now() - t0,
usage: fromGemini(res.usageMetadata),
});
Agents can consume tokens surprisingly quickly, especially when they work across multiple steps. Every turn may include the system prompt, tool definitions, the growing conversation history, and new tool results. All of this adds to the token count.
There are four main areas to pay attention to when optimizing agent workflows:
Every tool schema adds to your input tokens. In a typical multi-server setup involving GitHub, Slack, Sentry, Grafana, and Splunk, tool definitions alone can consume around 55,000 tokens before the agent even starts doing any work.
There’s another problem. The more tools you give an agent, the harder it becomes to select the right one. Tool selection accuracy can also decline when you have roughly 30 to 50 tools available.
A better approach is tool search. Instead of loading every available tool upfront, let the agent search for and load only the definitions it needs on demand.
Anthropic offers server-side tool search, which can reduce tool definition overhead by more than 85%:
const response = await client.messages.create({
model: "claude-sonnet-5-5",
max_tokens: 2048,
tools: [
{ type: "tool_search_tool_bm25_20251119", name: "tool_search_tool_bm25" },
{
name: "get_order_status",
description: "Look up the status of an order by order id.",
input_schema: {
type: "object",
properties: { order_id: { type: "string" } },
required: ["order_id"],
},
defer_loading: true,
},
],
messages,
});
Setting defer_loading to true keeps the tool definition out of the context until the agent needs it and discovers it through tool search.
Tool results can easily become the largest source of token usage in an agent workflow. Instead of passing everything an API returns to the model, focus on the information it actually needs.
A few ways to keep tool results lean:
Set hard limits on the number of steps an agent can take and the tokens or budget it can spend. This keeps it from running indefinitely and consuming more resources than necessary.
const MAX_STEPS = 12;
const MAX_BILLABLE_TOKENS = 150_000;
let spent = 0;
for (let step = 0; step < MAX_STEPS; step++) {
const res = await client.messages.create({ model, max_tokens: 1024, system, tools, messages });
const u = res.usage;
spent += u.input_tokens + (u.cache_creation_input_tokens ?? 0) + u.output_tokens;
if (spent > MAX_BILLABLE_TOKENS) throw new Error(`Token budget exceeded after ${step + 1} steps`);
if (res.stop_reason !== "tool_use") return res;
messages.push({ role: "assistant", content: res.content });
messages.push({ role: "user", content: await runTools(res.content) });
}
When working with a large codebase or a collection of documents, delegate exploration to sub-agents using their own context. They can review multiple files and return a short summary to the parent agent, keeping its context lean. Instead of loading all 30 files, the parent only needs the summary. You can also use a cheaper model for these exploration tasks to reduce costs further.
If you want the LLM model to return its response in a specific format, you can tell the model to return its response in a specific format without wasting tokens describing it. This keeps responses tight and parseable, removes the need for “please return valid JSON” boilerplate, and avoids retry loops.
Below is how this can be achieved in Gemini:
const response = await ai.models.generateContent({
model: "gemini-3-flash-preview",
contents: "What is the capital of France?",
config: {
responseMimeType: "application/json",
responseJsonSchema: {
type: "object",
properties: {
country: { type: "string" },
capital: { type: "string" },
},
required: ["country", "capital"],
},
},
});
const { country, capital } = JSON.parse(response.text);
The responseJsonSchema accepts standard JSON Schema. The schema itself is input that you pay for on every call. Keep it small: short property names, enum for closed sets, no unused optional fields, no long descriptions the model does not need.
You can also use prompt optimizers such as LLMLingua.
LLMLingua is a Python package that uses a smaller model to compress prompts by removing redundant tokens while preserving their semantic meaning.
This allows you to reduce prompt size without significantly affecting the model’s understanding of the request.
According to the authors, LLMLingua can achieve up to 20× prompt compression with minimal performance loss.
When you reduce unnecessary tokens, structure outputs deliberately, and use the right tools for the task, you’re doing more than cutting costs. You’re improving latency, increasing reliability, and creating space for more advanced workflows.
This isn’t an exhaustive list of techniques for reducing token usage in LLM prompts. The ecosystem is evolving quickly, and new approaches continue to emerge. Still, the tools and formats covered in this guide, from system instructions to selective retention, offer a strong starting point for developers looking to build faster, more cost-efficient, and more scalable AI systems over time.

Explore Git-driven agentic workflows with PatchPup and Fullsend, covering automation, CI checks, pull requests, and best practices for scaling AI coding agents.

Building the same support assistant with React Spectrum, Vercel AI Elements, and CopilotKit reveals differences in setup and UI control. Compare the code and integration work to choose an approach for your React app.

Can React Resizable Panels’ Workspace replace Dockview or FlexLayout? Compare bundle size, tab state, and accessibility.

Learn to build a Python-based PDF search app with Typesense, embeddings, and semantic retrieval.
Hey there, want to help make our blog better?
Join LogRocket’s Content Advisory Board. You’ll help inform the type of content we create and get access to exclusive meetups, social accreditation, and swag.
Sign up now