Skip to content

subho004/ai-forge-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ AI Forge Lab

AI Forge Lab Header

A monorepo of cutting-edge AI research, autonomous agents, and experimental LLM demos.

License: MIT Projects Git Submodules Python FastAPI PRs Welcome GitHub stars


Welcome to the AI Forge Lab β€” a centralized hub for projects exploring the boundaries of LLM reasoning, autonomous workflows, and innovative RAG architectures. Each project lives in its own GitHub repository and is wired into this lab as a git submodule, so you can clone everything at once or pick a single project to dive into.

πŸ“š Table of Contents


πŸš€ Featured Projects

Project names below match their upstream GitHub repository names. Click any project to open its dedicated repo.

Project Description Key Tech
openevolve-guide Framework for building self-evolving AI agents that improve their own code. Python, LLMs, Process Isolation
auto-research-guide Automated technical and scientific research workflows powered by AI. LangChain, Research APIs
finetuning-guide Comprehensive reference for fine-tuning LLMs (LoRA, QLoRA, DPO, RLHF). PEFT, bitsandbytes, TRL
mcp-chatbot A modular chatbot implementation using the Model Context Protocol (MCP). LangChain, MCP, Groq
podcast-automate End-to-end automation for podcast production, from script to speech. Maya1, TTS, LLMs
a2a-guide Action-to-Action guide: practical patterns for chaining agent actions. Examples, Guides
vectorless-llm-evals Evaluating RAG systems using PageIndex for hierarchical, vectorless retrieval. PageIndex, LangSmith
graph-llms Integrating Knowledge Graphs (Neo4j) with LLM reasoning for complex queries. Neo4j, Cypher, Groq
attention-to-gpt-scratch Build, deconstruct, and train decoder-only Generative Pre-trained Transformers. PyTorch, tiktoken, GPT-2
agentic-deep-reader Multi-agent, multi-pass pipeline for extracting compliance evidence from long PDFs. FastAPI, Groq, Datalab OCR, BM25
bm25-rlm-agent In-memory deep-research agent over a local markdown corpus using recursive decomposition. FastAPI, LangChain, LangGraph, OpenAI
llm-rpg-world-simulator Interactive RPG sandbox with Gemini world-transition engine, memory reflection, and emergent economy. FastAPI, Gemini, NetworkX, Cytoscape.js
mem-git-agent Self-contained MemGPT agent with tiered memory and versioned "memory git". FastAPI, SQLite, NumPy, OpenAI, MarkItDown
turboquant-personal-ai Folder-based personal AI with perfect memory via TurboVec quantization and hybrid retrieval. FastAPI, SQLite, TurboVec, FAISS, OpenAI
okf-knowledge-graph-wiki Ingests heterogeneous files, analyzes dependencies, and builds an AI-queryable OKF wiki. Python 3.14, FastAPI, Gemini 3, SQLite, sqlite-vec, NetworkX
omni-agent Agentic research harness executing parallel sub-agents with planning and self-correction. Python 3.14, FastAPI, Gemini, SQLAlchemy, NetworkX, MarkItDown
llm-distillation-guide A hands-on guide to LLM knowledge distillation: using Llama-3 (via Groq) to label synthetic data and fine-tuning a 1000x smaller RoBERTa student. Llama-3, Groq, RoBERTa, PyTorch, Hugging Face
rlm-due-diligence-agents Autonomous investment analyst leveraging LangChain Deep Agents & RLM-style dynamic workflows to run end-to-end technical, market, and financial due diligence with human-in-the-loop validation. LangChain, Deep Agents, RLM, Python
omni-video-agent End-to-end automated video generation: researches the web, writes a storyboard, generates clips (Veo 3.1) and music (Lyria 3), and compiles the final video. LangChain Deep Agents, Gemini (Veo 3.1, Lyria 3, Nano Banana 2), crawl4ai, MarkItDown, FastAPI, SQLite, ffmpeg

Local paths: each repo is mounted in this monorepo at a submodule path. See the mapping in Working with Individual Submodules.


πŸ› οΈ Getting Started

This repository uses Git Submodules to manage individual projects.

1. Clone with all submodules

git clone --recursive https://github.com/subho004/ai-forge-lab.git
cd ai-forge-lab

2. Already cloned? Initialize submodules

git submodule update --init --recursive

3. Explore projects

Each project resides in its own directory and has a dedicated README.md with installation and usage instructions.


πŸ“¦ Working with Individual Submodules

