Developer
Quickstart.
Get started with Shree AI OS v1.0.6 Developer Preview in under 5 minutes. In-process AI runtime for Java with deterministic behavior, privacy-first boundaries, and 10 verified SDK facades on Java 21 LTS.
Java 21 LTS & Maven
Shree AI OS is native to the modern Java virtual machine. Virtual threads, record patterns, and sealed interfaces are leveraged for high-throughput cognitive pipelines.
Java 21 LTS (or 24)
Maven 3.9+ / Gradle 8+
pgvector / In-Memory
Add Dependency Coordinates
Add the official v1.0.6 developer preview coordinates to your pom.xml:
<!-- Maven Dependency Coordinates -->
<dependency>
<groupId>io.github.darshanrathod04</groupId>
<artifactId>shree-ai-os</artifactId>
<version>1.0.6-developer-preview</version>
</dependency>Bootstrap with ShreeAI.builder()
Configure runtime security, default providers, and execute your first request through the 11-stage pipeline:
package com.example.demo;
import com.shreeai.os.platform.sdk.ShreeAI;
import com.shreeai.os.platform.sdk.SDKResponse;
import com.shreeai.os.platform.core.RuntimeConfiguration;
public class Application {
public static void main(String[] args) {
// 1. Configure runtime with fail-closed security and hybrid RAG
RuntimeConfiguration config = RuntimeConfiguration.builder()
.defaultProvider("gemini-3.6-flash")
.failClosed(true)
.build();
// 2. Initialize fluent client on Java 21 LTS
ShreeAI shree = ShreeAI.builder()
.apiKey(System.getenv().getOrDefault("GEMINI_API_KEY", "local"))
.configuration(config)
.build();
// 3. Execute grounded chat through the 11-stage cognitive pipeline
SDKResponse response = shree.chat("Explain hybrid RRF vector retrieval");
System.out.println("Answer: " + response.answer());
System.out.println("Confidence: " + response.confidence());
// 4. Clean shutdown of virtual threads and kernel services
shree.close();
}
}Vector Ingest & RRF Search
Combined HNSW vector proximity with GIN full-text keyword ranking:
// Ingest documentation into pgvector with deduplication
shree.knowledge().ingest("PostgreSQL 16 with pgvector HNSW provides sub-millisecond retrieval.");
// Execute Hybrid RRF search (HNSW KNN + GIN Full-Text Search)
var results = shree.knowledge().search("pgvector HNSW performance");
results.forEach(entry -> System.out.println("Matched chunk: " + entry.getContent()));Tenant-Isolated Context
Retain and semantically recall context across multi-turn sessions:
// Store episodic context scoped strictly to current tenant
shree.memory().store("deployment-target", "Kubernetes 1.30");
// Recall semantically relevant episodic context
var memories = shree.memory().recall("target cluster infrastructure");
memories.forEach(m -> System.out.println("Recalled: " + m.getValue()));Explore the 10 SDKs.
Or inspect the architecture.
Dive into the full SDK facade documentation or understand the 5-layer platform design.
