Architecture Overview

January 12, 2026 ยท View on GitHub

Technical deep-dives into IntellyWeave's backend, frontend, and data flow.

What It Does

This section provides architectural documentation for developers who need to understand IntellyWeave's internal structure, extend functionality, or contribute to the codebase.

Architecture Documents

DocumentDescription
Backend ArchitecturePython/FastAPI backend, Weaviate integration, agent system
Frontend ArchitectureNext.js 15, React components, visualization libraries
Data FlowDocument processing pipeline, entity extraction, query flow
CLIOperations CLI for database management, data migration, AI shell

High-Level Architecture

flowchart TB
    subgraph Frontend["Frontend (Next.js 15)"]
        Chat[Chat Interface]
        Mapbox[Mapbox Maps]
        VisNetwork[vis-network Graphs]
        CourthouseUI[Courthouse Debate UI]
    end

    subgraph Backend["Backend (FastAPI)"]
        DocUpload[Document Upload]
        AgentRouter[Agent Router]
        IntelOrch[Intelligence Orchestrator]
        GLiNER[GLiNER NER]
        CustomAgents[Custom Agents]
        Courthouse[Courthouse Debate]
    end

    subgraph Weaviate["Weaviate Vector DB"]
        Docs[Documents Collection]
        Chunks[Chunks Collection]
        EntityMeta[Entity Metadata]
    end

    Frontend <-->|REST API / WebSocket| Backend
    DocUpload --> GLiNER
    AgentRouter --> CustomAgents
    IntelOrch --> Courthouse
    GLiNER --> Weaviate
    Backend <--> Weaviate

Tech Stack Summary

Backend

ComponentTechnologyPurpose
FrameworkFastAPIREST API and WebSocket
DatabaseWeaviateVector storage and search
LLM OrchestrationDSPyAI agent coordination
Entity ExtractionGLiNERNamed entity recognition
Multi-provider LLMLiteLLMOpenAI, Anthropic, etc.

Frontend

ComponentTechnologyPurpose
FrameworkNext.js 15React server components
UI ComponentsRadix UIAccessible primitives
StylingTailwind CSSUtility-first CSS
MapsMapbox GL 3.163D geospatial visualization
Graphsvis-networkRelationship visualization
AnimationsFramer MotionUI transitions

See Also