Each project's display name = its GitHub repo name. The table below maps that repo (and URL) to the local submodule path inside this monorepo.

GitHub Repository URL Local Path
openevolve-guide https://github.com/subho004/openevolve-guide openevolve-guide
auto-research-guide https://github.com/subho004/auto-research-guide auto-research-guide
finetuning-guide https://github.com/subho004/finetuning-guide finetuning-guide
mcp-chatbot https://github.com/subho004/mcp-chatbot mcp-chatbot
podcast-automate https://github.com/subho004/podcast-automate podcast-automate
a2a-guide https://github.com/subho004/a2a-guide a2a-guide
vectorless-llm-evals https://github.com/subho004/vectorless-llm-evals vectorless-llm-evals
graph-llms https://github.com/subho004/graph-llms graph-llms
attention-to-gpt-scratch https://github.com/subho004/attention-to-gpt-scratch gpt-scratch
agentic-deep-reader https://github.com/subho004/agentic-deep-reader long-document-context
bm25-rlm-agent https://github.com/subho004/bm25-rlm-agent rlm-test
llm-rpg-world-simulator https://github.com/subho004/llm-rpg-world-simulator world-simulator
mem-git-agent https://github.com/subho004/mem-git-agent memgpt-test
turboquant-personal-ai https://github.com/subho004/turboquant-personal-ai turboquant-test
okf-knowledge-graph-wiki https://github.com/subho004/okf-knowledge-graph-wiki okf+llm wiki
omni-agent https://github.com/subho004/omni-agent harness-ultimate
llm-distillation-guide https://github.com/subho004/llm-distillation-guide LLM-distillation-guide
rlm-due-diligence-agents https://github.com/subho004/rlm-due-diligence-agents deep-agents-due-diligence
omni-video-agent https://github.com/subho004/omni-video-agent agentic-video-generator

To initialize or update a single submodule after cloning:

# Example: agentic-deep-reader lives at ./long-document-context
git submodule update --init long-document-context
cd long-document-context
git pull origin main
cd ..

Paths containing special characters (e.g. okf+llm wiki) must be quoted: git submodule update --init "okf+llm wiki"

Project deep-dives

openevolve-guide β€” Self-evolving AI agents (openevolve-guide)

Framework for building self-evolving AI agents that improve their own code.

Key tech: Python, LLMs, Process Isolation.

auto-research-guide β€” Automated research workflows (auto-research-guide)

Automated technical and scientific research workflows powered by AI.

Key tech: LangChain, Research APIs.

finetuning-guide β€” LLM fine-tuning reference (finetuning-guide)

Comprehensive reference for fine-tuning LLMs (LoRA, QLoRA, DPO, RLHF).

Key tech: PEFT, bitsandbytes, TRL.

mcp-chatbot β€” Modular MCP chatbot (mcp-chatbot)

A modular chatbot implementation using the Model Context Protocol (MCP).

Key tech: LangChain, MCP, Groq.

podcast-automate β€” Podcast production automation (podcast-automate)

End-to-end automation for podcast production, from script to speech.

Key tech: Maya1, TTS, LLMs.

a2a-guide β€” Action-to-Action agent patterns (a2a-guide)

Action-to-Action guide: practical examples and patterns for chaining agent actions.

Key tech: Examples, Guides.

vectorless-llm-evals β€” Vectorless RAG evaluation (vectorless-llm-evals)

Evaluating RAG systems using PageIndex for hierarchical, vectorless retrieval.

Key tech: PageIndex, LangSmith.

graph-llms β€” Knowledge-graph reasoning (graph-llms)

Integrating Knowledge Graphs (Neo4j) with LLM reasoning for complex queries.

Key tech: Neo4j, Cypher, Groq.

attention-to-gpt-scratch β€” GPT from scratch (gpt-scratch)

Build, deconstruct, and train decoder-only Generative Pre-trained Transformers.

Key tech: PyTorch, tiktoken, GPT-2.

agentic-deep-reader β€” Long-context compliance pipeline (long-document-context)

Multi-agent, multi-pass pipeline for extracting and synthesizing compliance evidence from long PDFs.

Key tech: FastAPI, Groq, Datalab OCR, BM25.

bm25-rlm-agent β€” Recursive research agent (rlm-test)

In-memory deep-research agent over a local markdown corpus using recursive decomposition.

Key tech: FastAPI, LangChain, LangGraph, OpenAI.

llm-rpg-world-simulator β€” Generative RPG sandbox (world-simulator)

