Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

stefanionescu/llm-roleplay-main-api

Repository files navigation

LLM Roleplay Main API

REST API service providing RAG (Retrieval Augmented Generation), embeddings, user waitlist management and user registration functionality. Deployed on Hetzner Cloud.

Setup

  1. Install dependencies:
bun install
  1. Configure environment:
cp .env
# Edit .env with your values
  1. Build:
bun run build

Run

bun run start

API Endpoints

All endpoints under /rag and /user-management require a valid API token passed in the Authorization header.

Unauthenticated

  • GET /health - Check service health status, including embedding pipeline.

RAG & Embeddings (Auth Required - Base Path: /rag)

  • GET /rag/hybrid-rag - Hybrid semantic/keyword search.
  • GET /rag/semantic-rag - Pure semantic search.
  • GET /rag/semantic-rag-with-hashtags - Semantic search with hashtag filtering.
  • GET /rag/hybrid-rag-with-hashtags - Hybrid search with hashtag filtering.

User & Waitlist Management (Auth Required - Base Path: /user-management)

  • POST /user-management/add-to-waitlist - Add user (by username) to waitlist.
  • GET /user-management/is-on-waitlist - Check if user (by username) is on waitlist.
  • GET /user-management/waitlist-user-can-sign-up - Check user's (by username) waitlist status and eligibility to sign up.
  • POST /user-management/register-user - Register a user (by username).

Production Deployment

Prerequisites

  • Domain with access to DNS settings
  • SSH access to Hetzner servers
  • API servers and load balancer configured on Hetzner Cloud

Deployment Steps

  1. Add your host/server name in nginx.conf file

  2. Generate a certificate first and import it on Hetzner.

  3. Deploy API Files:

# Deploy code and configurations to all servers
./scripts/deploy-to-server.sh
  1. Start API Services:
# Start Docker containers on all servers
./scripts/start-api.sh
  1. Verify Deployment:
# Check health of all services
./scripts/manual-health-check.sh

Troubleshooting

  • If SSL generation fails, ensure DNS propagation is complete
  • For deployment issues, check server logs with docker-compose logs

About

RAG, user waitlist and registration API for an LLM roleplay app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors