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:

4. VectorStore (full pipeline)

5. Search-Only (minimal config)

If you only need search, skip the bucket/collection config:

Configuration

*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