python_projects

πŸš€ Daniel’s Python Portfolio | Senior Backend AI/ML Engineer

Senior Backend AI/ML Engineer specializing in Production-Ready LLM Applications

87+ projects 50K+ lines of code 10+ production systems RAG expert Multi-agent orchestration MLOps pipelines

Python LangChain Expert LangGraph RAG Systems Multi-Agent Security OpenAI Production Ready

Comprehensive Python portfolio showcasing progressive mastery from fundamental programming concepts to production-ready full-stack applications and AI-powered enterprise solutions.


🎯 Core Competencies

AI/ML Engineering

Software Engineering


πŸš€ 1. Production-Ready LangGraph API

[75-langchain-production-API] Enterprise LLM Application with Complete Security & Observability

The most comprehensive production-ready LLM API showcasing enterprise-grade patterns and best practices. 27 passing tests with Dependency Injection architecture.

🌐 Try it Live: https://langchain-production-api.onrender.com/docs - Interactive API documentation with real endpoints

Architecture Highlights

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    FASTAPI APPLICATION                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Security Layer β†’ Cache β†’ Agent β†’ Monitoring β†’ Response     β”‚
β”‚     ↓              ↓        ↓         ↓            ↓        β”‚
β”‚  β€’ Injection    β€’ LRU    β€’ Retry   β€’ Metrics   β€’ Validation β”‚
β”‚  β€’ PII Mask     β€’ TTL    β€’ Fallbackβ€’ Logs      β€’ PII Check  β”‚
β”‚  β€’ Validation   β€’ Hit/Missβ€’ Circuitβ€’ Tracing   β€’ Security   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Production Features

Tech Stack

# Core Framework
FastAPI 0.115+ + Pydantic v2 + LangGraph + LangChain + uv

# Security & Validation
SecurityPipeline (Injection Detection, PII Masking, Output Validation)

# Caching & Performance  
ResponseCache (LRU-based, TTL 300s, SHA256 keys, hit/miss tracking)

# Monitoring & Observability
structlog (JSON logs) + MetricsCollector + LangSmith tracing

# Agent Architecture
ProductionAgent (primary/fallback models, retry logic, state management)

# Testing
pytest + TestClient + Dependency Injection + integration markers

Key Implementation Patterns

Dependency Injection (Modern FastAPI):

@lru_cache()
def get_security() -> SecurityPipeline:
    """Singleton security pipeline."""
    return SecurityPipeline()

@app.post("/chat")
async def chat(
    security: SecurityPipeline = Depends(get_security),
    cache: ResponseCache = Depends(get_cache),
    metrics: MetricsCollector = Depends(get_metrics_collector),
    agent: ProductionAgent = Depends(get_agent),
):
    # Clean, testable, no global state

Security Pipeline:

class SecurityPipeline:
    def check_input(self, text: str) -> tuple[bool, str, list[str]]:
        # 1. Prompt injection detection (10+ patterns)
        # 2. Input sanitization (delimiter removal)
        # 3. PII masking (email, phone, SSN, credit cards)
        return is_allowed, cleaned_text, security_notes
    
    def check_output(self, text: str) -> tuple[str, list[str]]:
        # 1. PII leakage detection
        # 2. Harmful content filtering
        # 3. Output validation
        return cleaned_output, warnings

LangGraph Agent with Fallback:

class ProductionAgent:
    def _build_graph(self):
        # Primary model attempt β†’ Fallback β†’ Error handler
        graph.add_conditional_edges(
            "process",
            route_after_process,
            {"done": END, "fallback": "fallback", "error": "error"}
        )

Lifespan Events (Modern FastAPI):

@asynccontextmanager
async def lifespan(app: FastAPI):
    # Startup
    logger.info("Starting production API...", extra={"environment": settings.app_env})
    yield  # Application running
    # Shutdown
    logger.info("Shutting down...", extra={"metrics": metrics.summary})

API Endpoints

Production Deployment

# Environment configuration
OPENAI_API_KEY=sk-xxx
LANGSMITH_API_KEY=lsv2_pt_xxx
LANGCHAIN_TRACING_V2=true
APP_ENV=production
RATE_LIMIT=20/minute
CACHE_TTL_SECONDS=300

# Docker Compose
docker compose up --build

# Or with uvicorn
uv run uvicorn app.main:app --port 8000

Testing & Validation

27 Tests Passing:

Test Commands:

# Unit tests only (fast, no API keys)
uv run pytest tests/ -v -m "not integration"

# All tests (requires OPENAI_API_KEY)
uv run pytest tests/ -v

# With coverage
uv run pytest tests/ --cov=app --cov-report=html

Enterprise Value


🧠 2. Advanced RAG Research Assistant

[58-langchain-research-assistant-RAG] Production RAG with Multi-Query Retrieval & Source Attribution

