Chat2Book is a RAG-based platform for uploading a book, extracting its main characters, and chatting with them in character.
- Upload a book and process it into searchable RAG context
- Extract the main characters and generate lightweight character profiles
- Start a character conversation grounded in the source material
- Java 21
- Node.js 22 via
nvm pnpm- Docker and Docker Compose
OPENAI_API_KEY
docker-compose up -dPostgreSQL is exposed on localhost:5433.
export OPENAI_API_KEY=sk-xxxOptional:
export OPENAI_BASE_URL=https://api.openai.comcd backend
./mvnw spring-boot:runBackend runs on http://localhost:8080.
cd frontend
pnpm install
pnpm devFrontend runs on http://localhost:5173.
cd backend
./mvnw testcd frontend
pnpm lintbackend/: Spring Boot backendfrontend/: React frontendspec/: canonical design and planning documents
docker-compose psecho $OPENAI_API_KEYVerify:
- backend is running on
http://localhost:8080 - frontend is running on
http://localhost:5173


