Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/schemaforge
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ragbase

# Redis
REDIS_URL=redis://localhost:6379
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge
# RAGBase

**The "Set & Forget" Data Pipeline for Enterprise RAG**

Expand Down Expand Up @@ -32,7 +32,7 @@ docker compose up -d

4. **Run migrations:**
```bash
pnpm --filter @schemaforge/backend db:push
pnpm --filter @ragbase/backend db:push
```

5. **Start development server:**
Expand All @@ -49,7 +49,7 @@ curl http://localhost:3000/health
## Project Structure

```
schemaforge/
ragbase/
├── apps/
│ ├── backend/ # Node.js Fastify API
│ └── ai-worker/ # Python FastAPI (Phase 07)
Expand Down Expand Up @@ -104,9 +104,9 @@ pnpm test:unit # Run unit tests only
pnpm test:integration # Run integration tests

# Database
pnpm --filter @schemaforge/backend db:generate # Generate Prisma client
pnpm --filter @schemaforge/backend db:push # Push schema to DB
pnpm --filter @schemaforge/backend db:migrate # Create migration
pnpm --filter @ragbase/backend db:generate # Generate Prisma client
pnpm --filter @ragbase/backend db:push # Push schema to DB
pnpm --filter @ragbase/backend db:migrate # Create migration

# Linting
pnpm lint # Type-check all packages
Expand All @@ -128,7 +128,7 @@ See [.env.example](.env.example) for all configuration options.
📚 **[View Full Documentation Index](docs/README.md)**

### Quick Links
- [Project Overview](docs/core/project-overview-pdr.md) - What is SchemaForge?
- [Project Overview](docs/core/project-overview-pdr.md) - What is RAGBase?
- [System Architecture](docs/core/system-architecture.md) - Technical design
- [API Contracts](docs/core/api-contracts.md) - API specifications
- [Testing Strategy](docs/core/testing-strategy.md) - TDD approach
Expand Down
Binary file modified apps/ai-worker/.coverage
Binary file not shown.
2 changes: 1 addition & 1 deletion apps/ai-worker/src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
SchemaForge AI Worker - PDF processing using Docling
RAGBase AI Worker - PDF processing using Docling
"""

__version__ = "0.1.0"
2 changes: 1 addition & 1 deletion apps/ai-worker/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def lifespan(app: FastAPI):


app = FastAPI(
title="SchemaForge AI Worker",
title="RAGBase AI Worker",
description="PDF processing worker using Docling",
version="0.1.0",
lifespan=lifespan,
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@schemaforge/backend",
"name": "@ragbase/backend",
"version": "0.1.0",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SchemaForge - RAG System Dashboard</title>
<title>RAGBase - RAG System Dashboard</title>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@schemaforge/frontend",
"name": "@ragbase/frontend",
"version": "0.1.0",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function AppContent() {
<header className="bg-white border-b border-gray-200">
<div className="max-w-5xl mx-auto px-4 py-4">
<div className="flex items-center justify-between">
<h1 className="text-xl font-bold text-gray-900">SchemaForge</h1>
<h1 className="text-xl font-bold text-gray-900">RAGBase</h1>
<div className="flex items-center gap-2">
{!apiKey && (
<span className="text-sm text-amber-600 flex items-center gap-1">
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/schemaforge
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/ragbase
- REDIS_URL=redis://redis:6379
- API_KEY=${API_KEY}
- LOG_LEVEL=info
Expand Down Expand Up @@ -73,7 +73,7 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=schemaforge
- POSTGRES_DB=ragbase
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- redis
- postgres
environment:
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/schemaforge
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/ragbase
- REDIS_URL=redis://redis:6379
- API_KEY=${API_KEY}
- PORT=3000
Expand Down Expand Up @@ -49,7 +49,7 @@ services:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=schemaforge
- POSTGRES_DB=ragbase
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/postgres-init.sql:/docker-entrypoint-initdb.d/init.sql
Expand Down
4 changes: 2 additions & 2 deletions docker/backend.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ COPY apps/backend/prisma apps/backend/prisma/
RUN pnpm install --frozen-lockfile

# Generate Prisma client
RUN pnpm --filter @schemaforge/backend db:generate
RUN pnpm --filter @ragbase/backend db:generate

# Copy source
COPY apps/backend/src apps/backend/src
COPY apps/backend/tsconfig.json apps/backend/

# Build
RUN pnpm --filter @schemaforge/backend build
RUN pnpm --filter @ragbase/backend build

# Production image
FROM node:20-alpine
Expand Down
2 changes: 1 addition & 1 deletion docs/CLEANUP-SOLUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ plans/archive/
## 🚀 Execution Script

```powershell
# Run from D:\14-osp\SchemaForge
# Run from D:\14-osp\RAGBase

