Skip to main content

Welcome to SIAA

SIAA (Sistema Inteligente de Apoyo Administrativo) is an intelligent proxy system designed for the judicial sector in Bucaramanga, Colombia. It provides AI-powered document retrieval and query assistance for judicial administrative staff.

What is SIAA?

SIAA is a comprehensive document management and intelligent query system that combines:
  • RAG-based Q&A: Context-aware responses powered by Ollama and Qwen2.5 language model
  • Multi-level Document Routing: Advanced TF-IDF and density indexing for precise document retrieval
  • Document Processing Pipeline: Automated conversion of Word, PDF, and Excel documents
  • Performance Optimization: LRU caching with 1-hour TTL and automatic model warm-up
  • Quality Monitoring: Built-in hallucination detection and JSONL-based query logging

Key Features

Intelligent Retrieval

Multi-level document routing with TF-IDF and density indexing

Document Processing

Convert Word, PDF, and Excel files to searchable formats

Response Caching

LRU cache with 200 entries and 1-hour TTL

Quality Monitoring

JSONL logging with hallucination detection

Quick Start

Get SIAA up and running in your environment:

Installation

Set up SIAA with all dependencies

Quickstart Guide

Deploy and configure your first instance

Architecture Overview

SIAA uses a sophisticated multi-layer architecture:
1

Document Ingestion

Documents are converted to Markdown using LibreOffice headless or pymupdf4llm
2

Chunking & Indexing

Documents are split into overlapping chunks with TF-IDF keyword extraction
3

Query Processing

User queries are routed to relevant documents using multi-level scoring
4

Context Extraction

The most relevant chunks are extracted and sent to the language model
5

Response Generation

Ollama generates streaming responses with source citations

Use Cases

SIAA is designed for judicial administrative staff who need:
  • Quick answers about procedural requirements and deadlines
  • Information retrieval from regulatory documents (PSAA, PCSJA agreements)
  • Guidance on SIERJU reporting requirements
  • Administrative procedure documentation

Next Steps

Install SIAA

Follow the installation guide

Configure System

Configure Ollama and Flask

API Reference

Explore the API endpoints

Build docs developers (and LLMs) love