Enterprise-grade RAG system demonstrating advanced retrieval strategies and conversation memory.

RAG Architecture

Document Ingestion β†’ Chunking β†’ Embedding β†’ Vector Store
                                                ↓
User Query β†’ Multi-Query Generation β†’ Parallel Retrieval
                                                ↓
Context Assembly β†’ LLM Generation β†’ Source Attribution

Advanced Features

Implementation Highlights

# Multi-Query Retrieval Pattern
class MultiQueryRetriever:
    def generate_queries(self, question: str) -> list[str]:
        # Generate 3 query variations using LLM
        return [original_query, variation_1, variation_2]
    
    def retrieve(self, queries: list[str]) -> list[Document]:
        # Parallel retrieval + deduplication
        all_docs = []
        for query in queries:
            docs = vector_store.similarity_search(query, k=3)
            all_docs.extend(docs)
        return deduplicate(all_docs)

# Structured Output with Confidence
class RAGResponse(BaseModel):
    answer: str
    confidence: float
    sources: list[str]
    reasoning: str

Tech Stack


πŸ”¬ 3. Multi-Agent Research System

[68-langgraph-multi-agent-research-system] Supervisor Architecture with Parallel Execution

Sophisticated multi-agent system for automated research with quality-driven iteration.

Agent Architecture

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  Supervisor β”‚
                    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        ↓                  ↓                  ↓
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ Searcherβ”‚      β”‚ Analyzer β”‚      β”‚ Writer  β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                  β”‚                  β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           ↓
                  Shared State (Blackboard)

Key Patterns

Production Features

# Supervisor Decision Making
def supervisor_node(state: ResearchState):
    # Analyze current state and delegate tasks
    next_agent = supervisor_llm.invoke(state)
    return {"next": next_agent, "messages": [decision]}

# Parallel Execution with Send API
def parallel_research(state: ResearchState):
    return [
        Send("searcher", {"query": q1}),
        Send("analyzer", {"query": q2}),
        Send("writer", {"query": q3})
    ]

# Quality Control Loop
def should_continue(state: ResearchState) -> str:
    if quality_score(state) >= 0.8:
        return "end"
    elif iterations < max_iterations:
        return "refine"
    else:
        return "end"

πŸ—οΈ 4. Production RAG Pipeline

[56-langchain-advanced-RAG-patterns] Hybrid Search, Contextual Compression & Parent Document Retrieval

Complete implementation of advanced RAG patterns for enterprise applications.

Advanced Retrieval Strategies

1. Hybrid Search (BM25 + Vector)

# Combine keyword and semantic search
ensemble_retriever = EnsembleRetriever(
    retrievers=[bm25_retriever, vector_retriever],
    weights=[0.5, 0.5]  # Balanced approach
)

2. Contextual Compression

# Reduce token usage while preserving relevance
compressor = LLMChainExtractor.from_llm(llm)
compression_retriever = ContextualCompressionRetriever(
    base_compressor=compressor,
    base_retriever=vector_retriever
)

3. Parent Document Retrieval

# Retrieve small chunks, return large context
parent_splitter = RecursiveCharacterTextSplitter(chunk_size=2000)
child_splitter = RecursiveCharacterTextSplitter(chunk_size=400)
retriever = ParentDocumentRetriever(
    vectorstore=vectorstore,
    docstore=InMemoryStore(),
    child_splitter=child_splitter,
    parent_splitter=parent_splitter
)

Performance Optimization


πŸ›‘οΈ 5. LangChain Security Patterns

[70-langchain-security-patterns] Multi-Layer Defense for LLM Applications

Comprehensive security framework for production LLM applications.

Security Layers

1. Input Sanitization

class InputSanitizer:
    INJECTION_PATTERNS = [
        r"ignore\s+(all\s+)?previous\s+instructions",
        r"you\s+are\s+now\s+(DAN|jailbroken)",
        r"bypass\s+(all\s+)?restrictions",
        # 10+ patterns for prompt injection
    ]
    
    def check(self, text: str) -> tuple[bool, Optional[str]]:
        for pattern in self.patterns:
            if pattern.search(text):
                return False, "Blocked: prompt injection detected"
        return True, None

2. PII Detection & Masking

class PIIDetector:
    PATTERNS = {
        "email": r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b",
        "phone": r"\b\d{3}[-.]?\d{3}[-.]?\d{4}\b",
        "ssn": r"\b\d{3}-\d{2}-\d{4}\b",
        "credit_card": r"\b\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}\b"
    }
    
    def mask(self, text: str) -> str:
        # Replace all PII with redaction markers
        for pii_type, pattern in self.PATTERNS.items():
            text = pattern.sub(self.MASK_MAP[pii_type], text)
        return text

3. LLM-as-Guard