# Phase 1.1: Archive reports
mkdir -Force plans\reports\archive\phase04-reviews
Expand Down
2 changes: 1 addition & 1 deletion docs/LOG-CLEANUP-SOLUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test-*.ts
### Option 3: Full Cleanup + Prevention
```powershell
# Step 1: Delete all junk files
cd D:\14-osp\SchemaForge
cd D:\14-osp\RAGBase
Remove-Item -Force "apps\backend\*.log"
Remove-Item -Force "apps\backend\e2e-full-error.txt"
Remove-Item -Force "apps\backend\test-embedding-smoke.ts"
Expand Down
6 changes: 3 additions & 3 deletions docs/OPERATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ docker-compose -f docker-compose.prod.yml restart backend
docker exec ragbase-postgres-1 pg_isready -U postgres

# Check pgvector extension
docker exec -it ragbase-postgres-1 psql -U postgres -d schemaforge -c "SELECT * FROM pg_extension WHERE extname='vector';"
docker exec -it ragbase-postgres-1 psql -U postgres -d ragbase -c "SELECT * FROM pg_extension WHERE extname='vector';"

# View database logs
docker-compose -f docker-compose.prod.yml logs postgres
Expand Down Expand Up @@ -108,10 +108,10 @@ docker-compose -f docker-compose.prod.yml up -d
### PostgreSQL
```bash
# Backup
docker exec ragbase-postgres-1 pg_dump -U postgres schemaforge > backup-$(date +%Y%m%d).sql
docker exec ragbase-postgres-1 pg_dump -U postgres ragbase > backup-$(date +%Y%m%d).sql

# Restore
cat backup-20251219.sql | docker exec -i ragbase-postgres-1 psql -U postgres schemaforge
cat backup-20251219.sql | docker exec -i ragbase-postgres-1 psql -U postgres ragbase
```

### Redis
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Documentation Index

Welcome to SchemaForge documentation.
Welcome to RAGBase documentation.

## Getting Started

1. [Project Overview](core/project-overview-pdr.md) - What is SchemaForge?
1. [Project Overview](core/project-overview-pdr.md) - What is RAGBase?
2. [System Architecture](core/system-architecture.md) - How it works
3. [Quick Start](../README.md#quick-start) - Get running in 5 minutes

Expand Down
2 changes: 1 addition & 1 deletion docs/core/api-contracts.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Contracts
# RAGBase Contracts

**Phase 1 interfaces. TDD reference.**

Expand Down
2 changes: 1 addition & 1 deletion docs/core/code-standards.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Code Standards
# RAGBase Code Standards

**Last Updated:** Phase 04 Critical Fixes (Dec 2024)
**Coverage:** Backend API + Database patterns
Expand Down
10 changes: 5 additions & 5 deletions docs/core/codebase-summary.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Codebase Summary
# RAGBase Codebase Summary

**Last Updated:** Task 1.3 - Fast Lane Processing (Dec 2024)
**Token Compaction:** 24,627 tokens (102,707 chars)
Expand All @@ -8,7 +8,7 @@
## 1. Project Structure

```
SchemaForge/
RAGBase/
├── apps/
│ ├── backend/ # Node.js + Fastify API
│ │ ├── src/
Expand Down Expand Up @@ -477,13 +477,13 @@ pnpm test:coverage
### Database Operations
```bash
# Generate Prisma client
pnpm --filter @schemaforge/backend db:generate
pnpm --filter @ragbase/backend db:generate

# Push schema to DB
pnpm --filter @schemaforge/backend db:push
pnpm --filter @ragbase/backend db:push

# Create migration
pnpm --filter @schemaforge/backend db:migrate
pnpm --filter @ragbase/backend db:migrate
```

### Development Server
Expand Down
4 changes: 2 additions & 2 deletions docs/core/project-overview-pdr.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# **Project Spec: Schema Forge**
# **Project Spec: RAGBase**

**Slogan:** _The "Set & Forget" Data Pipeline for Enterprise RAG._
**(Open Source | Self-Hosted | Structure-Aware | Prisma Powered)**
Expand All @@ -7,7 +7,7 @@

### **1. Overview & Philosophy**

**SchemaForge** is an Open Source ETL system for SMEs. Converts unstructured data (PDFs, Excel) into structured knowledge for Vector Databases.
**RAGBase** is an Open Source ETL system for SMEs. Converts unstructured data (PDFs, Excel) into structured knowledge for Vector Databases.

**Core Philosophy: "Bring Your Own Infrastructure"**

