Mixpeek API
Project description
Mixpeek Python SDK
The official Python client for the Mixpeek API.
Install
pip install mixpeek
Quickstart
from mixpeek import Mixpeek
client = Mixpeek(api_key="YOUR_API_KEY")
# Create a standalone namespace
client.namespaces.create(namespace_id="my-search", mode="standalone")
# Upsert documents with your own vectors
client.namespaces.documents.upsert(
namespace_id="my-search",
documents=[{
"document_id": "doc-001",
"vectors": {"embedding": [0.12, -0.34, 0.56]},
"payload": {"title": "First document", "category": "demo"},
}],
)
# Search (vectors are searchable within ~10-30 seconds of upsert)
results = client.search(
namespace_id="my-search",
queries=[{
"vector_name": "embedding",
"vector": [0.15, -0.28, 0.44],
"top_k": 10,
}],
)
Authentication
Pass your API key directly or set the MIXPEEK_API_KEY environment variable:
# Explicit
client = Mixpeek(api_key="sk_...")
# From environment
import os
os.environ["MIXPEEK_API_KEY"] = "sk_..."
client = Mixpeek()
Namespace-scoped operations
Set a default namespace to avoid passing it on every call:
client = Mixpeek(api_key="sk_...", namespace="ns_abc123")
# Uses the default namespace
results = client.search(query="red shoes", collection="products", limit=20)
Resources
The client exposes resource managers for the full API:
client.namespaces # create, list, get, delete
client.namespaces.documents # upsert (BYO vectors)
client.buckets # create, list, get, delete, upload
client.collections # create, list, get, delete, trigger
client.retrievers # create, list, get, delete, execute
client.documents # list, get, delete, update, search
Requirements
- Python 3.9+
- No heavy dependencies (uses
urllib3for HTTP)
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mixpeek-1.3.6.tar.gz
(1.2 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mixpeek-1.3.6.tar.gz.
File metadata
- Download URL: mixpeek-1.3.6.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2dffd02eb5c397bb2de47e927d22dc1eff8aaacfe1fb5c1afe10a08e327c155
|
|
| MD5 |
59bb18c9da5b30e3d5489b7ad02516b9
|
|
| BLAKE2b-256 |
d904d6ee557a16aa8884a0d98c89b251f2c000650b95360e201c35b71eb1dd90
|
File details
Details for the file mixpeek-1.3.6-py3-none-any.whl.
File metadata
- Download URL: mixpeek-1.3.6-py3-none-any.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
221529e572726c4d444734f10e43d3b99032c14cccd83d72ec63c7356af4f9b1
|
|
| MD5 |
19dd78d420df430395e7d38e576f2d1a
|
|
| BLAKE2b-256 |
2802feb1d38454f311c24ed861578f01cf6118d2ad30902bf23478bbb5a1a5ce
|