# Use LLM to detect harmful content
guard_llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)
guard_prompt = """Analyze if this content is safe:
- No harmful instructions
- No personal attacks
- No illegal activities
Return: is_safe"""

4. Output Validation

class OutputValidator:
    def validate(self, output: str) -> tuple[str, list[str]]:
        warnings = []
        
        # Check for PII leakage
        pii_found = self.pii_detector.detect(output)
        if pii_found:
            output = self.pii_detector.mask(output)
            warnings.append(f"PII masked: {list(pii_found.keys())}")
        
        # Check for harmful content
        if self.contains_harmful_content(output):
            output = "[Response blocked: harmful content]"
            warnings.append("Harmful content blocked")
        
        return output, warnings

Security Audit Trail


πŸ’° 6. Cost Optimization Patterns

[73-langchain-cost-optimization-patterns] Intelligent Model Routing & Token Management

Production-ready cost optimization strategies for LLM applications.

Optimization Strategies

1. Intelligent Model Routing

class ModelRouter:
    def route(self, query: str, context: str) -> str:
        complexity = self.estimate_complexity(query, context)
        
        if complexity < 0.3:
            return "gpt-4o-mini"  # $0.15/1M tokens
        elif complexity < 0.7:
            return "gpt-4o"       # $2.50/1M tokens
        else:
            return "gpt-4"        # $30/1M tokens

2. Semantic Caching

class SemanticCache:
    def get(self, query: str) -> Optional[str]:
        # Embed query and search for similar cached responses
        query_embedding = self.embed(query)
        similar = self.vector_store.similarity_search(
            query_embedding, 
            k=1, 
            threshold=0.95  # 95% similarity
        )
        return similar[0] if similar else None

3. Token Budgeting

class TokenBudget:
    def enforce_budget(self, messages: list, max_tokens: int):
        total_tokens = sum(count_tokens(m) for m in messages)
        
        if total_tokens > max_tokens:
            # Trim oldest messages while keeping system prompt
            return self.trim_messages(messages, max_tokens)
        
        return messages

4. Performance Monitoring

class CostTracker:
    def record(self, model: str, input_tokens: int, output_tokens: int):
        cost = self.calculate_cost(model, input_tokens, output_tokens)
        self.metrics.update({
            "total_cost": self.metrics["total_cost"] + cost,
            "total_tokens": self.metrics["total_tokens"] + input_tokens + output_tokens,
            "requests": self.metrics["requests"] + 1
        })

Cost Savings


πŸ§ͺ 7. Testing & Evaluation Framework

[71-langchain-testing-patterns] Comprehensive Testing for LLM Applications

Production-grade testing patterns including unit, integration, and LLM-as-judge evaluation.

Testing Strategies

1. Unit Testing with Mocks

def test_rag_pipeline_with_mock():
    # Mock LLM and vector store
    mock_llm = Mock(spec=ChatOpenAI)
    mock_llm.invoke.return_value = AIMessage(content="Test response")
    
    mock_vectorstore = Mock(spec=Chroma)
    mock_vectorstore.similarity_search.return_value = [
        Document(page_content="Test doc", metadata={"source": "test.pdf"})
    ]
    
    # Test RAG pipeline
    pipeline = RAGPipeline(llm=mock_llm, vectorstore=mock_vectorstore)
    result = pipeline.query("test question")
    
    assert result.answer == "Test response"
    assert len(result.sources) == 1

2. Integration Testing with Real LLMs

@pytest.mark.integration
def test_rag_pipeline_integration():
    # Use real LLM and vector store
    llm = ChatOpenAI(model="gpt-4o-mini", temperature=0)
    vectorstore = Chroma(embedding_function=OpenAIEmbeddings())
    
    # Ingest test documents
    vectorstore.add_documents([
        Document(page_content="Python is a programming language")
    ])
    
    # Test end-to-end
    pipeline = RAGPipeline(llm=llm, vectorstore=vectorstore)
    result = pipeline.query("What is Python?")
    
    assert "programming" in result.answer.lower()

3. LLM-as-Judge Evaluation

class LLMJudge:
    def evaluate(self, question: str, answer: str, context: str) -> float:
        judge_prompt = f"""
        Evaluate this RAG response on a scale of 0-1:
        Question: {question}
        Context: {context}
        Answer: {answer}
        
        Criteria:
        - Accuracy: Does it correctly answer the question?
        - Relevance: Is it relevant to the context?
        - Completeness: Does it address all aspects?
        
        Return only a float score between 0 and 1.
        """
        
        score = self.judge_llm.invoke(judge_prompt)
        return float(score.content)

4. Regression Testing

# LangSmith evaluation datasets
from langsmith import Client

client = Client()

