Introduction
The TypeScript framework that makes building LLM-powered applications simple, powerful, and production-ready.
What is Orka.JS ?
Orka.JS is a TypeScript framework for professional AI Application Engineering. It abstracts the complexities of embeddings and vector databases to let you focus on building robust RAG architectures and reliable agent workflows.
- •AI Application Engineering
- •Multi-model orchestration
- •LLM Monitoring & Observability
- •Automated evaluation & Guardrails
- •Cost optimization & Security
- •Internal tools integration
Core Philosophy
Simplicity First
The API is designed to be readable and intuitive. orka.ask() asks a question. orka.knowledge.create() creates a knowledge base.
Swap Anything
Every component — LLM provider, vector database, evaluation metric — is an adapter that implements a clean interface.
Production by Default
Retry logic, fallback chains, observability hooks, and CI/CD test runners are built in — not afterthoughts.
Import Methods
Standard import:
import { createOrka, OpenAIAdapter, MemoryVectorAdapter } from 'orkajs';Tree-shakeable import (recommended for production):
import { createOrka } from 'orkajs/core';import { OpenAIAdapter } from 'orkajs/adapters/openai';import { MemoryVectorAdapter } from 'orkajs/adapters/memory';💡 Quick Example
const orka = createOrka({ llm: new OpenAIAdapter({ apiKey: process.env.OPENAI_API_KEY! }), vectorDB: new MemoryVectorAdapter(),}); const result = await orka.ask({ knowledge: 'my-docs', question: 'How does authentication work?',}); console.log(result.answer);Feature Overview
| Feature | Description |
|---|---|
| Knowledge & RAG | Index documents, chunk them automatically, and perform semantic search |
| Multi-Step Workflows | Chain LLM operations: plan → retrieve → generate → verify → improve |
| Graph Workflows | Build complex flows with conditions, branches, and parallel execution |
| Agents & Tools | Create structured agents with tools, policies, and safety guardrails |
| Evaluation | Test response quality with built-in metrics: relevance, correctness, faithfulness |
| Multi-Model Orchestration | Router, Consensus, Race, and Load Balancer strategies across LLM providers |
Next Steps
Ready to dive in? Start with the Installation guide, or jump straight to the Quick Start to see Orka.JS in action.