langchain-mixpeek package gives LangChain agents the ability to see video, hear audio, search images, and act on unstructured content — all through Mixpeek’s multimodal infrastructure.
Installation
Quick Start
1. Search (Retriever)
Document with page_content and metadata (document_id, score, namespace).
2. Agent Tool
3. Full Toolkit (search + ingest + classify + cluster + alert)
| Tool | What it does |
|---|---|
mixpeek_search | Search video, images, audio, documents by natural language |
mixpeek_ingest | Upload text, images, video, audio, PDFs, spreadsheets |
mixpeek_process | Trigger feature extraction (embedding, OCR, transcription, face detection) |
mixpeek_classify | Run taxonomy classification on documents |
mixpeek_cluster | Group similar documents (kmeans, dbscan, hdbscan, etc.) |
mixpeek_alert | Set up monitoring with webhook, Slack, or email notifications |
4. VectorStore (full pipeline)
5. Search-Only (minimal config)
If you only need search, skip the bucket/collection config:Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | required | Mixpeek API key (mxp_...) |
retriever_id | str | required | Retriever ID for search (ret_...) |
namespace | str | required | Namespace to operate in |
bucket_id | str | required* | Bucket for uploads (bkt_...) |
collection_id | str | required* | Collection for processing (col_...) |
top_k | int | 10 / 5 | Max results (retriever / tool) |
content_field | str | "text" | Field to use as page_content |
filters | dict | None | Attribute filters (retriever only) |
from_retriever().
Examples
Brand Protection Agent
An agent that scans marketplace listings and alerts on counterfeits:RAG Chain
Standard retrieval-augmented generation:Multi-Retriever Agent
Different retrievers for different content types:Platform Features
The VectorStore exposes the full Mixpeek platform:Taxonomies (document classification)
Clusters (unsupervised grouping)
Alerts (match notifications)
Custom Plugins
Tips
Selecting Toolkit Actions
Don’t give agents tools they don’t need. Useactions to scope:
Error Handling
All toolkit tools catch exceptions and return error strings instead of crashing the agent. The retriever raises exceptions normally.Token Efficiency
Settop_k to limit results. Large result sets waste tokens without improving quality. Start with top_k=5.
Source Code
- PyPI: langchain-mixpeek (Python)
- npm: @mixpeek/langchain (JavaScript)
- GitHub: mixpeek/langchain-mixpeek
- LangChain Docs: Tools · Vector Store
- Connector Page: mixpeek.com/connectors/langchain
Next Steps
MCP Server
Connect Claude directly via the Model Context Protocol
OpenAI Function Calling
Wire Mixpeek into OpenAI assistants
Feature Extractors
15+ extractors: text, image, video, audio, face, PDF, web scraper
Python SDK
Full SDK reference

