Skip to main content

Banner

flexinfer-vector-utils

Header

pipeline status coverage report

Unified vector storage and embedding utilities for FlexInfer services.

Features

  • Hybrid Embedder: Automatic fallback from OpenAI/vLLM to local sentence-transformers models.
  • Qdrant Storage: Generalized async client for Qdrant collection management and search.
  • Batching: Optimized batch processing for high-throughput embedding generation.

Usage

Embeddings

from vector_utils.embeddings import HybridEmbedder

# Tries OpenAI -> vLLM -> Local fallback
embedder = HybridEmbedder(
    openai_api_key="...",
    enable_local_fallback=True
)

embeddings = await embedder.embed_batch(["text1", "text2"])

Vector Store

from vector_utils.store import QdrantStore, VectorItem

store = QdrantStore(url="http://qdrant:6333", collection_name="docs")
await store.initialize()

await store.upsert([
    VectorItem(id="1", vector=[0.1, ...], payload={"type": "doc"})
])

Installation

pip install flexinfer-vector-utils
# With local fallback support
pip install "flexinfer-vector-utils[local]"

Metadata

Release files for flexinfer-vector-utils 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for flexinfer-vector-utils 0.2.1
File Interpreter ABI Platform
flexinfer_vector_utils-0.2.1-py3-none-any.whl Python 3 none any Details

Release files / flexinfer_vector_utils-0.2.1-py3-none-any.whl

Download URL flexinfer_vector_utils-0.2.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6816385bea7f3749f3f0aab012dbe0610f186b70d4e2cdc4d378e448237737f9
BLAKE2b-256 checksum
How to use checksums
ad32f5e806776f345dc5ae772bc6651ac9d125655b3dccf88b93e6d1d792599b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for flexinfer-vector-utils 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page