---
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.  [Code examples](/recipes)
3.  BYO Embeddings Vector Search

Back to code examples

Similar

# BYO Embeddings Vector Search

Bring pre-computed embeddings from any provider (OpenAI, Cohere, Together, etc.) and upsert them directly into MVS for instant vector search. No feature extractors, no pipelines -- just embeddings in, results out.

text

image

Single Tier

[Run in Builder](/build?recipe=mvs-byo-embeddings-search)

"Find DevOps tutorials about container orchestration"

### Why This Matters

Skip the managed pipeline entirely when you already have embeddings. MVS gives you production-grade vector search with filtering, hybrid queries, and multi-tenancy without lock-in to any embedding provider.

Python

cURL

from openai import OpenAI

from mixpeek import Mixpeek

openai \= OpenAI(api\_key\="YOUR\_OPENAI\_KEY")

client \= Mixpeek(api\_key\="YOUR\_API\_KEY")

NAMESPACE \= "byo-docs"

def embed(text):

    return openai.embeddings.create(model\="text-embedding-3-small", input\=text).data\[0\].embedding

\# 1. A standalone namespace for vectors you bring. text-embedding-3-small returns 1536 numbers.

client.namespaces.create(

    namespace\_id\=NAMESPACE,

    mode\="standalone",

    vector\_configs\=\[{"name": "dense", "dimension": 1536, "metric": "cosine"}\],

)

\# 2. Upsert each document with its named vector and a payload

documents \= \[

    {"id": "doc-1", "text": "How to deploy a Kubernetes cluster", "category": "devops"},

    {"id": "doc-2", "text": "Introduction to neural network architectures", "category": "ml"},

    {"id": "doc-3", "text": "Building REST APIs with FastAPI", "category": "backend"},

\]

client.namespaces.documents.upsert(

    namespace\_id\=NAMESPACE,

    documents\=\[

        {"document\_id": d\["id"\], "vectors": {"dense": embed(d\["text"\])}, "payload": {"text": d\["text"\], "category": d\["category"\]}}

        for d in documents

    \],

)

\# 3. Search with a query vector. feature\_uri is the vector name you upserted under.

results \= client.search(

    namespace\_id\=NAMESPACE,

    queries\=\[{

        "feature\_uri": "dense",

        "query": {"input\_mode": "vector", "value": embed("how to set up container orchestration")},

        "top\_k": 5,

    }\],

)

for doc in results\["documents"\]:

    print(round(doc\["score"\], 3), doc.get("category"), doc.get("text"))

### Feature Extractors

### Retriever Stages

feature search

Search and filter documents by vector similarity using feature embeddings

filter

### Documentation

[MVS Overview](https://mixpeek.com/docs/vector-store/overview)[Document Upsert](https://mixpeek.com/docs/vector-store/documents)[Vector Search](https://mixpeek.com/docs/vector-store/overview)

## Related code examples and resources

Pages on the same stages, extractors and patterns.

[

Recipe

### Document Intelligence Search

Extract and search through PDFs, presentations, and documents. Combines OCR, layout analysis, and semantic search for comprehensive document retrieval.

Learn more





](/recipes/document-search-pipeline)[

Recipe

### Multimodal Hybrid Search Pipeline

Combine vector search with keyword search (BM25) across text, images, and video for the most comprehensive multimodal retrieval system.

Learn more





](/recipes/multimodal-hybrid-search)[

Recipe

### Clinical Documentation Structuring

Production-grade pipeline for ingesting clinical documents, scanned charts, EHR exports, wound photos, and therapy notes, and structuring them into coded fields aligned with MDS 3.0, PDPM, and CMS audit requirements. Combines OCR, clinical NER, taxonomy classification, and hybrid retrieval to turn unstructured bedside documentation into queryable, auditable data.

Learn more





](/recipes/clinical-documentation-structuring)[

Recipe

### Dense Search Over Your Own Embeddings, and What Hybrid Needs

Upsert documents you embedded elsewhere into an MVS namespace and search them by raw vector through the features search endpoint. Hybrid BM25 plus dense is not part of a plain BYO upsert: the documents carry dense vectors only and no text index is created. If you want a lexical leg later, declare a TEXT payload index on the field when you create the namespace; this recipe shows that declaration and the dense search that works today.

Learn more





](/recipes/mvs-hybrid-bm25-dense)[

Recipe

### Multimodal Search with MVS

Build multimodal search by embedding different content types (text, images, video frames) with your own models and searching across them in a single MVS namespace. Use CLIP or any multimodal embedding model for cross-modal retrieval.

Learn more





](/recipes/mvs-multimodal-search)[

Recipe

### PDF Data Extraction Pipeline

Extract structured data from PDFs including tables, forms, and text. Convert unstructured documents into structured, queryable data.

Learn more





](/recipes/pdf-extraction-pipeline)