# Create evaluation dataset
dataset = client.create_dataset("rag_regression_tests")
client.create_examples(
    dataset_id=dataset.id,
    inputs=[
        {"question": "What is Python?"},
        {"question": "Explain RAG systems"}
    ],
    outputs=[
        {"expected": "programming language"},
        {"expected": "retrieval augmented generation"}
    ]
)

# Run evaluation
results = client.evaluate(
    rag_pipeline,
    data=dataset,
    evaluators=[accuracy_evaluator, relevance_evaluator]
)

Quality Metrics


πŸ“Š 8. Monitoring & Observability

[74-langchain-monitoring-patterns] Production Observability for LLM Applications

Complete monitoring stack with structured logging, metrics, and distributed tracing.

Observability Stack

1. Structured JSON Logging

class JSONFormatter(logging.Formatter):
    def format(self, record):
        log_obj = {
            "timestamp": datetime.now(timezone.utc).isoformat(),
            "level": record.levelname,
            "message": record.getMessage(),
            "module": record.module,
            "function": record.funcName
        }
        
        if hasattr(record, "extra_data"):
            log_obj.update(record.extra_data)
        
        return json.dumps(log_obj)

2. Metrics Collection

class MetricsCollector:
    def __init__(self):
        self.metrics = {
            "requests_total": 0,
            "errors_total": 0,
            "latency_sum": 0,
            "tokens_input": 0,
            "tokens_output": 0,
            "cache_hits": 0,
            "cache_misses": 0
        }
    
    def get_summary(self) -> dict:
        return {
            "total_requests": self.metrics["requests_total"],
            "error_rate": f"{self.error_rate:.2%}",
            "avg_latency_ms": round(self.avg_latency, 2),
            "cache_hit_rate": f"{self.cache_hit_rate:.2%}",
            "total_tokens": self.metrics["tokens_input"] + self.metrics["tokens_output"]
        }

3. Distributed Tracing (LangSmith)

from langsmith import traceable

@traceable(name="rag_pipeline_execution")
def rag_pipeline(query: str) -> dict:
    # Automatic tracing of:
    # - LLM calls
    # - Vector store queries
    # - Token usage
    # - Latency
    # - Errors
    pass

4. Health Checks

@app.get("/health")
async def health():
    checks = {
        "llm": await check_llm_connection(),
        "vectorstore": await check_vectorstore(),
        "cache": await check_cache(),
        "database": await check_database()
    }
    
    status = "healthy" if all(checks.values()) else "degraded"
    
    return {
        "status": status,
        "checks": checks,
        "timestamp": datetime.now().isoformat()
    }

Monitoring Dashboards


πŸ” 9. RAG with FAISS - Document Retrieval System

[76-RAG-FAISS-test] Lightweight RAG with FAISS Vector Search & OpenAI Embeddings

A lightweight document retrieval system demonstrating fundamental RAG patterns with FAISS for fast semantic search over PDF and text documents.

Core Features

Tech Stack

# Vector Search
FAISS 1.11.0 (IndexFlatIP for cosine similarity)

# Embeddings
OpenAI text-embedding-3-small (1536 dimensions, $0.02/1M tokens)

# Document Processing
PyMuPDF 1.26.1 (PDF text extraction)

# Core Libraries
numpy 2.3.1 + python-dotenv + tqdm

RAG Pipeline

Documents (PDF/TXT) 
    ↓
Text Extraction (PyMuPDF)
    ↓
Chunking (500 chars, 100 overlap)
    ↓
Embedding Generation (OpenAI, batches of 100)
    ↓
L2 Normalization (for cosine similarity)
    ↓
FAISS Indexing (IndexFlatIP)
    ↓
Query β†’ Embedding β†’ Top-K Search β†’ Scored Results

Key Implementation

Embedding with L2 Normalization:

def embed_texts(texts: List[str]) -> np.ndarray:
    client = openai.OpenAI()
    embs = []
    for i in range(0, len(texts), 100):
        resp = client.embeddings.create(input=texts[i:i+100], model="text-embedding-3-small")
        embs.extend([d.embedding for d in resp.data])
    arr = np.array(embs, dtype="float32")
    faiss.normalize_L2(arr)  # L2 normalize for cosine via inner product
    return arr

FAISS Indexing:

index = faiss.IndexFlatIP(embedding_dim)  # Inner Product = Cosine after L2 norm
index.add(embeddings)
faiss.write_index(index, "faiss_index/index.faiss")

Retrieval:

def retrieve(query: str, k: int = 3) -> List[Dict]:
    index, texts, meta = load_vector_db()
    q_emb = embed_texts([query])
    D, I = index.search(q_emb, k)  # distances & indices
    return [{"text": texts[i], "meta": meta[i], "score": float(D[0][rank])} 
            for rank, i in enumerate(I[0])]

Performance Metrics

Use Cases

Technical Highlights


