StackPractices

Tag: ai

Browse 38 practical software engineering resources tagged with "ai". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving ai. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

Artificial Intelligence in Software

Artificial Intelligence is reshaping how software understands, recommends, and automates. Production AI systems require more than model selection; they need robust data pipelines, evaluation, monitoring, cost control, and safeguards.

The resources below cover LLMs, embeddings, retrieval-augmented generation, agents, prompt engineering, and MLOps basics. Each guide connects AI capabilities to practical engineering decisions.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Build Autonomous AI Agents with Tool Use and Reasoning

How to design AI agents that autonomously plan, execute tools, and iterate toward goals using...

AI Agents with Tool Use

Build autonomous AI agents that can use external tools and APIs to accomplish complex tasks.

OpenAI Assistants API Chatbot: Build, Cost & Deploy

How to create an AI chatbot using the OpenAI Assistants API with function calling and file search.

Generate Images Programmatically with AI Models

How to create, edit, and optimize images using DALL-E, Stable Diffusion, and Midjourney APIs with...

Fine-Tune a Language Model for Code Generation

How to fine-tune an LLM for code using LoRA and QLoRA on consumer GPUs.

Apply Prompt Engineering: What Works

How to write useful prompts for LLMs using role assignment, few-shot examples, chain-of-thought...

Build Stateful AI Agents with LangGraph State Machines

Create multi-step AI agents with LangGraph using state machines, conditional edges, tool calling,...

Fine-Tune and Deploy Text Classifiers with Hugging Face

Fine-tune a pre-trained transformer model for text classification using Hugging Face Trainer,...

Run LLMs Locally with Ollama for Private Inference

Install and use Ollama to run open-source LLMs locally with Python, including streaming,...

Compare Text Semantic Similarity with OpenAI Embeddings

Generate text embeddings with OpenAI and compute cosine similarity to measure semantic similarity...

Structured JSON Output from OpenAI Function Calling

Use OpenAI function calling and structured outputs to get reliable JSON from LLMs with Pydantic...

a Local RAG Pipeline with ChromaDB and Sentence Transformers

Implement retrieval-augmented generation locally with ChromaDB, sentence-transformers embeddings,...

Sentiment Analysis with Python and NLTK

Score text sentiment using NLTK VADER and custom lexicons in Python. Classify reviews, process...

Build a RAG Pipeline with LangChain and Vector Databases

How to build a Retrieval-Augmented Generation (RAG) pipeline using LangChain and vector databases...

Build Semantic Search with Embeddings in Python, JS, Java

Build a semantic search engine with text embeddings and vector similarity. Includes Python,...

Build a Slack Bot with OpenAI GPT-4

How to build a conversational Slack bot powered by OpenAI GPT-4 that responds to mentions and...

Prompt Chaining Pattern

Chain multiple LLM calls where each step's output feeds the next step's input. Break complex tasks...

Blackboard Pattern

A shared knowledge space where independent specialized modules collaborate to solve complex...

AI Agent Design Document Template

Document AI agent architecture, tools, memory, reasoning patterns, safety guardrails, evaluation...

AI Data Preparation Checklist

Checklist for preparing data for LLM and RAG systems: data collection, cleaning, chunking,...