This repository provides a hands-on approach to building AI agents from the ground up. By using local LLMs and examining core concepts, users will gain a deep understanding of LLM mechanics and agent architecture, enabling them to make informed decisions when utilizing frameworks.
AI Agents From Scratch provides a comprehensive guide to building artificial intelligence (AI) agents locally, utilizing local Large Language Models (LLMs) without relying on external frameworks. This project emphasizes understanding the core principles behind AI agents, enabling users to grasp how these systems function at a fundamental level.
The repository is structured to facilitate learning through practical implementation, with a focus on:
Users will journey through various examples that incrementally build knowledge and expertise, covering topics such as:
Basic LLM Interaction
node intro/intro.js
Using Proprietary Models (Optional)
node openai-intro/openai-intro.js
System Prompts & Agent Specialization
node translation/translation.js
Reasoning & Problem Solving
node think/think.js
Parallel Processing
node batch/batch.js
Streaming Responses
node coding/coding.js
Function Calling and Tool Usage
node simple-agent/simple-agent.js
Persistent Memory Management
node simple-agent-with-memory/simple-agent-with-memory.js
Reasoning and Acting Patterns (ReAct)
node react-agent/react-agent.js
The repository includes detailed explanations and documentation for each example. Each folder features:
By engaging with this repository, users will gain insights into:
The repository encourages contributions and welcomes suggestions for enhancements, aiming to serve as a robust learning resource for anyone interested in mastering AI agents. Engage with practical code and conceptual discussions to deepen knowledge in AI agent development.
No comments yet.
Sign in to be the first to comment.