llama-index embeddings fireworks integration
Project description
LlamaIndex Embeddings Integration: Fireworks
This integration provides support for Fireworks AI embedding models with LlamaIndex.
Fireworks AI offers fast and efficient inference for embedding models. Sign up at fireworks.ai to get an API key.
Installation
pip install llama-index-embeddings-fireworks
Usage
from llama_index.embeddings.fireworks import FireworksEmbedding
# Initialize the embedding model
embed_model = FireworksEmbedding(
api_key="your-api-key", # or set FIREWORKS_API_KEY env var
model_name="nomic-ai/nomic-embed-text-v1.5",
)
# Get embedding for a single text
embedding = embed_model.get_text_embedding("Hello, world!")
# Get embeddings for multiple texts
embeddings = embed_model.get_text_embedding_batch(
["Hello, world!", "How are you?"]
)
# Get query embedding
query_embedding = embed_model.get_query_embedding("What is machine learning?")
Configuration
| Parameter | Description | Default |
|---|---|---|
api_key |
Fireworks API key (or set FIREWORKS_API_KEY env var) |
None |
model_name |
Embedding model to use | nomic-ai/nomic-embed-text-v1.5 |
dimensions |
Output embedding dimensions (if supported by model) | None |
embed_batch_size |
Batch size for embedding requests | 10 |
timeout |
Request timeout in seconds | 60.0 |
max_retries |
Maximum number of retries | 10 |
Environment Variables
FIREWORKS_API_KEY: Your Fireworks API keyFIREWORKS_API_BASE: Custom API base URL (optional)
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 llama_index_embeddings_fireworks-0.5.2.tar.gz.
File metadata
- Download URL: llama_index_embeddings_fireworks-0.5.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd0b61769350634cee92456a37dd07330bfd37bdcbb4afc2adb15e2353e00cb7
|
|
| MD5 |
a6a9b5ac9b32d2a57fa525c7ab712549
|
|
| BLAKE2b-256 |
dd3c1d79bbe812e20f3a71afe05e8ad94dca3dfd01b7d61d3532fb3a3631204f
|
File details
Details for the file llama_index_embeddings_fireworks-0.5.2-py3-none-any.whl.
File metadata
- Download URL: llama_index_embeddings_fireworks-0.5.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
480f7985fde9068f4107a0fcaab90dfab53e6b933fdb67f35553569ae78126be
|
|
| MD5 |
5779788a501376ec9b8757ff756b78fe
|
|
| BLAKE2b-256 |
1b09437ccd1352ef628bb2b393a397cbc01a1cdd475b4a1bb6bcc55e58754cf4
|