Unified vector storage and embedding utilities for FlexInfer services
Project description
flexinfer-vector-utils
Unified vector storage and embedding utilities for FlexInfer services.
Features
- Hybrid Embedder: Automatic fallback from OpenAI/vLLM to local
sentence-transformersmodels. - 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]"
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 flexinfer_vector_utils-0.2.1-py3-none-any.whl.
File metadata
- Download URL: flexinfer_vector_utils-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6816385bea7f3749f3f0aab012dbe0610f186b70d4e2cdc4d378e448237737f9
|
|
| MD5 |
ba228194612b967f6685e192d0fb26eb
|
|
| BLAKE2b-256 |
ad32f5e806776f345dc5ae772bc6651ac9d125655b3dccf88b93e6d1d792599b
|