πŸŽ“ Additional Advanced Projects

RAG & Document Processing

Multi-Agent Systems

LangGraph Workflows

Production Patterns

AI Agents & Tools

Full-Stack Applications

MLOps & Pipeline Engineering


πŸ› οΈ Technical Skills

AI/ML Frameworks

LangChain β€’ LangGraph β€’ LangSmith β€’ CrewAI β€’ AutoGen
OpenAI Agents SDK β€’ Hugging Face β€’ Ollama

LLM Providers

OpenAI (GPT-4, GPT-4o, GPT-4o-mini)
Anthropic (Claude 3.5 Sonnet)
Google (Gemini 2.5 Flash, Gemini 2.0)
Meta (Llama 3.3, Llama 3.1)
DeepSeek β€’ Groq β€’ Together AI

Vector Databases

Qdrant β€’ Chroma β€’ FAISS β€’ Pinecone

Backend Frameworks

FastAPI β€’ Django β€’ Django REST Framework
Flask β€’ Uvicorn β€’ Gunicorn

Frontend Technologies

React 18 β€’ TypeScript β€’ Vite β€’ Next.js
Tailwind CSS β€’ Shadcn/ui β€’ Streamlit β€’ Gradio

Databases

PostgreSQL β€’ SQLite β€’ MongoDB β€’ Redis
ChromaDB β€’ Supabase

DevOps & Tools

Docker β€’ Docker Compose β€’ Git β€’ GitHub Actions
UV (Python package manager) β€’ Poetry β€’ pip
pytest β€’ Playwright β€’ Postman

Cloud & Services

AWS β€’ Cloudflare Workers β€’ Vercel β€’ Netlify
Supabase β€’ Firebase β€’ Stripe β€’ Resend

πŸ“ˆ Best Practices Demonstrated

Clean Code Principles

Testing Strategy

Security Practices

Production Readiness

API Design


πŸ’Ό Real-World Impact & Results

Production Deployments

Performance Metrics


🎯 What I Can Bring to Your Team

Immediate Value

Long-Term Impact


πŸ“š Complete Project Catalog

πŸ—οΈ Full-Stack Applications

18. AI-Powered HR Management System

Technologies: Django 4.2, Groq API, Meta Llama 3 70B, Bootstrap 5, PostgreSQL

Production HR platform with AI-powered candidate screening, complete CRUD operations, secure CV upload, and score-based shortlisting (0-100 scale). Features real-time candidate evaluation, JSON response parsing, and comprehensive applicant workflow system.

Key Features: AI Integration, Job Management, Application Tracking, File Management, Responsive Design

17. Django-React Full-Stack Application

Technologies: Django REST Framework, React 18, Vite, JWT, Tailwind CSS, PostgreSQL

Modern SPA with secure JWT authentication, access/refresh token rotation, CORS configuration, and comprehensive input validation. Production-ready with protected routes and middleware authentication.

Key Features: JWT Token System, Password Security, RESTful API, React Router, Shadcn/ui Components

47. DocuChat AI - Full-Stack AI SaaS Platform

Technologies: React 18, TypeScript, Supabase, Stripe, OpenAI GPT-4, n8n, RAG

Complete production SaaS with document chat, YouTube transcript extraction, subscription management, vector embeddings, and semantic search. Deployed with Stripe integration and usage limits.

Key Features: Document Chat with RAG, Vector Embeddings, Stripe Subscriptions, n8n Workflows, User Management


πŸ€– AI Agents & Multi-Agent Systems

19. AI-Powered Meeting System

Technologies: FastAPI, OpenAI Whisper, GPT-4, Playwright, WebSockets, OAuth 2.0

Comprehensive meeting automation with real-time transcription, AI analysis, multi-platform support (Zoom, Meet, Teams), bot recorder, and 100% Python implementation without platform SDKs.

Key Features: Real-time Transcription, AI Summaries, Multi-Platform Support, WebSockets, OAuth Integration

20. AI Data Generator Agent

Technologies: LangChain, Google Gemini 2.5 Flash, Pydantic, UV

Intelligent agent for generating realistic sample user data with natural language interface, structured JSON output, smart parameter inference, and file operations.

Key Features: Natural Language Interface, Structured Output, File Operations, Customizable Data

22. Multi-Source Research Agent

Technologies: LangGraph, Google Gemini, Bright Data, Reddit API, Pydantic

Multi-source research agent leveraging Google, Bing, and Reddit with unified analysis, real-time progress tracking, and comprehensive synthesis.

Key Features: Multi-Source Intelligence, LangGraph Workflow, Structured Data Processing, Real-time Tracking

23. Multi-LLM Evaluation System

Technologies: OpenAI, Google Gemini, Ollama, LangChain

Real-time evaluation system comparing multiple LLM responses with side-by-side analysis and performance metrics.

