Building a Personal AI Assistant with Semantic Kernel
This foundation can be extended with calendar integration, email access, and more plugins. Perfect for a holiday coding project!
61 articles
This foundation can be extended with calendar integration, email access, and more plugins. Perfect for a holiday coding project!
Many teams that started with LangChain in 2024 are now evaluating Semantic Kernel for its tighter Azure integration and production-ready features. Having…
LLM outputs vary between runs and model versions. Testing must focus on behavioral properties rather than exact string matching, while still catching…
Configure appropriate timeout settings for AI operations and implement retry logic for transient failures. Consider using premium plans for…
Table extraction transforms static reports into queryable data. Combine extracted tables with LLM analysis to answer questions about financial statements…
First, provision an Azure AI Document Intelligence resource and configure your client. The prebuilt invoice model recognizes vendor details, line items…
JSON mode guarantees the model outputs valid JSON, though you still need to specify the schema in your prompt.
Functions are defined as JSON schemas that describe parameters and their types. Well-designed function schemas and clear descriptions ensure the model calls…
Automated pipelines ensure reproducibility, enable A/B testing, and provide audit trails for model governance.
RAG works by first retrieving relevant documents from a search index, then passing those documents as context to an LLM for generation. This approach…
Monitor reranker scores and caption extraction quality. A/B test semantic ranking against pure vector or keyword search to quantify improvements for your…
Multimodal RAG ensures users find relevant information regardless of how it's represented in the source documents.
Structured outputs eliminate parsing errors. Add business validation for semantic correctness - the schema ensures format, you ensure meaning.
Use Redis Vector Search for efficient similarity matching at scale. Tune the similarity threshold based on your use case - higher values ensure more precise…
Graph RAG significantly improves answers for questions involving relationships, hierarchies, and multi-hop reasoning.
Use consumption-based billing to pay only for actual inference time. Implement caching for repeated queries and batch similar requests to amortize cold…
Enable extended thinking for mathematical proofs, code analysis, strategic planning, and multi-constraint optimization problems. For simple queries…
Configure Azure Monitor alerts on latency and error rates. Implement automatic rollback triggers when thresholds are breached.
Guardrails are essential for enterprise AI deployments, protecting both users and your organization.
After training completes, evaluate on a held-out test set before deploying. Monitor the fine-tuned model's performance against the base model to ensure…
Fail builds when quality metrics drop below thresholds, catching regressions before they reach production.
Azure AI Foundry provides trace visualization showing the complete agent interaction graph, making it easy to debug complex workflows and optimize handoff…
Track cache hit rates in your monitoring. Applications with high context reuse typically see 60-80% cache hit rates, dramatically reducing per-request costs.
Configure your Cosmos account with write regions near your users and read replicas globally. Vector searches automatically route to the nearest replica…
Use spot instances for non-critical workloads, implement request batching for throughput optimization, and configure appropriate scale-to-zero policies.…
Vector search costs can spiral quickly at scale. After optimizing Azure AI Search deployments processing 50 million vectors, I've identified key patterns…
For multi-page documents, process pages in parallel and use a synthesis step to merge extracted data. GPT-4o handles cross-page references like "continued…
Claude 3.5 Sonnet has become my go-to model for automated code review workflows. Its exceptional ability to understand context across large codebases makes…
The new agent framework introduces several critical improvements. First, native multi-agent orchestration allows agents to collaborate without custom…
Robust error handling is what separates prototypes from production systems. Invest in comprehensive error handling early to avoid painful debugging later.
Reliable extraction requires careful schema design, multi-pass validation, and explicit handling of uncertainty. These patterns help you build extraction…
Type safety transforms AI applications from fragile prototypes into robust production systems. Invest in types early - your future self will thank you.
Pydantic integration makes OpenAI's structured outputs truly type-safe, catching errors at development time and ensuring your AI-generated data is always valid.
Route based on multiple state attributes: Sometimes you don't know all routes ahead of time: Multiple decision points in sequence: Route with randomization…
LangGraph provides these capabilities through a graph-based execution model.
LangChain 0.2.x Stability LCEL (LangChain Expression Language) Maturity Azure AI Search Vector Store
The Microsoft Fabric SDK provides a Pythonic interface for working with Fabric services. This guide covers installation, configuration, and common…
I started experimenting with CrewAI because I wanted clearer role definitions in multi-agent workflows. CrewAI's focus on roles, goals, and agent…
I've used AutoGen to prototype multi-agent workflows that handle planning, tool use, and execution. This practical introduction focuses on the patterns that…
Code Interpreter (Advanced Data Analysis) is the single most productive AI tool I've used for exploratory analysis — it runs Python in a sandbox, opens…
Deep dive into LangChain's Runnable interface and its implementations for building flexible LLM pipelines.
Understanding LangChain Expression Language for building composable LLM applications with clean, declarative syntax.
Deep dive into the SemPy library for working with Power BI semantic models in Microsoft Fabric notebooks.
Building end-to-end data science workflows using Microsoft Fabric's integrated capabilities.
Learn how to use LangChain with Azure OpenAI Service to build robust, production-ready AI applications.
LangChain's velocity in 2023 has been remarkable and occasionally destabilising — the 0.0.x series has introduced breaking API changes in point releases…
Tomorrow we'll explore Hugging Face integration with Azure. PEFT Documentation PEFT GitHub TRL Library
AI agents represent the next evolution of AI systems. By combining planning, tool use, and memory, they can autonomously accomplish complex goals while…
AI orchestration patterns enable building sophisticated AI systems from modular components. The key is designing for reliability, observability, and…
AI-powered data quality goes beyond static rules. Intelligent systems understand context, detect subtle anomalies, and provide actionable recommendations…
Spark ML provides battle-tested patterns for production machine learning. From feature engineering to model persistence, these patterns ensure reliable ML…
Error: {type(error).name}: {str(error)} response = openai.ChatCompletion.create( engine="gpt-4", messages=[{"role": "user", "content": prompt}] ) return…
AI data analysis assistants make insights accessible to everyone, regardless of technical expertise. The key is combining natural language understanding…
Combined with Azure OpenAI's enterprise security and compliance, it's a powerful combination.
Create reusable, parameterized prompts: Combine components into workflows: Load content from various sources: Split documents for embedding: Generate…
This cycle is repeated for each new piece of functionality. The result is a suite of tests that provide confidence in the code and make it easier to…
The Python SDK for Azure OpenAI (openai package with Azure-specific configuration) is the de facto starting point for Azure OpenAI development—the largest…
The Databricks REST API exposes every workspace capability that the UI and CLI provide—and then some—making it the integration point for external…
In the past, I've been using my Macbook Pro to do all things blockchain and smart contracts development. One of the hurdles I encountered in the past is…
1. Define schemas explicitly Never rely on schema inference in production 2. Use built in functions Avoid UDFs when possible 3. Write pure transformation…
.NET on Functions is the default story Microsoft tells, but in practice the serverless workload that lands on my desk most often is a Python data scientist…