Browse by Topic
Popular
Popular Posts
Latest
Latest Posts
Implementing Streaming and Async in Python LangChain
Learn how to combine streaming and async in Python LangChain to build responsive LLM applications. Includes token streaming, async calls, error handling, and concurrency.
Python LangChain RAG Implementation: A Practical Pipeline
A practical guide to building a RAG pipeline in Python with LangChain: load documents, split and embed chunks, store vectors, retrieve relevant context, and generate answers with an LLM.
Python LangChain Embeddings, Vector Stores, and Retrievers
Build semantic search and RAG pipelines with Python LangChain embeddings, vector stores, and retrievers.
Python LangChain Document Loaders and Text Splitters Explained
python langchain document loaders and text splitters: Learn how LangChain document loaders ingest files and how text splitters prepare content for embeddings, with pra...
Building Python LangChain Tools and Agents
Learn how to build Python LangChain tools and agents: defining tools, structuring arguments, running the agent loop, handling errors, and controlling cost.
Python LangChain Structured Output and Parsers
Learn how to get typed, structured LLM responses in Python with LangChain output parsers, including Pydantic and JSON examples, retry logic, and production tips.
Python LangChain Prompt Templates and Chat Models
Learn how to use LangChain prompt templates with chat models in Python, including ChatPromptTemplate, message roles, partial variables, and output parsing.
Python OpenAI API: Timeouts, Retries, and Error Handling
Learn how to set timeouts, control retries, and handle errors when calling the OpenAI API from Python to build resilient applications.
Python OpenAI Batch API: Submit and Process Jobs
Learn how to submit and process OpenAI batch jobs from Python: upload a JSONL request file, create a batch job, poll for status, and retrieve results.
Using OpenAI Embeddings in Python for Semantic Search
Create embeddings with the OpenAI Python client, understand the response structure, compute cosine similarity, and build semantic search over your documents.