A simple, unified interface for generating embeddings from various providers.
Project description
Embedding Suite
A simple, unified interface for generating embeddings from various providers. (This is heavily modeled on Andrew Ng's AI Suite, which does the same thing for Large Language Models.)
Installation
(You'll need to install the provider's SDK separately.)
Pip
pip install embedding-suite
Poetry
poetry add embedding-suite
UV (recommended)
uv add embedding-suite
Example Usage
inputs = ["First sentence", "Second sentence"]
OpenAI
from embedding_suite import EmbeddingSuiteClient
client = EmbeddingSuiteClient(provider_configs={"openai": {
"api_key": "XXX"}})
embeddings = client.generate_embeddings(
model="openai:text-embedding-3-large", inputs=inputs)
Cohere
from embedding_suite import EmbeddingSuiteClient
client = EmbeddingSuiteClient(provider_configs={"cohere": {
"api_key": "XXX"}})
embeddings = client.generate_embeddings(
model="cohere:embed-english-v3.0", inputs=inputs)
VoyageAI
from embedding_suite import EmbeddingSuiteClient
client = EmbeddingSuiteClient(provider_configs={"voyageai": {
"api_key": "XXX"}})
embeddings = client.generate_embeddings(
model="voyage:voyage-3", inputs=inputs)
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
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 embedding_suite-0.1.5.tar.gz.
File metadata
- Download URL: embedding_suite-0.1.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2c653320ca2fbc557cc887f6eb3d2b446078c77dd3db44558662f7ac64a977
|
|
| MD5 |
361f33d0067ce69a1ac6992b053e2529
|
|
| BLAKE2b-256 |
e5e94fb94bfde9afd5038ed5526d4443a3a56baf9b22ace29e4c67ec4a6a5531
|
File details
Details for the file embedding_suite-0.1.5-py3-none-any.whl.
File metadata
- Download URL: embedding_suite-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b7074d8fd2f8d1ec4b2f7a23aebd5972f41c8208cba3083c8d732700d423ada
|
|
| MD5 |
107cd6b8a8891cc745b22e6a440cbfc8
|
|
| BLAKE2b-256 |
5e06627be068fcde259b8957d0d5185c73487ba4512d35b0abce06f82163cd1c
|