skillfed

pymilvus.model

Model components for PyMilvus, the Python SDK for Milvus

pymilvus-model v0.3.2 399.4K downloads/30d#6,947 on PyPI60
Permissive license AGING released

What it is and what it does

pymilvus-model is a library that bridges embedding and reranking models with Milvus, an open-source vector database for AI applications. It abstracts away the complexity of integrating different model providers—including commercial services like OpenAI and Voyage AI, as well as open-source options via SentenceTransformers and Hugging Face—so you can generate embeddings or rerank results without writing provider-specific integration code.

The package depends on transformers, onnxruntime, scipy, protobuf, and numpy to handle model loading, inference, and numerical operations. It is designed to work with Python 3.8 and above. The library is intended for developers building AI search or retrieval systems who need a standard way to generate or rerank embeddings.

Use it for:

  • Generate embeddings from text using OpenAI, Cohere, or open-source models and store them in a vector database for semantic search.
  • Rerank search results using different reranker models to improve relevance without reindexing.
  • Build a retrieval-augmented generation pipeline where embeddings are created and managed through a unified interface.
  • Integrate SentenceTransformers models into an application without writing custom model loading code.
  • Switch between embedding providers with minimal code changes.

Worth the install?

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

Provides embedding and reranker model integrations for Milvus vector database, supporting OpenAI, Voyage AI, Cohere, SentenceTransformers, and Hugging Face models.

Yes, if you need a standard way to integrate embedding or reranking models with Milvus. The package has low install friction, permissive licensing, and no known vulnerabilities. However, the aging maintenance status (501 days since last release) warrants checking that its dependencies remain compatible with your environment.

Install

pymilvus-model on PyPI

pip

pip install pymilvus-model

uv

uv add pymilvus-model

poetry

poetry add pymilvus-model

Installing pymilvus.model

Before you install

Low install friction with a pure-wheel distribution. Maintenance status is aging—last release was 501 days ago—but the repository remains active, suggesting ongoing support.

License in practice

Licensed under Apache Software License (permissive), allowing commercial use and modification with minimal restrictions.

Quickstart

pip install pymilvus.model

from pymilvus_model.dense import SentenceTransformerEmbeddingFunction

embedding_fn = SentenceTransformerEmbeddingFunction()
embeddings = embedding_fn(["hello world"])

Requires Python 3.8 or above. Depending on the model provider chosen, you may need API keys or additional model files downloaded by transformers.

Verify before relying

  • Whether the package receives active maintenance independent of parent project releases or only through bundled updates.
  • Current state of compatibility with the latest versions of transformers, onnxruntime, scipy, protobuf, and numpy.
  • Whether pymilvus-model is included as a dependency in pymilvus or installed separately.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 5 — transformers, onnxruntime, scipy, protobuf, numpy
Maintenance aging — 501 days since the last release
Last repo commit
First released
Downloads 399,404/month — #6,947 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pymilvus_model-0.3.2-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3

Tags

milvus embedding modelsvector database model integrationtext embedding for milvusreranker models milvussentence transformers milvushugging face embeddings milvusopenai embeddings milvus
vector-databaseembeddingsmodel-integration

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

langchain-milvus

Integrates LangChain with Milvus vector…

permissive · top 15,000 on PyPI

llama-index-embeddings-huggingface

Integrates Hugging Face embedding models with…

permissive · top 15,000 on PyPI

milvus-lite

Milvus Lite is a pure-Python local vector…

permissive · top 5,000 on PyPI

llama-index-vector-stores-milvus

Integrates the Milvus vector database with…

permissive · top 15,000 on PyPI

sentence-transformers

Computes embeddings and reranking scores for…

permissive · top 1,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

voyageai

Provides Python access to Voyage AI's embedding…

permissive · top 5,000 on PyPI

pyobvector

pyobvector is a Python SDK for OceanBase Vector…

permissive · top 15,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

fastembed

FastEmbed generates vector embeddings for text,…

permissive · top 5,000 on PyPI