Interactive RPG sandbox with Gemini world-transition engine, memory reflection, and emergent economy.

  • World Transition Engine: LLM parses player intent and NPC actions to output structured state diffs, processed via a validation choke point (DiffApplier).
  • Emergent Quests: short supply triggers fetch quests; completing them pays rewards, resolves shortages, and spawns rumors.
  • Cognitive Agent Memory: episodic memories are periodically reflected upon and consolidated into abstract insights.
  • Social Cliques & Rumor Decay: community detection groups NPCs, while rumors decay in truth value as they propagate through the locations graph.
  • Interactive Sandbox UI: visual Cytoscape.js map, command parser, detail logs, and save/load state.

Companion docs inside the submodule: docs/GAME_GUIDE.md, docs/MANUAL.md, docs/future_notes.md.

mem-git-agent β€” MemGPT tiered-memory agent (memgpt-test)

Self-contained MemGPT agent with tiered memory (persona, human, document catalog, recall, archival) and versioned "memory git".

  • Tiered Memory Hierarchy: maps OS memory concepts to LLMs β€” editable core memory (persona/human) always in context (RAM), a message FIFO queue, a document catalog, with full transcripts (recall) and embedded passages (archival) on disk.
  • Control Loop & Heartbeats: decouples thinking/acting from speaking via an inner monologue and automated heartbeats, chaining multiple search/edit calls before replying via send_message.
  • Document Catalog Tier: always-in-context single-line metadata per document so the agent knows its whole library at a glance.
  • Versioned "Memory Git": tracks all core-memory changes in a queryable, revertible database.
  • Context Eviction & Summarization: manages token limits by prompting under memory pressure and recursively folding evicted history into a running summary.
  • Hybrid Retrieval & Reranking: in-process NumPy similarity search fused with SQLite FTS5 BM25, then a cheap LLM rerank.

Companion docs: docs/notes.md.

turboquant-personal-ai β€” Ultra-low-bit vector memory (turboquant-test)

Folder-based personal AI assistant with perfect memory powered by TurboVec quantization and hybrid retrieval.

  • TurboVec Vector Index: Rust implementation of Google Research's TurboQuant for 2-bit/4-bit quantization with AVX-512/NEON SIMD flat search β€” no index training or codebooks, high recall.
  • Folder-Based Knowledge Management: uploads trigger MarkItDown parsing (or Whisper for audio), token-aware chunking, OpenAI embeddings, and multi-index updates.
  • Follow-up Aware Conversation: rewrites multi-turn queries into standalone search queries.
  • Persistent Conversation Memory: summarizes turns into a separate TurboVec memory index for cross-session recall.
  • Cost & Token Tracker and Benchmark Dashboard (TurboVec vs. FAISS IndexPQ/IndexFlat).

Companion docs: docs/notes.md.

okf-knowledge-graph-wiki β€” Company Knowledge Builder (okf+llm wiki)

Ingests heterogeneous files, analyzes dependencies, and builds an AI-queryable OKF wiki.

  • Universal Ingestion & Structure Analysis: heuristically analyzes project files (ZIP, PDF, DOCX, OpenAPI, SQL DDL) into a typed NetworkX dependency graph.
  • Concept Page Extraction: structures key concepts with Gemini into Open Knowledge Format (OKF) markdown pages.
  • Auto Wiki-Linking: resolves relative links between concepts, turning dangling references into stub pages.
  • Hybrid Search & SSE Streaming: sqlite-vec semantic search + BM25 fused with RRF, streaming RAG chat and pipeline status over SSE.

Companion docs: docs/Company_Knowledge_Builder_OKF_Project_Idea.txt, docs/implementation_plan.md, docs/notes.md.

omni-agent β€” Multi-agent DAG research harness (harness-ultimate)

Agentic research harness executing parallel sub-agents with planning and self-correction.

  • Multi-Agent DAG Planning: a NetworkX DAG executes tasks in parallel via specialized sub-agents.
  • Self-Correction & Evaluation: critiques performance and dynamically reshapes/re-plans steps mid-flight.
  • Recursive Sub-Agent Fan-Out: spawns nested sub-agents to delegate granular tasks in parallel.
  • Grounding & Headless Browser Tools: ~16 real-world tools β€” Google Search grounding, browser-use/crawl4ai automation, sandboxed command execution, hybrid vector/BM25 retrieval.

Companion docs: docs/idea.md, docs/implementation-plan.md.

llm-distillation-guide β€” LLM knowledge distillation (LLM-distillation-guide)

