Skip to main content

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 key
  • FIREWORKS_API_BASE: Custom API base URL (optional)

Metadata

Release files for llama-index-embeddings-fireworks 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-embeddings-fireworks 0.7.0
File Size Uploaded Provenance Actions
llama_index_embeddings_fireworks-0.7.0.tar.gz 4.5 kB Without provenance Details for llama_index_embeddings_fireworks-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-embeddings-fireworks 0.7.0
File Interpreter ABI Platform Actions
llama_index_embeddings_fireworks-0.7.0-py3-none-any.whl Python 3 none any Details for llama_index_embeddings_fireworks-0.7.0-py3-none-any.whl

Total release size: 9.1 kB

Release files / llama_index_embeddings_fireworks-0.7.0.tar.gz

Download URL llama_index_embeddings_fireworks-0.7.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2522a255530c197d75c006a9d879997c76bfa543d6d12cfc5bbaa4130bd28ba3
BLAKE2b-256 checksum
How to use checksums
d23d91463b5fb7adbb38c4ade924cf6f26c28dda171427ea0cea20838153bf06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / llama_index_embeddings_fireworks-0.7.0-py3-none-any.whl

Download URL llama_index_embeddings_fireworks-0.7.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9092c184af8c51f46932bb90aa697cd92d9752c2219980b4c9e64a05adb3b29f
BLAKE2b-256 checksum
How to use checksums
aefe33a80f8ec81a77c96f4803a5e38260619d544b00b488d2e476d9b23c94ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for llama-index-embeddings-fireworks 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page