llama_embed
llama.cpp embedding extension for dense and multivector search
llama_embed · llama.cpp embedding extension for dense and multivector search
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101440 | llama_embed | llama_embed | 0.1.0 | RAG | PostgreSQL | C |
| Relationships | |
|---|---|
| Requires | pgturbohybrid_experimental |
Usage
Sources:
- Official upstream README
- Official extension control file (llama_embed.control)
- Official extension SQL (llama_embed–0.1.0.sql)
llama_embed — llama_embed is the SQL-facing companion extension for running llama.cpp embedding models inside PostgreSQL. It can return dense vector embeddings, token-level vector[] embeddings, or pgturbohybrid multivectors for ColBERT and other late-interaction models. Use it for the corresponding vector, model, or retrieval workflow. Upstream describes this capability as experimental.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
llama_embedis an extension function.llama_embed_model_info(model pg_catalog.text)is an extension function and returnspg_catalog.llama_embed_mvis an extension function.llama_embed_mv_batchis an extension function.llama_embed_sparseis an extension function.llama_embed_sparse_batchis an extension function.llama_embed_sparse_model_infois an extension function.llama_embed_tokensis an extension function.llama_embed_vectoris an extension function.llama_embed_vector_batchis an extension function.
Requirements and Caveats
- The reviewed control file declares default version
0.1.0. - Install the confirmed extension dependencies first:
pgturbohybrid_experimental. - The control file marks the extension as relocatable.
- Upstream labels part or all of the project experimental.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.