Skip to content

Self-Organising-Graph-Database/SOG2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 SOG Engine: Self-Organizing Graph

SOG Engine is a high-performance intelligence manifold designed for localized Retrieval-Augmented Generation (RAG). By transforming static technical documentation into a self-organizing high-dimensional graph, SOG enables real-time reasoning on edge hardware and high-end desktops without cloud dependency.

🛰️ Tactical Core Features

  • Massive Document Sweeps: Engineered to ingest 160+ technical manuals in a single batch.
  • Incremental Persistence: Implements "Sync-after-Doc" protocols to ensure data integrity during long ingestion cycles.
  • Memory-Optimized: Specifically tuned for 32GB RAM environments, utilizing ConcurrentHashMap pre-allocation to prevent resizing overhead.
  • Hardware-Agnostic Inference: Dual-profile support for Ollama (Desktop) and Jetson Nano (Edge) via native Java providers.
  • Topological Retrieval: Uses cosine similarity and keyword-synapse mapping to retrieve the most relevant context for LLM synthesis.

🛰️ Tech Stack

  • Backend: Java 22, Spring Boot 3.x
  • Inference: LangChain4j (Ollama & OpenAI-compatible drivers)
  • Graph Logic: Self-Organizing Manifold (SOM) inspired vector space
  • Hardware: Optimized for NVIDIA Jetson (ARM64) and Windows/Linux x86

🛰️ Installation & Deployment

Prerequisites

  • Java 22+ installed and configured.
  • Ollama (Desktop) or llama.cpp (Jetson) running locally.

1. Clone & Build

git clone [https://github.com/yourusername/sog-engine.git](https://github.com/yourusername/sog-engine.git)
cd sog-engine
mvn clean package

2. Desktop Launch (Ollama Profile)

java -Dspring.profiles.active=desktop -Xmx24G -jar target/sog-engine.jar

3. Jetson Deployment

Use the included tactical scripts for optimized edge performance:

chmod +x scripts/*.sh
./scripts/setup_jetson.sh
./scripts/deploy_sog.sh

🛰️ API Command Interface

Endpoint Method Description
/api/sog/upload/batch POST Upload multiple manuals for manifold ingestion.
/api/sog/query POST Query the SOG with natural language.
/api/sog/ram-metrics GET Monitor real-time JVM memory utilization.

🛰️ Documentation

The project includes a comprehensive, zero-warning JavaDoc suite. To generate the latest technical documentation:

mvn javadoc:javadoc

Generated docs can be found in target/site/apidocs/index.html.


🛰️ License

Distributed under the MIT License. See LICENSE for more information.


Developed for the next generation of localized, edge-based intelligence.

About

Self Organising Graph 2D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors