Skip to content

Overview

Genkit for Java is the Java implementation of the Genkit framework for building AI-powered applications.

Genkit is an open-source framework that helps you build AI-powered applications. It provides:

  • Unified model API — Call any supported AI model through a single, consistent interface
  • Flows — Define observable, traceable AI workflows that can be exposed as HTTP endpoints
  • Tools — Let models call your functions during generation
  • DotPrompt — Manage prompts as template files with Handlebars support
  • Structured Output — Generate type-safe outputs with automatic JSON schema generation
  • RAG — Build retrieval-augmented generation pipelines with indexers and retrievers
  • Evaluations — Assess AI output quality with custom and pre-built evaluators
  • Observability — Full OpenTelemetry integration for tracing and metrics
  • Dev UI — Visual tool for testing and debugging your AI logic

The Java SDK supports a broad range of providers:

CategoryProviders
AI ModelsOpenAI, Google GenAI (Gemini), Anthropic (Claude), AWS Bedrock, Azure AI Foundry, xAI (Grok), DeepSeek, Cohere, Mistral, Groq, Ollama, any OpenAI-compatible endpoint
Vector DatabasesWeaviate, PostgreSQL (pgvector), Pinecone, Firebase Firestore, Local file-based
Server FrameworksJetty, Spring Boot
IntegrationsFirebase (Firestore, Cloud Functions, Telemetry), MCP, Pre-built evaluators
ModuleDescription
genkit-coreCore framework: actions, flows, registry, tracing (OpenTelemetry)
genkit-aiAI abstractions: models, embedders, tools, prompts, retrievers, indexers, evaluators
genkitMain entry point combining core and AI with reflection server
plugins/20+ plugin implementations for models, databases, servers, and integrations