Skip to main content

LangChain embeddings for Forge, Voxell's hosted text-embedding API (turbo, pro, ultra tiers). Voxell's Ingot-8B-R3 ranks #1 for English on the public MTEB leaderboard.

Project description

langchain-voxell

LangChain embeddings for Forge, Voxell's hosted text-embedding API.

Voxell's Ingot-8B-R3 ranks #1 for English on the public MTEB leaderboard (English v2), with a 75.98 mean task score across 41 tasks. It is the top usable English embedding model. See the model card, or try Forge with no signup on the playground.

Why Forge

One API, three tiers. Pick your point on the quality and cost curve:

Tier Dim Notes
turbo 1024 fast, low cost
pro 2560 balanced quality and cost
ultra 4096 highest quality, top tier

Matryoshka (MRL) dimensions are real: truncated vectors are re-normalized, so a shorter dim is a unit-norm prefix of the full vector, which means a smaller index with 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


Download files

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

Source Distribution

langchain_voxell-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

langchain_voxell-0.1.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file langchain_voxell-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_voxell-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for langchain_voxell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f9a7875e0f6711d4b267bb63e78d215b2740a2b674d555d50342a7a65fdbc7f2
MD5 5c8c2bcf7eac015ef6e47994a17a732b
BLAKE2b-256 29e14783738b7d54b6141520a2ff516910a0fd846594b1b179a928dae7ef7441

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_voxell-0.1.1.tar.gz:

Publisher: publish.yml on VoxellInc/langchain-voxell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_voxell-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_voxell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31d9d7204bce9fc2b50fb09a21e43f77b42873e51c52be641d26a6cf78cfa06c
MD5 c32111c23b01f3078f8f9b9d46f894ca
BLAKE2b-256 d4fc152127c70e85029c2884e6081555c35056fdf7928a36eec537fa8aae8f5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_voxell-0.1.1-py3-none-any.whl:

Publisher: publish.yml on VoxellInc/langchain-voxell

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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