Key Features: Multi-Model Comparison, Real-time Evaluation, Performance Metrics

24. Advanced Multi-Model AI Career Assistant

Technologies: Google Gemini (4 models), Pushover, Gradio, UUID

Sophisticated career assistant with 4-model rotation system, smart rate limiting, session tracking, and real-time notifications.

Key Features: Multi-Model Rotation, Session Tracking, Pushover Notifications, Career Showcase

25. Multi-Model Automated SDR System

Technologies: OpenAI Agents SDK, DeepSeek, Gemini, Llama3.3, Resend

Automated sales development with multi-model rotation, email generation, input guardrails, and complete email workflow automation.

Key Features: Multi-Model Agents, Email Automation, Smart Rotation, Guardrails, Resend Integration


🎭 CrewAI Multi-Agent Systems

27. Multi-Agent Debate System

Technologies: CrewAI 1.8+, OpenAI GPT, YAML Configuration

Structured debate system with specialized agents, context-aware rebuttals, and objective moderation.

Key Features: Multi-Agent Architecture, Structured Debate Flow, Real-time Tracing, YAML Configuration

28. Real-Time Financial Analysis System

Technologies: CrewAI, SerperDevTool, OpenAI GPT

Financial research system with real-time data integration, professional reporting, and source verification.

Key Features: Real-Time Data, Multi-Agent Architecture, Professional Reporting, Source Verification

29. Intelligent Investment Analysis System

Technologies: CrewAI, ChromaDB, SQLite, SerperDevTool, Pushover

Investment analysis with hierarchical management, persistent memory (short-term, long-term, entity), and smart notifications.

Key Features: Multi-Agent Architecture, Advanced Memory Systems, Hierarchical Process, Real-Time Intelligence

30. AI-Powered Code Generation System

Technologies: CrewAI, Docker Code Interpreter

Code generation system with Docker execution, mathematical computations, and optimized code output.

Key Features: Code Generation, Docker Interpreter, Mathematical Computations

31. AI Multi-Agent Software Engineering System

Technologies: CrewAI, Multiple Specialized Agents

Complete application development with specialized agents for different engineering roles and production-ready code generation.

Key Features: Specialized Agents, Complete App Development, Production-Ready Code


πŸ”„ LangGraph Workflows & Patterns

32. Intelligent Chat System

Technologies: LangGraph, Gradio, State Management

Chat system with graph-based workflows, state management, and interactive Gradio interface.

Key Features: State Management, Graph Workflows, Gradio Interface

33. Advanced AI Search System

Technologies: LangGraph, Web Search, Pushover

AI search with web integration, push notifications, and persistent memory.

Key Features: Web Search, Push Notifications, Persistent Memory, Tool Integration

34. Advanced Web Scraping System

Technologies: LangGraph, Playwright

Web scraping with anti-bot bypass, fresh browser contexts, and real-time content extraction.

Key Features: Anti-Bot Bypass, Browser Automation, Real-time Extraction

35. Multi-Agent Personal Co-worker

Technologies: LangGraph, Worker/Evaluator Agents

Personal assistant with worker/evaluator agents, structured outputs, and quality assurance loops.

Key Features: Worker/Evaluator Agents, Structured Outputs, Quality Assurance

59. LangGraph Core Concepts and Patterns

Technologies: LangGraph, StateGraph, Mermaid Visualization

Comprehensive examples covering StateGraph fundamentals, state management patterns, reducer functions, and production-ready workflow patterns.

Key Features: StateGraph Fundamentals, State Management, Graph Visualization, Conditional Routing

60. LangGraph Agent Handoffs

Technologies: LangGraph, Multi-Agent Coordination

Agent specialization patterns with intelligent triage, seamless handoffs, and context preservation.

Key Features: Agent Specialization, Intelligent Triage, Seamless Handoffs, Context Preservation

61. LangGraph Cycles and Loops

Technologies: LangGraph, MemorySaver, Human-in-the-Loop

Advanced workflow patterns with self-correcting code generation, iterative research, and human-in-the-loop approval.

Key Features: Self-Correcting Workflows, Iterative Research, Human-in-the-Loop, State Persistence

62. LangGraph Checkpointing and Persistence

Technologies: LangGraph, SQLite, In-Memory Checkpointing

State management mastery with checkpointing, SQLite persistence, conversation branching, and time travel.

Key Features: In-Memory Checkpointing, SQLite Persistence, State Inspection, Time Travel

63. LangGraph Tool-Calling Agents

Technologies: LangGraph, Custom Tools

Building intelligent tool-using systems with custom tool development, parallel execution, and conditional routing.

Key Features: Tool Creation, Multi-Tool Workflows, Error Handling, Parallel Execution

64. LangGraph Supervisor Architecture