Expand Down
2 changes: 1 addition & 1 deletion docs/core/project-roadmap.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Roadmap
# RAGBase Roadmap

**3 Phases | MVP → Production Ready**

Expand Down
2 changes: 1 addition & 1 deletion docs/core/system-architecture.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Architecture
# RAGBase Architecture

Technical implementation details for the core pipeline.

Expand Down
2 changes: 1 addition & 1 deletion docs/core/testing-strategy.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SchemaForge Test Strategy
# RAGBase Test Strategy

**TDD approach for Phase 1.**

Expand Down
6 changes: 3 additions & 3 deletions docs/production-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Default: 100 requests/minute per IP. Adjust based on:

Update `DATABASE_URL` with connection pooling:
```
postgresql://postgres:password@postgres:5432/schemaforge?connection_limit=10
postgresql://postgres:password@postgres:5432/ragbase?connection_limit=10
```

### Redis Memory
Expand Down Expand Up @@ -201,7 +201,7 @@ Adjust Docker resource limits in `docker-compose.prod.yml` based on:

2. Verify pgvector extension:
```bash
docker exec -it ragbase-postgres-1 psql -U postgres -d schemaforge -c "SELECT * FROM pg_extension WHERE extname='vector';"
docker exec -it ragbase-postgres-1 psql -U postgres -d ragbase -c "SELECT * FROM pg_extension WHERE extname='vector';"
```

### High Memory Usage
Expand All @@ -224,7 +224,7 @@ Adjust Docker resource limits in `docker-compose.prod.yml` based on:

Daily backup using pg_dump:
```bash
docker exec ragbase-postgres-1 pg_dump -U postgres schemaforge > backup-$(date +%Y%m%d).sql
docker exec ragbase-postgres-1 pg_dump -U postgres ragbase > backup-$(date +%Y%m%d).sql
```

### Redis Persistence
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "schemaforge",
"name": "ragbase",
"private": true,
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Summary

Successfully set up the complete project infrastructure for SchemaForge Phase 1. All services are configured and ready for TDD implementation starting with Phase 01.
Successfully set up the complete project infrastructure for RAGBase Phase 1. All services are configured and ready for TDD implementation starting with Phase 01.

---

Expand Down Expand Up @@ -60,13 +60,13 @@ Successfully set up the complete project infrastructure for SchemaForge Phase 1.

### ✅ Build Status
```bash
pnpm --filter @schemaforge/backend build
pnpm --filter @ragbase/backend build
# ✅ SUCCESS - No TypeScript errors
```

### ✅ Prisma Client
```bash
pnpm --filter @schemaforge/backend db:generate
pnpm --filter @ragbase/backend db:generate
# ✅ Generated Prisma Client (v5.22.0)
```

Expand Down Expand Up @@ -157,8 +157,8 @@ pnpm dev # Start all services
pnpm build # Build all packages

# Database
pnpm --filter @schemaforge/backend db:generate
pnpm --filter @schemaforge/backend db:push
pnpm --filter @ragbase/backend db:generate
pnpm --filter @ragbase/backend db:push

# Docker
docker compose up -d # Start all services
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Summary

Successfully set up comprehensive test infrastructure for SchemaForge with Vitest, Testcontainers, test fixtures, and mock utilities. All unit tests passing.
Successfully set up comprehensive test infrastructure for RAGBase with Vitest, Testcontainers, test fixtures, and mock utilities. All unit tests passing.

---

Expand Down Expand Up @@ -54,7 +54,7 @@ Successfully set up comprehensive test infrastructure for SchemaForge with Vites
## Test Results

```bash
pnpm --filter @schemaforge/backend test:unit
pnpm --filter @ragbase/backend test:unit

✓ tests/unit/smoke.test.ts (2)
✓ tests/unit/helpers/fixtures.test.ts (5)
Expand Down Expand Up @@ -273,19 +273,19 @@ The following are now ready:

```bash
# Unit tests (fast, no Docker)
pnpm --filter @schemaforge/backend test:unit
pnpm --filter @ragbase/backend test:unit

# Integration tests (with Testcontainers)
pnpm --filter @schemaforge/backend test:integration
pnpm --filter @ragbase/backend test:integration

# All tests
pnpm --filter @schemaforge/backend test
pnpm --filter @ragbase/backend test

# Watch mode
pnpm --filter @schemaforge/backend test -- --watch
pnpm --filter @ragbase/backend test -- --watch

# Coverage report
pnpm --filter @schemaforge/backend test -- --coverage
pnpm --filter @ragbase/backend test -- --coverage
```

---
Expand Down
Loading
Loading