Skip to content

abhiFSD/AgentForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AgentForge

Your AI team that knows YOUR stuff. Upload documents, connect services, ask questions β€” AI that actually understands your business.

Next.js FastAPI AWS Bedrock PostgreSQL Qdrant Docker


The Problem

Generic AI chatbots don't know your business. They can't read your documents, query your database, or understand your context. Building custom AI agents requires a team of ML engineers and months of work.

The Solution

AgentForge lets anyone create personalized AI agents that:

  • Read your documents β€” Upload PDFs, docs, spreadsheets β†’ AI indexes and understands them
  • Remember everything β€” RAG pipeline with vector search, so AI answers from YOUR data
  • Take actions β€” Not just chat β€” agents can create tasks, query databases, trigger workflows
  • Speak your language β€” Regional language support for Indian users

Architecture

graph TB
    subgraph Frontend
        A[Next.js 15 + React] --> B[Cognito Auth]
        A --> C[Chat Interface]
        A --> D[File Manager]
        A --> E[Agent Builder]
    end
    
    subgraph Backend
        F[FastAPI] --> G[RAG Service]
        F --> H[Chat Service]
        F --> I[Agent Tools]
        G --> J[Qdrant<br/>Vector Search]
        G --> K[AWS Bedrock<br/>Claude Sonnet]
        F --> L[Celery Workers]
        L --> M[File Processing]
    end
    
    subgraph Storage
        N[(PostgreSQL)]
        O[S3<br/>File Storage]
        P[Redis<br/>Task Queue]
    end
    
    A -->|REST API| F
    F --> N
    M --> O
    L --> P
Loading

Features

🧠 AI Agents

  • Custom Agents β€” Create agents with specific knowledge bases and personalities
  • Pre-built Agents β€” Ready-to-use agents for common tasks
  • Tool System β€” Extensible tools (summarize, search, analyze, create tasks)
  • Agent Registry β€” Manage and share agents across your team

πŸ“„ Document Intelligence (RAG)

  • Upload anything β€” PDF, DOCX, XLSX, CSV, TXT
  • Automatic chunking β€” Smart document splitting for optimal retrieval
  • Vector embeddings β€” 1024-dim embeddings stored in Qdrant
  • Semantic search β€” Ask questions, get answers from your documents
  • Folder organization β€” Organize documents into knowledge bases

πŸ’¬ Chat

  • Multi-session β€” Multiple chat sessions with different agents
  • Context-aware β€” Chat maintains conversation history
  • Tool use β€” Agents can call tools mid-conversation
  • Streaming responses β€” Real-time token streaming

πŸ‘₯ Multi-tenant

  • User authentication β€” AWS Cognito / NextAuth
  • Per-user data isolation β€” Each user's documents and agents are private
  • Onboarding flow β€” Guided setup for new users
  • Pricing tiers β€” Free β†’ Pro β†’ Business β†’ Enterprise

Tech Stack

Layer Technology Purpose
Frontend Next.js 15 + React + TailwindCSS Modern app with SSR
Backend FastAPI (Python) Async API server
LLM AWS Bedrock (Claude Sonnet) AI reasoning + generation
Vector DB Qdrant Document embeddings + semantic search
Database PostgreSQL 15 Users, agents, sessions, metadata
Queue Celery + Redis Background file processing
Storage AWS S3 Document file storage
Auth AWS Cognito / NextAuth Authentication + authorization
Deployment Docker Compose One-command deployment

Project Structure

β”œβ”€β”€ frontend/                    # Next.js 15 application
β”‚   β”œβ”€β”€ src/app/
β”‚   β”‚   β”œβ”€β”€ (app)/
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard/       # Main dashboard
β”‚   β”‚   β”‚   β”œβ”€β”€ chat/            # Chat interface
β”‚   β”‚   β”‚   β”œβ”€β”€ agents/          # Agent management
β”‚   β”‚   β”‚   └── files/           # File/folder management
β”‚   β”‚   β”œβ”€β”€ (auth)/              # Login + signup
β”‚   β”‚   β”œβ”€β”€ pricing/             # Pricing page
β”‚   β”‚   └── onboarding/          # New user setup
β”‚   β”œβ”€β”€ src/components/          # Reusable UI components
β”‚   └── src/stores/              # State management
β”‚
β”œβ”€β”€ backend/                     # FastAPI application
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ api/v1/              # API endpoints (chat, files, agents)
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ rag_service.py   # RAG pipeline
β”‚   β”‚   β”‚   β”œβ”€β”€ chat_service.py  # Chat management
β”‚   β”‚   β”‚   └── bedrock_service.py # LLM integration
β”‚   β”‚   β”œβ”€β”€ tools/               # Agent tool system
β”‚   β”‚   β”œβ”€β”€ models/              # SQLAlchemy models
β”‚   β”‚   └── core/                # Config, security
β”‚   └── tests/                   # Unit + integration tests
β”‚
β”œβ”€β”€ docker-compose.yml           # Dev environment
β”œβ”€β”€ docker-compose.prod.yml      # Production setup
β”œβ”€β”€ scripts/                     # Setup + deployment scripts
└── docs/                        # Product spec + architecture

Quick Start

Docker (recommended)

git clone https://github.com/abhiFSD/AgentForge.git
cd AgentForge

# Configure
cp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env.local
# Edit with your AWS credentials + Bedrock access

# Launch everything
docker-compose up -d

# Frontend:  http://localhost:3000
# Backend:   http://localhost:8000
# Qdrant:    http://localhost:6333
# PgAdmin:   http://localhost:5050

Manual

# Backend
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload --port 8000

# Frontend
cd frontend
npm install
npm run dev

API Endpoints

Method Endpoint Description
POST /api/v1/chat/sessions Create chat session
POST /api/v1/chat/sessions/{id}/messages Send message (streaming)
GET /api/v1/agents List agents
POST /api/v1/agents Create custom agent
POST /api/v1/files/upload Upload document
GET /api/v1/files/folders List folders
POST /api/v1/rag/query Semantic search
GET /health Health check

Pricing Model (Built-in)

Plan Price Features
Free β‚Ή0 1 agent, 10 docs, 50 messages/day
Pro β‚Ή499/mo 5 agents, 100 docs, unlimited messages
Business β‚Ή1,499/mo 20 agents, 1000 docs, API access
Enterprise β‚Ή3,999/mo Unlimited, custom integrations, priority support

License

MIT β€” use it, learn from it, build on it.

About

πŸ€– AgentForge β€” AI agent platform with RAG. Upload documents, create custom agents, semantic search. Next.js 15 + FastAPI + Qdrant + AWS Bedrock + PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors