Eliminate heap allocations when parsing strings by using Span
Category: Tips and Tricks
Tips and Tricks #97: Use Span
Tips and Tricks #96: Implement Retry Logic for LLM API Calls
Handle rate limits and transient failures gracefully with exponential backoff.
Tips and Tricks #95: Cache LLM Responses for Cost Reduction
Implement semantic caching to avoid redundant LLM calls and reduce API costs.
Tips and Tricks #94: Implement Prompt Templates for Consistent LLM Output
Use structured prompt templates to get reliable, formatted responses from LLMs.
Tips and Tricks #93: Use Embeddings for Semantic Search
Implement semantic search using text embeddings for more relevant results than keyword matching.
Tips and Tricks #92: Use dbt for Maintainable Data Transformations
Build modular, tested, documented data transformations with dbt.