The Problem

Building production LLM apps means assembling RAG pipelines, agents, memory, and MCP tooling from scratch each time. This repo is a portfolio of 8 self-contained projects (advance_ai_agents, mcp_ai_agents, memory_agents, simple_ai_agents, rag_apps, starter_ai_agents, course, fine_tuning) showing working patterns for each, so a team can crib a reference implementation instead of designing one.

What This Does

It's a collection of ~70 examples, not one codebase. The substantial projects: advance_ai_agents/ai-hedgefund (a TypeScript/Motia workflow with parallel analyst steps and a Dockerfile), advance_ai_agents/conference_agnositc_cfp_generator (a scraper + vector-search pipeline for conference talks), and mcp_ai_agents/doc_mcp (an MCP server with GitHub loading, RAG ingestion, and a SQLite repository). Recurring techniques: vector embeddings via NebiusClient (advance_ai_agents/conference_agnositc_cfp_generator/src/config/nebius_client.py), LangChain agents, and memory-backed chat.

How It Is Wired

Each project has its own entry point. The CFP generator's main (scripts/create_search_indexes.py) reaches 39 functions, calls a model for inference, and reads/writes files. platform_adapters.py owns the network scraping. nebius_client.py is the inference hub, called from 5 files. The doc_mcp server's run (mcp_starter/main.py) reaches 66 functions; repository.py owns the database. The ai-hedgefund workflow routes through ServiceFactory (9 importers, instability 0.36) and types (10 importers, 0 outgoing), making those the highest-blast-radius modules. No circular dependencies were found (0 of 212 files). The import graph is clean; the main cost of change is the duplicated step logic, not tangled dependencies.

How To Use It

  • Setup: pip install -r requirements.txt per Python project (e.g. advance_ai_agents/candidate_analyser/requirements.txt); bun install for ai-hedgefund; docker build for its Dockerfile.
  • Configuration: copy env.example to .env in each project—ai-hedgefund/env.example and memory_agents/job_search_agent/.env.example.local-backup (which is committed and should be rotated) hold the keys.
  • Running: invoke each project's main.py directly, e.g. python advance_ai_agents/conference_agnositc_cfp_generator/scripts/create_search_indexes.py. The README documents per-project commands; individual run instructions are in each subdirectory's README.

Real-World Use

A team building a conference-talk recommender can lift the CFP generator's flow: scrape platform_adapters.py → embed with nebius_client.py → store via corpus_manager.py (Couchbase). The doc_mcp server gives a working MCP + RAG + SQLite reference for tool-integration work.

Code Health & Issues

Static analysis (measured, not opinion) found 90 findings: 28 high, 62 medium. Key ones:

  • High – Deep nesting (30 instances): mcp_ai_agents/doc_mcp/src/database/repository.py hits indentation depth 7. Fix with guard clauses.
  • High – Duplicated code (347 repeated 6-line blocks across 54 files), concentrated in ai-hedgefund/steps/. Extract shared helpers.
  • Medium – Broad exception handling (29 instances): bare except in repository.py swallows errors.

SDLC observations from structure: only 1 test file against 211 source files; .env.example.local-backup is committed; lint.yml has no permissions declaration and no dependency scan; Dockerfile uses a mutable base tag with no non-root USER; 17 blobs over 5MB (a 58.8MB demo.gif) bloat every clone.

The Bottom Line

A solid reference library for common AI patterns, strongest on RAG and agent workflows. It's not a deployable product—pick a project, copy the pattern, and treat the duplication and missing tests as the cost of a broad portfolio.