Skip to main content

test Release Libraries.io dependency status for GitHub repo


Langchain Memvid

A Langchain implementation for Memvid, enabling efficient video-based document storage and retrieval using vector embeddings.

Memvid revolutionizes AI memory management by encoding text data into videos, enabling lightning-fast semantic search across millions of text chunks with sub-second retrieval times. Unlike traditional vector databases that consume massive amounts of RAM and storage, Memvid compresses your knowledge base into compact video files while maintaining instant access to any piece of information.

Saleban Olow, author of memvid, 5th of June, 2025

Overview

Langchain Memvid is a powerful tool that combines the capabilities of Langchain with video-based document storage. It allows you to store text chunks in video frames using QR codes and retrieve them efficiently using vector similarity search. This approach provides a unique way to store and retrieve information while maintaining visual accessibility.

Features

  • Vector Store Integration: Seamless integration with Langchain's vector store interface
  • Video-based Storage: Store text chunks in video frames using QR codes
  • Efficient Retrieval: Fast similarity search using FAISS indexing
  • Flexible Configuration: Customizable settings for encoding, indexing, and retrieval
  • Multiple Embedding Models: Support for various embedding models through Langchain
  • Granular Control: Access to low-level components for fine-tuned control
  • Comprehensive Testing: Extensive test suite with performance benchmarks

Installation

pip install langchain-memvid

For development and testing:

pip install -e ".[test]"

Quick Start

For a complete quick start guide, see our quickstart.py example.

For detailed explanations and interactive examples, check out quickstart.ipynb.

IPython Extension (Optional)

For enhanced Jupyter notebook and IPython experience, use the optional IPython extension:

%pip install langchain-memvid
%load_ext ipykernel_memvid_extension

The extension provides magic commands for:

  • Displaying data as bullet lists and tables (%as_bullet_list, %as_table)
  • Automatic cleanup of temporary files (%cleanup)
  • Package installation with visual feedback (%pip_install)
  • Sound notifications for cell completion
  • Enhanced progress bars

For detailed usage instructions, see IPYTHON_EXTENSION.md.

Examples

We provide comprehensive examples in multiple formats to help you get started:

📓 Jupyter Notebooks (Interactive)

The most detailed examples with explanations and visual outputs:

📄 Python Scripts (Executable)

Auto-generated Python files from the notebooks:

Running the Examples

  1. Interactive (Recommended): Open the .ipynb files in Jupyter
  2. Script: Run the .py files directly with Python

The Python files are automatically generated when notebooks are executed, ensuring they stay in sync.

Testing

For comprehensive testing information, including unit tests, test coverage, and continuous integration details, see TESTING.md.

Benchmarking

For detailed benchmarking information, including performance tests, benchmark categories, and result interpretation, see BENCHMARKING.md.

Advanced Usage

For comprehensive advanced usage examples, see our advanced.py example.

For detailed explanations and interactive examples, check out advanced.ipynb.

Requirements

  • Python >= 3.12
  • OpenCV or/and ffmpeg
  • FAISS
  • Langchain
  • Other dependencies as specified in pyproject.toml

License

This project is licensed under the BSD-3-Clause License - see the LICENSE file for details.

For information about third-party licenses, see LICENSES.md.

Acknowledgments

  • Langchain for providing the framework and tools for building LLM applications
  • Memvid for the original video-based document storage concept
  • FAISS for efficient similarity search
  • OpenCV for video processing capabilities
  • QRCode for QR code generation
  • Pydantic for data validation

Metadata

Release files for langchain-memvid 0.1.12

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-memvid 0.1.12
File Size Uploaded Provenance Actions
langchain_memvid-0.1.12.tar.gz 59.3 kB Without provenance Details for langchain_memvid-0.1.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-memvid 0.1.12
File Interpreter ABI Platform Actions
langchain_memvid-0.1.12-py3-none-any.whl Python 3 none any Details for langchain_memvid-0.1.12-py3-none-any.whl

Total release size: 99.9 kB

Release files / langchain_memvid-0.1.12.tar.gz

Download URL langchain_memvid-0.1.12.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2cb8a909e47468815a740c87d29f77fe554af61faa90ca0c3750d4950779249f
BLAKE2b-256 checksum
How to use checksums
b5db018688198d031c6588bbf6e56427a9ae753d2268097930ba1023dc37a42a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / langchain_memvid-0.1.12-py3-none-any.whl

Download URL langchain_memvid-0.1.12-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
680ace7d7a375a68daa62be49ab4151a1fb913a99f188c475edda68e3d0b9bdc
BLAKE2b-256 checksum
How to use checksums
7702d970ea2d41eefb3252877c04558ff2c567d287f39917fd1af6de6cf1852d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for langchain-memvid 0.1.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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