llama-index-embeddings-ibm
llama-index embeddings IBM watsonx.ai integration
What it is and what it does
This package bridges LlamaIndex's embedding interface with IBM watsonx.ai's foundation models, letting you use IBM's embedding models (such as slate-125m-english-rtrvr-v2) within LlamaIndex workflows. It wraps the ibm-watsonx-ai SDK to handle authentication, model selection, and embedding computation.
You initialize WatsonxEmbeddings with your IBM Cloud credentials, project context, and model choice, then call get_query_embedding() for single strings or get_text_embedding_batch() for multiple texts. The package handles token truncation and API communication with watsonx.ai, making it straightforward to swap IBM models into existing LlamaIndex pipelines that expect an embeddings provider.
Use it for:
- Embed documents and queries using IBM's models within a LlamaIndex retrieval-augmented generation (RAG) pipeline.
- Build semantic search applications that leverage IBM watsonx.ai's multilingual or domain-specific embedding models.
- Integrate IBM's foundation models into LlamaIndex-based applications already using other LLM providers.
- Batch embed large text collections for indexing with LlamaIndex using IBM's infrastructure.
- Evaluate IBM embedding models as an alternative provider within existing LlamaIndex applications.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates IBM watsonx.ai embedding models with LlamaIndex, allowing you to embed text strings using IBM's foundation models through the LlamaIndex API.
Yes, if you are already using LlamaIndex and have access to IBM watsonx.ai. The package has low install friction, active maintenance, no security vulnerabilities, and a permissive license. It is most valuable for teams committed to IBM's cloud platform or evaluating IBM's embedding models; it adds little value if you lack watsonx.ai access or prefer other embedding providers.
Install
llama-index-embeddings-ibm on PyPI
pip
pip install llama-index-embeddings-ibmuv
uv add llama-index-embeddings-ibmpoetry
poetry add llama-index-embeddings-ibmInstalling llama-index-embeddings-ibm
Before you install
Low friction install with three runtime dependencies. Actively maintained as of February 2026 with no known vulnerabilities.
License in practice
MIT license permits commercial and private use with minimal restrictions.
Quickstart
pip install llama-index-embeddings-ibm
from llama_index.embeddings.ibm import WatsonxEmbeddings
watsonx_embedding = WatsonxEmbeddings(
model_id="ibm/slate-125m-english-rtrvr-v2",
url="https://us-south.ml.cloud.ibm.com",
project_id="YOUR_PROJECT_ID"
)
query_result = watsonx_embedding.get_query_embedding("Example query.")
Requires IBM Cloud API key (WATSONX_APIKEY environment variable), project_id or space_id, and network access to IBM watsonx.ai service.
Verify before relying
- Performance characteristics and latency of embedding operations compared to other providers.
- Supported embedding model list and their respective dimensions/capabilities.
- Rate limiting and quota behavior under production load.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — ibm-watsonx-ai, llama-index-core, pyarrow |
| Maintenance | actively maintained — 178 days since the last release |
| First released | |
| Downloads | 85,639/month — #13,912 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: llama_index_embeddings_ibm-0.6.0.post1-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
langchain-ibmIntegrates IBM watsonx.ai models with…
permissive · top 15,000 on PyPI
llama-index-llms-ibmIntegrates IBM watsonx.ai foundation models…
permissive · top 15,000 on PyPI
ibm-watsonx-aiOfficial Python SDK for IBM watsonx.ai that…
permissive · top 5,000 on PyPI
llama-index-embeddings-openaiIntegrates OpenAI's embedding models with…
permissive · top 5,000 on PyPI
llama-index-embeddings-huggingfaceIntegrates Hugging Face embedding models with…
permissive · top 15,000 on PyPI
llama-index-embeddings-langchainIntegrates Langchain embedding models with…
permissive · top 15,000 on PyPI
llama-index-embeddings-azure-openaiIntegrates Azure OpenAI's embedding models with…
permissive · top 15,000 on PyPI
llama-index-embeddings-vertexIntegrates Google Vertex AI embedding models…
permissive · top 15,000 on PyPI
llama-index-embeddings-ollamaIntegrates Ollama's local embedding models with…
permissive · top 15,000 on PyPI
llama-index-vector-stores-milvusIntegrates the Milvus vector database with…
permissive · top 15,000 on PyPI