Technologies: LangGraph, Supervisor Pattern

Multi-agent orchestration with intelligent task routing, specialized coordination, and quality control cycles.

Key Features: Intelligent Task Routing, Specialized Coordination, Workflow Termination Detection

65. LangGraph Parallel Agents

Technologies: LangGraph, Fan-Out/Fan-In

Advanced concurrent execution with fan-out/fan-in architecture, map-reduce processing, and performance optimization.

Key Features: Fan-Out/Fan-In Architecture, Map-Reduce Processing, Parallel Execution

66. LangGraph Agent Communication

Technologies: LangGraph, Blackboard Pattern

Advanced coordination patterns with message passing, shared state fields, and collaborative workflows.

Key Features: Message Passing, Shared State Fields, Blackboard Pattern, Iterative Refinement

67. LangGraph Hierarchical Agents

Technologies: LangGraph, Multi-Level Supervisor

Multi-level supervisor architecture with CEO routing, department subgraphs, and organizational structure modeling.

Key Features: CEO Supervisor Routing, Department Subgraphs, Modular Design, Scalable Systems


✈️ AutoGen Multi-Agent Systems

36. Multi-Agent Airline Assistant

Technologies: Microsoft AutoGen, Tool Integration, Database Connectivity

Airline assistant with tool integration, database connectivity, and streaming responses.

Key Features: Tool Integration, Database Connectivity, Streaming Responses

37. Multi-Modal Image Analysis System

Technologies: AutoGen, OpenAI GPT-4o-mini, Pydantic

Vision capabilities with structured outputs, Pydantic validation, and multi-modal processing.

Key Features: Vision Capabilities, Structured Outputs, Pydantic Validation

38. Multi-Agent Tool Integration System

Technologies: AutoGen, LangChain Tools, Google Serper

Tool integration with LangChain tools, Google Serper search, and advanced workflow orchestration.

Key Features: LangChain Tools, Google Serper, File Management, Workflow Orchestration

39. Multi-Agent RoundRobin Conversation System

Technologies: AutoGen, RoundRobin Pattern

Iterative feedback loops with structured dialogue management and approval-based termination.

Key Features: RoundRobin Pattern, Iterative Feedback, Structured Dialogue, Approval Termination

40. AutoGen with Model Context Protocol (MCP)

Technologies: AutoGen, MCP Server Integration, JSON-RPC

MCP server integration with dynamic tool loading and JSON-RPC protocol communication.

Key Features: MCP Server Integration, Dynamic Tool Loading, JSON-RPC Protocol

41. AutoGen Core Framework Fundamentals

Technologies: AutoGen Core, Custom Agent Development

Custom agent development with message routing, runtime management, and LLM integration patterns.

Key Features: Custom Agent Development, Message Routing, Runtime Management

42. Multi-Agent Rock Paper Scissors Game

Technologies: AutoGen Core, OpenAI, Ollama

Hybrid AI models (OpenAI + Ollama) with inter-agent communication and intelligent game arbitration.

Key Features: Hybrid AI Models, Inter-Agent Communication, Game Arbitration

43. AutoGen Core Distributed Agents

Technologies: AutoGen Core, gRPC, Distributed Runtime

gRPC communication with distributed agent runtime and remote orchestration.

Key Features: gRPC Communication, Distributed Runtime, Multi-Agent Decision Making

44. AutoGen Agent-to-Agent Communication System

Technologies: AutoGen Core, gRPC, Dynamic Agent Creation

Dynamic agent creation with collaborative intelligence and multi-agent ecosystem management.

Key Features: Dynamic Agent Creation, Collaborative Intelligence, gRPC Communication


πŸ”Œ Model Context Protocol (MCP) Systems

45. MCP OpenAI Multi-Tool Agent System

Technologies: OpenAI Agents, MCP, Multi-Server Integration

Multi-server integration with web browsing automation and sandboxed file operations.

Key Features: Multi-Server Integration, Web Browsing, Sandboxed File Operations

46. MCP Investment Account Management System

Technologies: OpenAI Agents, MCP, FastAPI, SQLite, Polygon.io

AI-powered trading automation with real-time market data, persistent memory, and comprehensive portfolio management.

Key Features: Multi-Server MCP, AI Trading, Real-Time Market Data, Portfolio Management


🌀️ MCP Weather Servers

MCP Weather Servers (TypeScript & Python)

Technologies: FastMCP, TypeScript, Node.js, National Weather Service API

Dual implementation with JSON-RPC 2.0 communication, OAuth 2.0 authentication, Cloudflare Workers deployment, and remote MCP connections.

Key Features: Dual Implementation, MCP Protocol, Weather Data, AI Assistant Integration, OAuth 2.0


🦜 LangChain Learning Path

48. LangChain Fundamentals

