• 2026
  • APPLIED AI · FULL-STACK
  • Own project · Riansares 4R (building renovation)

Source-grounded RAG assistant for building renovation queries

  • Java 21
  • Spring Boot
  • Spring AI
  • Angular
  • PostgreSQL/pgvector
  • Ollama
  • Python
  • AWS Lambda/S3 Vectors
  • Docker

Answering technical building-renovation questions with verifiable documentation, without depending on paid cloud models, while maintaining service through failures.

Solo project: architecture, backend, frontend, ingestion, evaluation, infrastructure and deployment.

Key outcomes

  • Published bilingual assistant: cites sources and abstains when evidence is insufficient.
  • Fallback tested in the published environment: with pgvector stopped, retrieval continued through Lambda/S3 Vectors.
  • Testing snapshot: 547 unit tests, 86 integration tests and 9 Lambda tests; a specific internal evaluation from 58/70 to 66/70 accepted cases (not overall accuracy).

Key decision: PostgreSQL/pgvector as the primary store and S3 Vectors as alternative retrieval, with compatible embedding dimensions.

View detailsHide details

Context and challenge

Bilingual assistant with verifiable references, local LLMs and hybrid retrieval

Published RAG for building-renovation documentation queries, with cited answers, abstention when evidence is missing, streaming and AWS fallback tested from the production NAS.

Design, full-stack architecture, ingestion, evaluation, infrastructure and deployment

My own project for a real building-renovation use case (Riansares 4R). Creating a useful AI application without relying on expensive cloud models, demonstrating systems engineering through security, latency, grounding, availability and operations.

Contributions

  • Full-stack implementation with Angular and a Java 21/Spring AI backend.
  • Python pipeline for deterministic Markdown ingestion, chunking, hierarchical metadata and embeddings.
  • Source-grounded answers, abstention conditions, SSE streaming and per-IP/system usage limits.
  • Separate generation, embedding and retrieval paths; local Ollama models with remote fallback.
  • S3 Vectors integrated through Java 21 Lambda, IAM and CloudWatch traces.

Technical decisions and architecture

  • Synology NAS hosting production services; GPU desktop as primary generation host and laptop as fallback, according to the configuration at the time.
  • Control of concurrency, connections and slow clients, heartbeats and model preloading.
  • Experiments with topK, thresholds, chunking and positive/negative tests in ES/EN.

Full stack

Additional technologies:

  • TypeScript
  • IAM
  • CloudWatch
  • SSE