The Jammi Cookbook

Learn every Jammi capability by running it

Author

F-Inverse

Jammi is an embeddable AI engine: register data sources and query them with SQL, generate embeddings and search them, run and fine-tune models, and measure the results — in your own process, or against a server, through one API. This book teaches every one of those capabilities with a program you run. Each chapter is code and the prose that explains it; nothing is a screenshot of a result.

0.1 How to read it

Every chapter has an Open in Colab badge under its title. A notebook’s first cell installs this release of Jammi — the CUDA engine on a GPU runtime, the CPU engine otherwise — and the cookbook’s fixtures, then every cell runs top to bottom. To run a chapter locally instead:

pip install "jammi-ai[embedded]" "jammi-cookbook @ git+https://github.com/f-inverse/jammi-ai#subdirectory=cookbook/book"

Chapters run at the small scale by default: committed fixtures and tiny encoders, on the CPU, in seconds to minutes. Setting JAMMI_COOKBOOK_SCALE=full runs the same code over the published datasets and real encoders, on a GPU.

0.2 The path

Start with the quickstart; after it, each part stands on its own. A part’s short recipes walk a capability’s verbs one step at a time; its chapters take a capability deep and measure it.

Part What you learn
Start here Install, connect, register a source, embed it and search it; the two datasets the longer chapters use.
Search Dense, lexical and fused retrieval; image, audio and cross-modal search; how much recall the ANN index gives up; how the index grows by segments; storing vectors at lower precision; auditing every search.
Models and inference The model catalog; models served at an endpoint; the dtype inference runs at; quantized checkpoints; how a model stage behaves at any parallelism.
Evaluation Retrieval, classification and NER quality; evaluation and provenance channels; the error each failure raises; calibration of predicted uncertainty.
Fine-tuning LoRA fine-tuning; choosing a method; regression heads; image and audio encoders; what acceleration a job got; one job trained across many ranks.
Graphs and prediction Neighbour graphs, propagation and lineage; predicting from retrieved context.
Data that changes Mutable tables; a feature store; change-data-capture topics; point-in-time joins; detecting and repairing stale results; editing an embedding table in place; storage that ends with the session.
Where data lives Object storage; Postgres and MySQL as sources in one query.
Running Jammi One program embedded or remote; Flight SQL; compound queries; the CLI, Rust and TypeScript; jobs; multi-tenancy; a production catalog and broker; backup, health, metrics and traces.
Case study: graph machine learning Everything together on ogbn-arxiv: build a graph, propagate over it, fine-tune on it, predict with calibrated coverage — and the theory each step implements.

0.3 How it stays honest

Every chapter ends in numbers it just measured, checked against values frozen from an earlier run, within a stated tolerance; a chapter whose measurement moves fails. Every chapter runs on every change to the engine it documents, and every notebook is also run nightly exactly as a reader runs it — installed from PyPI in a fresh runtime. The API reference lists every verb the book calls.