Hands-on guide to LLM knowledge distillation: using Llama-3 (via Groq) to label synthetic data and fine-tuning a 1000x smaller RoBERTa student.

Key tech: Llama-3, Groq, RoBERTa, PyTorch, Hugging Face.

rlm-due-diligence-agents β€” Autonomous due diligence (deep-agents-due-diligence)

Autonomous investment analyst leveraging LangChain Deep Agents & RLM-style dynamic workflows to run end-to-end technical, market, and financial due diligence with human-in-the-loop validation.

Key tech: LangChain, Deep Agents, RLM, Python.

omni-video-agent β€” Automated video generation (agentic-video-generator)

End-to-end automated video generation from a single query: researches the web, storyboards scenes, generates video clips and music, and compiles the final video.

  • Web Research & Synthesis: uses LangChain Deep Agents with crawl4ai (scraping) and MarkItDown (document parsing) to research a topic and build a structured knowledge wiki.
  • Storyboard Generation: uses Gemini structured output to translate the research wiki into a shot-by-shot storyboard with Veo prompts, Lyria music briefs, and thumbnail prompts.
  • Media Generation & Continuity: generates 30–60s video clips via Veo 3.1 (with native audio/dialogue and scene extensions) and composes a custom background music bed via Lyria 3.
  • Assembly & UI: mixes and compiles video clips, narration, and background music using ffmpeg into a final .mp4 and creates a poster thumbnail with Nano Banana 2, served via a vanilla HTML/CSS/JS frontend.

Companion docs: docs/implementation-plan.md.


πŸ§ͺ Research Themes

🧠 Autonomous Evolution

LLMs iteratively improving their own logic and tools through self-correction and performance-based evolution β€” see openevolve-guide.

πŸ“– Model Fine-Tuning, Alignment & Distillation

Advanced alignment strategies including SFT, LoRA/QLoRA, preference optimization (DPO), and knowledge distillation to smaller student models β€” see finetuning-guide and llm-distillation-guide.

πŸ•ΈοΈ Graph-Based Reasoning

Moving beyond flat vector embeddings toward structured knowledge graphs for accurate, traceable RAG β€” see graph-llms and okf-knowledge-graph-wiki.

πŸŽ™οΈ AI Content Pipelines

Streamlining the path from raw ideas to polished media like podcasts and videos β€” see podcast-automate and omni-video-agent.

πŸ“š Recursive Research & Long-Context Compliance

Multi-agent pipelines synthesizing structured evidence from massive (1000+ page) corpora via iterative refinement, BM25 dependency resolution, and LangGraph self-correction β€” see agentic-deep-reader and bm25-rlm-agent.

πŸ—ΊοΈ Generative World Simulations & RPGs

LLM-driven role-playing simulations with structured intent parsing, episodic memory reflection, emergent trade economies, and rumor propagation β€” see llm-rpg-world-simulator.

πŸ’Ύ Stateful Memory & OS-Style Agent Architectures

LLMs as operating systems: tiered memory hierarchies (RAM vs. disk), tool-driven memory paging, context eviction/summarization, and versioned memory histories β€” see mem-git-agent.

⚑ High-Efficiency Vector Quantization & Semantic Search

Ultra-low-bit quantization Γ  la Google Research's TurboQuant (1536-dim β†’ 2–4 bits, no training/codebooks) benchmarked against FAISS β€” see turboquant-personal-ai.

πŸ€– Multi-Agent Planning & Self-Correction

Decomposing complex queries into parallelized DAG execution plans or dynamic workflows with self-reflection, browser automation, sandboxed runtimes, hybrid retrieval, and human-in-the-loop verification β€” see omni-agent and rlm-due-diligence-agents.


🀝 Contributing

Contributions are welcome across all sub-projects! Since each project is an independent repository:

  1. Open issues and pull requests on the individual project's GitHub repo (linked in the tables above).
  2. Refer to each project directory's own README.md for project-specific contribution guidelines.
  3. For monorepo-level changes (this README, submodule wiring), open a PR against ai-forge-lab.

πŸ“œ License

This lab is released under the MIT License β€” see LICENSE for details. Individual submodules may carry their own licenses; check each repository.


Created with ❀️ by subho004

About

AI Forge Lab is a centralized hub for building and exploring advanced AI systems, with a focus on LLMs, agents, and retrieval-based architectures. It connects multiple experimental projects, research ideas, and system designs into a single evolving ecosystem.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors