Skip to main content
The 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)

Each result is a LangChain Document with page_content and metadata (document_id, score, namespace).

2. Agent Tool

3. Full Toolkit (search + ingest + classify + cluster + alert)

The toolkit gives your agent 6 capabilities:
ToolWhat it does
mixpeek_searchSearch video, images, audio, documents by natural language
mixpeek_ingestUpload text, images, video, audio, PDFs, spreadsheets
mixpeek_processTrigger feature extraction (embedding, OCR, transcription, face detection)
mixpeek_classifyRun taxonomy classification on documents
mixpeek_clusterGroup similar documents (kmeans, dbscan, hdbscan, etc.)
mixpeek_alertSet 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

ParameterTypeDefaultDescription
api_keystrrequiredMixpeek API key (mxp_...)
retriever_idstrrequiredRetriever ID for search (ret_...)
namespacestrrequiredNamespace to operate in
bucket_idstrrequired*Bucket for uploads (bkt_...)
collection_idstrrequired*Collection for processing (col_...)
top_kint10 / 5Max results (retriever / tool)
content_fieldstr"text"Field to use as page_content
filtersdictNoneAttribute filters (retriever only)
*Required for ingest/processing. Not needed for search-only via from_retriever().
The content_field can reference any field in your retriever results — including enrichment fields like trend_insight or brand_alignment. If the field contains a dict with a text key, the text is automatically extracted.

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. Use actions 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

Set top_k to limit results. Large result sets waste tokens without improving quality. Start with top_k=5.

Source Code

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