Vectros AI Platform SDK — hybrid search, document ingestion, structured records, and inference for your application.
Project description
Vectros SDK for Python
The official Python client for the Vectros API — hybrid search, document ingestion, structured records, and grounded inference for your application.
Installation
pip install vectros
Requires Python 3.8+.
Quick start
import os
from vectros import VectrosApi
client = VectrosApi(
base_url="https://api.vectros.ai",
token=os.environ["VECTROS_API_KEY"], # sk_live_... or sk_test_...
)
# Hybrid (keyword + semantic) search over your indexed content
results = client.search.content(
query="patient intake form diabetes",
)
# Ingest a document — extracted, chunked, and indexed for search + RAG
doc = client.documents.ingest_document(
title="Patient Intake Form — Jane Doe",
)
# Write a structured record against one of your schemas
record = client.records.create_record(
type_name="intake_form",
schema_id="6ba7b810-9dad-11d1-80b4-00c04fd430c8",
payload={"first_name": "Jane", "email": "jane@example.com"},
)
An AsyncVectrosApi with the same surface is available for asyncio.
Authentication
The SDK sends whatever credential you pass in the Authorization: Bearer <token>
header. Two credential types are accepted:
| Type | Prefix | Lifetime | Use from |
|---|---|---|---|
| API key | sk_live_* / sk_test_* |
Long-lived | Server only — full tenant access |
| Scoped token | st_* |
Short-lived | Server or browser — narrowed scope, auto-expiring |
Keep API keys server-side only. For untrusted runtimes, mint a short-lived
scoped token on your backend and pass it as token. See the
authentication guide for the full pattern.
What you can do
- Hybrid search & RAG —
client.search,client.inference— vector + keyword search and grounded document Q&A over your indexed corpus. - Documents & folders —
client.documents,client.folders— ingest, organize, retrieve, and look documents up by field. - Structured records —
client.records— create, read, update (full and partial), delete, and look records up by indexed field. - Schemas —
client.schemas— define and evolve record/document schemas. - Identity & access —
client.identity,client.auth— manage clients, organizations, and users; mint and revoke scoped credentials.
Full API reference
Every method, parameter, and type is documented in
reference.md.
Rate limits
Requests are rate limited per account on a fixed one-minute window — writes, searches, and
inference count against it; reads do not. When you exceed the limit the API returns HTTP 429
with a Retry-After header (seconds until the window resets) plus X-RateLimit-Limit and
X-RateLimit-Remaining. Honor Retry-After (or back off exponentially with jitter), and pace
bulk work so your steady rate stays under your plan's per-minute budget. See the
rate limits guide for the
per-plan limits.
Documentation
- Guides & reference: docs.vectros.ai
- Product: vectros.ai
License
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
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 vectros-0.32.0.tar.gz.
File metadata
- Download URL: vectros-0.32.0.tar.gz
- Upload date:
- Size: 246.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cca0abb175e276c1ad13f3f593a9c776637dc124e1354cea61eaf1f4c7beeea3
|
|
| MD5 |
474d4a78d273cbb0b025989bd6598d98
|
|
| BLAKE2b-256 |
f0292ad27d5fb3fc065e70e4e8e21a48c9cc74cbcecde7d061734ad28d230b51
|
File details
Details for the file vectros-0.32.0-py3-none-any.whl.
File metadata
- Download URL: vectros-0.32.0-py3-none-any.whl
- Upload date:
- Size: 376.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446b9bd35d3623716c26d92dcb48b6a23e514652e49c8bd88b2f08871c2c334d
|
|
| MD5 |
154339a19ad7baa755096f2e9ed62283
|
|
| BLAKE2b-256 |
2e2a38462326e888331e62db61af7f8e5d855a1171789a688a617a962e8bd6c1
|