---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Glossary](/glossary)
3.  Semantic Join

[Back to Glossary](/glossary)

# What is Semantic Join

## Semantic Join - A cross-collection enrichment operation that attaches context from one collection to results from another, using semantic similarity as the join key.

A semantic join is the multimodal equivalent of a SQL JOIN. In structured databases, JOINs combine rows from different tables using foreign keys. In a multimodal warehouse, enrich stages combine results from different collections using embedding similarity or document relationships. This enables cross-referencing without pre-defined foreign keys.

### How It Works

After a retrieval pipeline produces results from one collection (e.g., media library search), an enrich stage queries a second collection (e.g., brand safety scores) to attach contextual data to each result. The join can be by document ID, semantic similarity, or metadata matching.

### Examples

*   Search media library for celebrity appearances → enrich with brand safety scores from a separate collection
*   Find similar products → enrich with pricing and availability from a catalog collection
*   Detect copyrighted audio → enrich with licensing terms from a rights database
*   Find relevant document passages → enrich with author and classification metadata

### Best Practices

*   Use enrich stages after reduce stages to minimize the number of cross-collection lookups
*   Keep enrichment collections focused: one collection per enrichment type (brand scores, rights, metadata)
*   Use semantic joins for fuzzy matching and document\_enrich for exact ID-based joins

### Related Pages

*   Document Enrich stage: /docs/retrieval/stages/document-enrich
*   Retrieval Cookbook: /docs/retrieval/cookbook
*   Blog: Multi-Stage Retrieval Pipelines - /blog/multi-stage-retrieval-pipelines

[One-click templatesStart from a templateEach template deploys a working search app on your own files.Browse templates](/templates)

[Put it to work: search your own files](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=glossary_onramp&utm_campaign=mvs_onramp)

### Related Terms

[ACID](/glossary/acid)[API](/glossary/api)[Blob Storage](/glossary/blob-storage)[CLIP](/glossary/clip)[Embedding](/glossary/embedding)