skillfed

llama-index-embeddings-ollama

llama-index embeddings ollama integration

llama-index-embeddings-ollama v0.9.0 171.4K downloads/30d#10,369 on PyPI
Permissive license MIT Active released

What it is and what it does

This package bridges Ollama, a tool for running large language models locally, with LlamaIndex's embedding and retrieval infrastructure. It provides a drop-in embedding provider that generates vector representations of text using Ollama models running on your machine or a remote server, enabling private, offline-capable semantic search and document indexing without reliance on external APIs.

The integration supports both synchronous and asynchronous embedding generation, batch processing, and configuration options like query/text instructions and model keep-alive settings. It works seamlessly with LlamaIndex's VectorStoreIndex and other retrieval components, allowing you to build RAG systems entirely on local infrastructure.

Use it for:

  • Build a private document search system using local embedding models without sending data to external services.
  • Create offline-capable semantic search for applications that must work without internet connectivity.
  • Integrate Ollama embeddings into LlamaIndex retrieval pipelines for cost-effective large-scale indexing.
  • Combine local embeddings with Ollama LLMs to run end-to-end generative AI workflows on-premises.
  • Batch-embed large document collections using configurable batch sizes and model memory management.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Ollama's local embedding models with LlamaIndex for generating text embeddings without external API calls.

Yes. Low install friction, active maintenance, MIT license, and no known vulnerabilities make this a straightforward choice for anyone building LlamaIndex applications with local Ollama infrastructure. Install it if you're already running Ollama and want seamless vector embedding support; skip it if you rely on cloud embedding APIs.

Install

llama-index-embeddings-ollama on PyPI

pip

pip install llama-index-embeddings-ollama

uv

uv add llama-index-embeddings-ollama

poetry

poetry add llama-index-embeddings-ollama

Installing llama-index-embeddings-ollama

Before you install

Low friction: pure Python wheel with only three runtime dependencies (llama-index-core, ollama, pytest-asyncio). Active maintenance status with recent release.

License in practice

MIT license permits commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install llama-index-embeddings-ollama

from llama_index.embeddings.ollama import OllamaEmbedding

embed_model = OllamaEmbedding(
    model_name="nomic-embed-text",
    base_url="http://localhost:11434"
)
embedding = embed_model.get_text_embedding("Hello, world!")

Ollama must be installed and running locally (or on a remote server) with an embedding model already pulled before use.

Verify before relying

  • Performance characteristics and latency compared to cloud-based embedding APIs.
  • Memory and CPU requirements for different embedding models on typical hardware.
  • Compatibility with specific versions of llama-index-core beyond the stated dependency.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — llama-index-core, ollama, pytest-asyncio
Maintenance actively maintained — 155 days since the last release
First released
Downloads 171,402/month — #10,369 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: llama_index_embeddings_ollama-0.9.0-py3-none-any.whl

Tags

local embedding modelsollama embeddingsllamaindex integrationoffline text embeddingsvector embeddings localembedding generationprivate embeddings
embeddingslocal-inferencerag

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

llama-index-embeddings-google-genai

Integrates Google's Gemini and Vertex AI…

permissive · top 15,000 on PyPI

llama-index-embeddings-langchain

Integrates Langchain embedding models with…

permissive · top 15,000 on PyPI

llama-index-embeddings-bedrock

Provides Amazon Bedrock embedding models…

permissive · top 5,000 on PyPI

llama-index-embeddings-vertex

Integrates Google Vertex AI embedding models…

permissive · top 15,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

llama-index-embeddings-huggingface

Integrates Hugging Face embedding models with…

permissive · top 15,000 on PyPI

fastembed

FastEmbed generates vector embeddings for text,…

permissive · top 5,000 on PyPI

llama-index-vector-stores-qdrant

Integrates Qdrant vector database with…

permissive · top 15,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

ollama

Provides a Python client to interact with…

permissive · top 5,000 on PyPI