
6/5/2024 · Stephen Batifol
What this post added
This post introduces the integration of embedding and reranking models within the PyMilvus SDK, enabling users to generate dense and sparse vectors and apply reranking for improved search relevance. It demonstrates practical usage with Milvus Lite, covering dense embeddings using `DefaultEmbeddingFunction` (e.g., `all-MiniLM-L6-v2`), sparse embeddings with `BM25EmbeddingFunction` (including fitting and saving model parameters), and reranking with `JinaRerankFunction`. The post details the installation of the `pymilvus[model]` package and provides code examples for each integration.