Mixed content needs a mix of models.
PDFs alone can require OCR, multimodal indexing for semantic text and image searching, chunking and named entity recognition.
- Text layerPages 1โ6 already have text. Antfly keeps it.
- OCRPage 7 is a scan. A model reads it.LightOnOCR 3
- ChunkingThe text splits into passages.
- EmbeddingsEach passage becomes a vector.EmbeddingGemma 2
- EntitiesA model tags the landlord, the tenant, and the address.GLiNER2.5
- GraphEach one becomes a node, linked to the same names in other leases.
Why inference first
Mixed content needs a mix of models.
PDFs alone can require OCR, multimodal indexing for semantic text and image searching, chunking and named entity recognition.
- Text layerPages 1โ6 already have text. Antfly keeps it.
- OCRPage 7 is a scan. A model reads it.LightOnOCR 3
- ChunkingThe text splits into passages.
- EmbeddingsEach passage becomes a vector.EmbeddingGemma 2
- EntitiesA model tags the landlord, the tenant, and the address.GLiNER2.5
- GraphEach one becomes a node, linked to the same names in other leases.
One request
โThe Tenant may sublet the Premises, in whole or in part, with the Landlordโs prior written consent.โ
- Tenant
- Rivera Holdings
- Address
- 14 Maple St
- Landlord
- Harbor Property Co.
from the graph
Antfly builds your model pipeline so you don't have to.







How it works
indexes = models(data)
models
OCR, transcription, entity extraction, and embedding.
indexes
Full-text, vector, and graph, built on write, kept current, and rebuilt when a model changes.
retrieval = engine(data + storage + indexes + query)
Hyper configurable.
Inference as code.
The models that read your data belong in your repo, next to the rest of your infrastructure. Try a new one the way you'd roll out any other change.
11 {22 "indexes": {3+ "transcripts_qwen": {4+ "type": "embeddings",5+ "template": "{{transcript}}",6+ "embedder": {7+ "provider": "antfly",8+ "model": "Qwen/Qwen3-Embedding-0.6B-GGUF:q8-0-bundle-v1"9+ }10+ },311 "transcripts": {412 "type": "embeddings",513 "template": "{{transcript}}",614 "embedder": {715 "provider": "antfly",816 "model": "google/embeddinggemma-2:bf16-safetensors-bundle-v1"917 }1018 }1119 }1220 }
- 01
Merge it. Antfly reads the calls you've already stored into the new index, in the background.
- 02
Query both indexes side by side and compare what each one finds.
- 03
When the new one wins, point your queries at it and drop the old index.
Where to use it
- Object storagePoint documents at files in your bucket. Antfly reads them where they are and keeps what the models found.
s3://contracts/lease-2231.pdf - File systemsPoint documents at files on disk. Everything stays local.
file:///Users/you/Contracts/ - PostgresMirror tables as they change, query them in place, or connect with the psql you already use.
psql "host=antfly port=5432" - AntflyMake it the database: documents, tables, graph, and key-value in one engine.
antfly standalone
How to start
- Transcription service
- OCR service
- Embedding API
- Vector store
- Search engine
- Graph database
- Your records database
- The sync code between them
$ antfly standaloneThe same engine runs anywhere.
Build on Antfly
Build an automated knowledge graph pipeline that you don't have to supervise.
Inferencecurl /graphs/knowledge/query -d '{"query":
"MATCH (doc)-[:MENTIONS]->(e) RETURN e.canonical_name"}'





Build a multi-player agent whose memory is a single file.
In your app
antfly_embedded.create("agent.aflite")See the guide
Build a docs site that answers questions, with no backend.
WebAssembly
await instantiateAntflyEmbeddedApiFromUrl("antfly.wasm")See the guide
Build an on-device app to search your videos, photos and documents all at once.
On device
antfly standalone --storage-engine liteSee the guide
Build a corporate brain your whole team and its agents can ask, with everything automatically in sync.
On your server
claude mcp add --transport http antfly /mcp/v1See the guide
Build an automated knowledge graph pipeline that you don't have to supervise.
Inference
curl /graphs/knowledge/query -d '{"query": "MATCH (doc)-[:MENTIONS]->(e) RETURN e.canonical_name"}'See the guide
Bundled with your app
SearchAF uses Antfly to make your Mac hyper searchable.
Built on Antfly Server and Antfly Inference. searchaf.com

Loved by developers at

inยทferยทence
use AI to turn data into intelligence.
Explore models