Lab 16: AI Developer Toolkit — APIs, LangChain, Vector Databases

Objective

Get hands-on with the tools professional AI developers use. By the end you will be able to:

  • Call LLM APIs directly using SDKs

  • Use LangChain to build chains and agents

  • Understand vector databases and why they're essential for AI apps

  • Architect a complete AI application stack


The Modern AI Application Stack

┌─────────────────────────────────────────────────────┐
│                  USER INTERFACE                     │
│          (web app, mobile app, chatbot)             │
├─────────────────────────────────────────────────────┤
│               APPLICATION LAYER                     │
│      (orchestration: LangChain / LangGraph)         │
├──────────────┬──────────────────┬───────────────────┤
│   LLM APIs   │  Vector Database │   Traditional DB  │
│  (OpenAI /   │  (Pinecone /     │  (PostgreSQL /    │
│  Anthropic / │   Chroma /       │   MongoDB /       │
│  Google)     │   Weaviate)      │   Redis)          │
├──────────────┴──────────────────┴───────────────────┤
│                INFRASTRUCTURE                       │
│       (Docker / Kubernetes / Cloud)                 │
└─────────────────────────────────────────────────────┘

LLM APIs: The Foundation

OpenAI SDK

Anthropic (Claude) SDK

Google Gemini SDK


LangChain: Orchestration Framework

LangChain provides building blocks for composing LLM applications:

Chains

Agents with Tools


Vector Databases: AI's Long-Term Memory

Traditional databases store structured data and search by exact match. Vector databases store embeddings (high-dimensional vectors) and search by semantic similarity.

Why Vector Databases?

Chroma (Local, Python)

Pinecone (Cloud, Production-Scale)


Building a Complete AI App: Tech Stack Example


Tools at a Glance

Tool
Category
Use When

OpenAI Python SDK

LLM API

Building on GPT models

Anthropic SDK

LLM API

Building on Claude models

Google Generative AI

LLM API

Building on Gemini

LangChain

Orchestration

Complex chains, agents, RAG

LangGraph

Orchestration

Multi-step stateful workflows

Chroma

Vector DB

Local development, small scale

Pinecone

Vector DB

Production, millions of vectors

Weaviate

Vector DB

Self-hosted production

Qdrant

Vector DB

High performance, open source

FastAPI

Backend

Building AI-powered APIs

Streamlit

Frontend

Quick AI demos and tools

Gradio

Frontend

ML model interfaces


Further Reading

Last updated