Skip to main content

Models & input types

Ahnlich AI ships with a set of pre-trained models. Think of them in five families — pick the family that matches your data, then pick a size. Every model lists an embedding dim: two models are compatible (usable as index + query in one store) only when their dims match.

Each model name links to its source. The mark is a Hugging Face model card; the mark is a project repository.

📝 Text models

For sentences, paragraphs, FAQs, product descriptions — anything written.

Modelstring nameMax inputEmbedding dimBest for
ALL-MiniLM-L6-v2all-minilm-l6-v2256 tokens384Fast, lightweight semantic similarity (FAQ search, chatbots).
ALL-MiniLM-L12-v2all-minilm-l12-v2256 tokens384Higher accuracy for nuanced text, a bit more compute.
BGE-Base-EN-v1.5bge-base-en-v1.5512 tokens768Balanced speed/quality for production.
BGE-Large-EN-v1.5bge-large-en-v1.5512 tokens1024Highest precision when latency matters less.

🖼️ Image models

For photos, product pictures, and other images.

Modelstring nameMax inputEmbedding dimBest for
ResNet-50resnet-50224×224 px2048Image-to-image similarity and clustering.
CLIP ViT-B/32 (image)clip-vit-b32-image224×224 px512The image half of text↔image search (pairs with the CLIP text model).

🧑 Face models

Detect and recognize faces in an image. These return one embedding per detected face, plus metadata (bounding box, confidence, optional age/gender).

Modelstring nameMax inputEmbedding dimBest for
Buffalo-Lbuffalo-l640×640 px512Detection + recognition, with optional age/gender. Non-commercial use only.
SFace + YuNetsface-yunet640×640 px128Lightweight detection + recognition. Apache 2.0 / MIT — commercially usable.

See model constraints for their input rules.

🔊 Audio models

For sound clips — music, speech, effects.

Modelstring nameMax inputEmbedding dimBest for
CLAP (audio)clap-audio10 sec512Audio similarity; the audio half of text↔audio search.

See audio constraints.

💻 Code models

For source code across many languages.

Modelstring nameMax inputEmbedding dimBest for
Jina Code v2jina-embeddings-v2-base-code8192 tokens768Code search over 30+ languages — see Code search.

Cross-modal pairs

Some models come as a matched pair that share a dimension, so you can index one modality and query with another. Use one as the INDEXMODEL and its partner as the QUERYMODEL.

Text encoderMedia encoderShared dimEnables
clip-vit-b32-text (77 tokens) clip-vit-b32-image512Text-to-image / image-to-text search
clap-text (512 tokens) clap-audio512Text-to-audio / audio-to-text search
# search product photos with words: index images, query with textCREATESTORE lookbook INDEXMODEL clip-vit-b32-image QUERYMODEL clip-vit-b32-text

Supported input types

Whatever the model, you hand the proxy one of three raw input kinds and it does the embedding:

Input typeWhat it isEmbedded by
RAW_STRINGNatural text — sentences, paragraphs, codea text/code model
IMAGEAn image filean image or face model
AUDIOAn audio clipan audio model

Quick pick

If you're working with…Start with
Text, and want speedall-minilm-l6-v2
Text, and want accuracybge-large-en-v1.5
Images onlyresnet-50
Searching images by textCLIP pair (clip-vit-b32-*)
Faces (commercial)sface-yunet
AudioCLAP pair (clap-*)
Source codejina-embeddings-v2-base-code