Skip to main content

🦜️🔗 LangChain Milvus

License Twitter Twitter

This repository contains the Milvus integration package for LangChain:

  • langchain-milvus - A powerful integration between LangChain and Milvus, enabling vector search and retrievers for AI applications.

Overview

LangChain Milvus provides seamless integration between LangChain, a framework for building applications with large language models (LLMs), and Milvus, a powerful vector database designed for similarity search and AI applications. This integration enables efficient vector storage and retrieval for AI applications like semantic search, recommendation systems, and RAG (Retrieval Augmented Generation).

Features

  • Vector Storage: Store embeddings from any LangChain embedding model in Milvus
  • Similarity Search: Perform efficient similarity searches on vector data
  • Hybrid Search: Combine vector search with keyword search for improved results
  • Maximal Marginal Relevance: Filter for diversity in search results
  • Multiple Vector Fields: Support for multiple vector fields in a single collection
  • Sparse Embeddings: Support for sparse vector embeddings
  • Built-in Functions: Support for Milvus built-in functions like BM25
  • Async Support: Full support for async operations and APIs

Installation

pip install -U langchain-milvus

Usage

  • Basic Usage: Learn how to get started with basic vector operations in Milvus using LangChain.

  • Build RAG(Retrieval Augmented Generation): Discover how to build powerful RAG applications by combining LangChain with Milvus.

  • Full-text Search: Explore how to implement full-text search capabilities using LangChain and Milvus.

  • Hybrid Search: Learn how to combine vector and keyword search for more accurate results.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for langchain-milvus 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-milvus 0.4.0
File Size Uploaded
langchain_milvus-0.4.0.tar.gz 36.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-milvus 0.4.0
File Interpreter ABI Platform
langchain_milvus-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 75.5 kB

Release files / langchain_milvus-0.4.0.tar.gz

Download URL langchain_milvus-0.4.0.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5fd962874bd0fec1dfd87513610807fcf7abf8c1ec8a868819c0b02483c9708f
BLAKE2b-256 checksum
How to use checksums
2556a763b0cd81d1e70df8d1b4dd409f03e90968c42db86046d973b516c05b63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / langchain_milvus-0.4.0-py3-none-any.whl

Download URL langchain_milvus-0.4.0-py3-none-any.whl
Size 39.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c60611cb244928a5fc6c4e905fcd0efa146ef1d2c26edf0a907bc844da3d7ff0
BLAKE2b-256 checksum
How to use checksums
f617985a3c214d21a660b6b8ae707d5c231f2aaa27b2a464b1906a3c4d6184d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page