Technologies: LangChain, LCEL, OpenAI, Anthropic

Complete learning guide with LCEL, multi-model support, prompt engineering, and output parsers.

Key Features: LCEL, Multi-Model Support, Prompt Engineering, Output Parsers, Streaming & Batching

50. LangChain Advanced Chain Patterns

Technologies: LangChain, LCEL Patterns

Advanced patterns with parallel execution, passthrough & assignment, conditional branching, and debugging techniques.

Key Features: LCEL Patterns, Parallel Execution, Conditional Branching, RunnableParallel

51. LangChain Document Loaders

Technologies: LangChain, PDF Parsing, Web Scraping

Complete guide with text file loading, web content scraping, directory processing, and metadata extraction.

Key Features: Text Loading, Web Scraping, PDF Parsing, Metadata Extraction

52. LangChain Text Splitters

Technologies: LangChain, Recursive Splitting

Text splitting strategies with recursive character splitting, markdown header splitting, and chunk optimization.

Key Features: Recursive Splitting, Markdown Splitting, Code Splitting, Chunk Optimization

53. LangChain Embeddings

Technologies: LangChain, OpenAI Embeddings, Hugging Face, Ollama

Embeddings guide with OpenAI, Hugging Face, Ollama, similarity search, and semantic search applications.

Key Features: OpenAI Embeddings, Hugging Face, Ollama, Similarity Search, Vector Mathematics

54. LangChain Vector Stores

Technologies: LangChain, Chroma, Vector Database

Vector store guide with Chroma database, similarity search, metadata filtering, and MMR search.

Key Features: Chroma Vector Database, Similarity Search, Metadata Filtering, MMR Search

55. LangChain RAG Pipeline

Technologies: LangChain, RAG, Similarity Search

Complete RAG implementation with retrieval-augmented generation, source attribution, and structured outputs.

Key Features: RAG Pipeline, Similarity Search, Source Attribution, Structured Outputs

57. LangChain Memory

Technologies: LangChain, SQLite, Conversation Memory

Memory implementation with basic patterns, multi-session management, message trimming, and SQLite persistence.

Key Features: Basic Memory, Multi-Session, Message Trimming, SQLite Persistence


πŸ“Š LangSmith & Observability

69. LangSmith Production Observability

Technologies: LangSmith, Automatic Tracing

Production observability with automatic tracing, custom run naming, metadata-driven observability, and performance tracking.

Key Features: Automatic Tracing, Custom Run Naming, Metadata-Driven, Performance Tracking


🧠 Advanced RAG & Document Processing

21. Advanced RAG System with Event-Driven Architecture

Technologies: Google Gemini 2.5 Flash, Inngest, Qdrant, Streamlit

Event-driven RAG with Google Gemini, Inngest workflows, Qdrant vector database, and Streamlit frontend.

Key Features: Google Gemini Integration, Event-Driven Architecture, Vector Database, Real-time Processing


πŸ“š Python Fundamentals & Learning Modules

01-14. Python Learning Modules

Technologies: Python 3.x, Core Programming Concepts

14 structured learning modules covering:

Key Features: Progressive Learning, Hands-on Exercises, Best Practices, Comprehensive Coverage


οΏ½ Getting Started

Prerequisites

# Python 3.12+
python --version

# UV package manager (recommended)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or use pip
pip install uv

Quick Start Example

# Clone repository
git clone https://github.com/yourusername/python_projects.git
cd python_projects

# Navigate to a project
cd 75-langchain-production-API

# Install dependencies with UV
uv sync

# Configure environment
cp .env.example .env
# Edit .env with your API keys

# Run the application
uv run uvicorn app.main:app --reload --port 8000

# Access API
curl http://localhost:8000/health

Environment Variables

# LLM Providers
OPENAI_API_KEY=sk-xxx
ANTHROPIC_API_KEY=sk-ant-xxx
GOOGLE_API_KEY=AIzaSyxxx

# Observability
LANGSMITH_API_KEY=lsv2_pt_xxx
LANGCHAIN_TRACING_V2=true
LANGSMITH_PROJECT=your-project

# Application
APP_ENV=development
LOG_LEVEL=INFO
RATE_LIMIT=20/minute

πŸ“Š Project Statistics


🎯 Use Cases Demonstrated

Enterprise AI Applications

Production Patterns

Advanced Techniques


LinkedIn: linkedin.com/in/daniel-angel-web3
GitHub: github.com/DanielGeek

Open to: Full-time positions | Contract work | Consulting opportunities
Location: Remote (Worldwide) | Hybrid
Availability: Open to discuss


πŸ“„ License

This portfolio is for demonstration and educational purposes. Individual projects may have their own licenses.


Built with ❀️ using Python, LangChain, LangGraph, and modern AI/ML technologies

Last Updated: April 2026