Prompt Caching: Reducing Latency and Cost for Repetitive Contexts
Many applications send the same system prompt and context repeatedly: 1. Identify common prefixes System prompts, few shot examples 2. Batch similar…
Thoughts on data engineering, cloud architecture, and technology. 2205 articles and counting.
Showing 24 of 2205 posts — page 37 of 92
Many applications send the same system prompt and context repeatedly: 1. Identify common prefixes System prompts, few shot examples 2. Batch similar…
1. Start with exact match Simple and effective 2. Add semantic caching For variable phrasing 3. Set appropriate TTL Balance freshness and savings 4. Monitor…
Token cost analysis enables informed decisions about LLM usage. Track, analyze, and optimize to keep costs predictable and manageable.
1. Cache aggressively Identical queries don't need re processing 2. Tier your models Match model to task complexity 3. Optimize prompts Shorter prompts =…
Model selection should be systematic, not arbitrary. Define your requirements, score candidates objectively, and document decisions for future review.
" in query or self. has code indicators(query lower): return ModelTier.STANDARD Long queries often need more capability if word count 200: return…
Resilience : Failover when one provider has outages Cost optimization : Route to cheaper models when possible Capability matching : Use best model for each…
Anthropic has hinted at Claude 3 coming soon, which promises even better performance across benchmarks. Meanwhile, OpenAI continues to iterate on GPT-4. The…
I spent time comparing Gemini and GPT in enterprise settings; below are the practical differences that should influence model choice.
Most feature engineering bugs are statistics fitted on the wrong rows. How I keep scaling, encoding and aggregates leak-free with scikit-learn pipelines.
Feature store, serverless compute, prompt flow and the model catalog went GA in Azure ML in November 2023. Here's what to adopt now and what to hold off on.
The edge cases of index projections in Azure AI Search: what the chunk index schema needs, how keys change on re-index, deletes, and keeping chunk order.
Which Azure AI Search index changes work in place, which force a rebuild, and how to swap versioned indexes, load documents and check health safely.
Which hybrid search knobs Azure AI Search exposes on the 2023-11-01 API, why I avoid client-side score weighting, and how to measure changes before shipping.
Azure AI Search has no built-in vector compression yet. How to estimate vector index size, read the quota, and cut it with chunking and dimension choices.
How to design semantic configurations, use reranker scores as a RAG cut-off, and decide when Azure AI Search's semantic ranker is worth paying for.
What integrated vectorization in Azure AI Search actually removes from a RAG pipeline, what it leaves behind, and when I'd still embed in my own code.
A January 2024 stock-take of Azure AI Search for RAG: which features are GA, which are preview, and which SDK and REST versions to build on.
A readiness checklist for the Data Activator preview in Fabric: tenant switches, throughput and alert limits, failure modes, and when to wait for GA.
How Data Activator preview triggers really fire: objects, Is vs Becomes conditions, timers, Power Automate custom actions and the throughput limits to plan for.
The KQL habits that keep queries over streaming telemetry fast in Fabric KQL databases and Azure Data Explorer, and the shortcuts that quietly slow them down.
Practical Fabric Eventstream patterns: what belongs in the no-code event processor, what belongs in KQL, and what to fix before events arrive.
How Eventstream, KQL databases, Power BI and the Data Activator preview fit together in Fabric as of January 2024, and when to choose something else.
Design-time rules for Direct Lake in Fabric: size tables to your SKU's guardrails, move logic into Delta, avoid views, and control when models reframe.