LangChain embeddings for Forge — Voxell's text-embedding API (turbo/pro/ultra; ultra = Qwen3-Embedding-8B, ~75+ avg MTEB, #4 English).
Project description
langchain-voxell
LangChain embeddings for Forge — Voxell's hosted text-embedding API.
Why Forge
One API, three tiers — pick your point on the quality/cost curve:
| Model | Dim | Notes |
|---|---|---|
turbo |
1024 | fast, low cost |
pro |
2560 | |
ultra |
4096 | Qwen3-Embedding-8B; ~75+ avg task score on MTEB, currently #4 on MTEB (English) — the top usable model (the three above are research-only) |
Matryoshka (MRL) dimensions are real: truncated vectors are re-normalized, so a shorter dim is a
unit-norm prefix of the full vector — smaller index, minimal quality loss. Forge logs request
metadata only (model, tokens, latency) — never your text or vectors.
Install
pip install langchain-voxell
Usage
from langchain_voxell import ForgeEmbeddings
# FORGE_API_KEY is read from the environment; or pass api_key=...
emb = ForgeEmbeddings(model="turbo")
doc_vectors = emb.embed_documents(["the quick brown fox", "lazy dog"])
query_vector = emb.embed_query("fast animal")
embed_query and embed_documents set the Forge input_type (query / document) for you.
Async
vectors = await emb.aembed_documents(["alpha", "beta"])
q = await emb.aembed_query("a search query")
Matryoshka (shorter vectors)
emb = ForgeEmbeddings(model="turbo", dimensions=256) # re-normalized 256-d vectors
With a vector store
from langchain_community.vectorstores import FAISS
from langchain_voxell import ForgeEmbeddings
store = FAISS.from_texts(["doc one", "doc two"], ForgeEmbeddings(model="pro"))
hits = store.similarity_search("query", k=2)
Configuration
| Arg | Default | Notes |
|---|---|---|
model |
"turbo" |
turbo | pro | ultra |
api_key |
FORGE_API_KEY env |
get one at dash.voxell.ai |
base_url |
https://api.voxell.ai |
|
dimensions |
None |
Matryoshka truncation, e.g. 256 |
timeout |
30.0 |
seconds |
License
MIT © Voxell, Inc.
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 langchain_voxell-0.1.0.tar.gz.
File metadata
- Download URL: langchain_voxell-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47fc67f4c11256ab841acefd22c85d66b24736c5919e73747663871a22115690
|
|
| MD5 |
122918689d19dfd1f649f74a2e8ee849
|
|
| BLAKE2b-256 |
38b3da65d6f39322baa0b78560f83a8404f36825e9b8ab209493338adee616cf
|
File details
Details for the file langchain_voxell-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_voxell-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
489de0c17bd2f55debedb1f78d68964d211f3ca8dcdbc1f57dbde37310ca3b64
|
|
| MD5 |
2cb34d27db87893026eff8916054565f
|
|
| BLAKE2b-256 |
e8047c0021fa044ae9c9ffdd1ba26b30a24e74a1779be70443aa3411fbbbe97b
|