Skip to main content

Vectros AI Platform SDK — hybrid search, document ingestion, structured records, and inference for your application.

Project description

Vectros SDK for Python

pypi license

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 & RAGclient.search, client.inference — vector + keyword search and grounded document Q&A over your indexed corpus.
  • Documents & foldersclient.documents, client.folders — ingest, organize, retrieve, and look documents up by field.
  • Structured recordsclient.records — create, read, update (full and partial), delete, and look records up by indexed field.
  • Schemasclient.schemas — define and evolve record/document schemas.
  • Identity & accessclient.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.

Documentation

License

Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vectros-0.29.9.tar.gz (232.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vectros-0.29.9-py3-none-any.whl (359.1 kB view details)

Uploaded Python 3

File details

Details for the file vectros-0.29.9.tar.gz.

File metadata

  • Download URL: vectros-0.29.9.tar.gz
  • Upload date:
  • Size: 232.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for vectros-0.29.9.tar.gz
Algorithm Hash digest
SHA256 8f3c56edc2d53a79c1a2b2f0ed77568066512188a0088c5d5edba75eb9b808c7
MD5 78a5b46bd1542a8145e91e55ece3e179
BLAKE2b-256 a5775cf6ba599fdfa89292b8d2d0b9d1542aacaa350d8b06c43f241199fc461a

See more details on using hashes here.

File details

Details for the file vectros-0.29.9-py3-none-any.whl.

File metadata

  • Download URL: vectros-0.29.9-py3-none-any.whl
  • Upload date:
  • Size: 359.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for vectros-0.29.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8342320cb7e5581fd2af9decbcb4d0f37bf9144bea008fa05813c99ee0f8a002
MD5 97b4c5288feb4f71a493be97d2a73162
BLAKE2b-256 88e6d3bcaa4be9777b746c7543f09962b8df5a873f648e64b53332c51f26e70c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page