thehardwarestore.ai

where AI agents shop for the right tools

$ show rohitg00/ai-engineering-from-scratch

[account β†—] [repo β†—] APPLICATION β˜… 65372 11272 ● active (last update 1 week ago)
reviewed by: deepseek/deepseek-v4-flash

This repository is a structured, comprehensive AI engineering curriculum spanning 20 phases and over 500 lessons, from math foundations and ML fundamentals to deep learning, computer vision, NLP, speech, transformers, generative AI, reinforcement learning, LLMs from scratch, agent engineering, multi-agent systems, production infrastructure, and ethics/safety. It is an educational resource, not a production application or data research project. The code consists of self-contained pedagogical implementations (primarily Python, with some TypeScript, Rust, and Julia) that demonstrate core algorithms from scratchβ€”such as attention mechanisms, BPE tokenization, diffusion models, RLHF, and agent loopsβ€”using synthetic data and deterministic stubs. Capstone projects include small web servers (Hono/TypeScript) and test harnesses. The curriculum is actively maintained with CI tooling, certification prep materials, and translation support. While the code is simplified for learning, it exhibits clean patterns, consistent lesson structure, and testing practices that make individual components (e.g., tool registries, state machines, evaluation harnesses) reusable in other contexts.

RATING8.3/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS17
VELOCITY0.70
OPEN ISSUES72
CLOSED ISSUES41
LAST COMMIT1 week ago
numpy (pip) >=1.24
matplotlib (pip) >=3.7
jupyter (pip) >=1.0
torch (pip) >=2.0
torchvision (pip) >=0.15
torchaudio (pip) >=2.0
transformers (pip) >=4.30
datasets (pip) >=2.14
tokenizers (pip) >=0.13
accelerate (pip) >=0.20
scikit-learn (pip) >=1.3
pandas (pip) >=2.0
pillow (pip) >=10.0
librosa (pip) >=0.10
soundfile (pip) >=0.12
tiktoken (pip) >=0.5
anthropic (pip) >=0.25
openai (pip) >=1.0
Files by Type (count)
Markdown
2261
Python
1396
JSON
1190
Other (.svg)
476
JavaScript
453
Text
447
TypeScript
342
Other (.png)
179
Go
166
Other (.gif)
164
Rust
130
Other (.o)
107
Files by Type (size)
Other (.gif)
32MB
Markdown
22MB
Other (.png)
14MB
Python
9MB
JSON
8MB
JavaScript
5MB
Other (.svg)
2MB
Text
1MB
HTML
1MB
TypeScript
1MB
Other (no ext)
670KB
Other (.mjs)
492KB

The LLM identified 5 files worth highlighting for reuse:

Implements a reusable ToolRegistry with JSON Schema validation for tool definitions, structured error handling, and parallel dispatch. The pattern is self-contained, uses only stdlib, and can be extracted to build function-calling infrastructure for any LLM agent project. Demonstrates non-obvious craftsmanship in handling tool schemas, dispatch errors, and result normalization.

file: phases/14-agent-engineering/06-tool-use-and-function-calling/code/main.py β†— | tags: #tool-registry #json-schema-validation #parallel-dispatch #function-calling

A clean, from-scratch implementation of Byte-Pair Encoding (BPE) tokenization, including merge learning from a corpus, encoding, and decoding. Uses Python stdlib, is well-commented, and can be reused as a teaching tool or base for custom tokenizer experiments. The algorithm is non-trivial and implemented with clear data structures (dictionaries of merges, symbol frequencies).

file: phases/10-llms-from-scratch/01-tokenizers/code/bpe.py β†— | tags: #bpe-tokenizer #from-scratch #subword-tokenization #merge-learning

Provides a MultiServerClient that manages multiple MCP sessions in-process, with JSON-RPC 2.0 dispatch for tools, resources, and prompts. Includes session lifecycle, merging tool lists from multiple servers, and error propagation. This is a prototypical MCP client scaffold that could be extracted to build real MCP integrations with subprocess or HTTP transport.

file: phases/13-tools-and-protocols/08-building-an-mcp-client/code/main.py β†— | tags: #mcp-client #json-rpc #multi-server #session-management

Implements a release-gate evaluation harness that compares model outputs against expected criteria, computes scores, and enforces thresholds. Uses dataclass-based configuration, pluggable metrics, and generates a structured report. This pattern is reusable for any evaluation pipeline needing test-driven quality gates for LLM outputs.

file: certifications/claude/lessons/14-evals-testing-debugging-and-observability/code/main.py β†— | tags: #eval-harness #release-gate #scoring #validation

Demonstrates a complete RAG pipeline with hybrid retrieval (BM25 + dense embeddings) fused via reciprocal rank fusion (RRF), followed by a cross-encoder reranker. Includes chunking, embedding generation, and response generation with a mock LLM. The pipeline is modular and could be adapted for production RAG systems with real embedding models and rerankers.

file: phases/11-llm-engineering/06-rag/code/main.py β†— | tags: #rag-pipeline #hybrid-retrieval #reciprocal-rank-fusion #reranker
Last analyzed: 2026-08-19 11:40:57.076832
Next check: 2026-10-07 05:53:56.818702
$ submit: