FireworksEmbedder defaults to nomic-ai/nomic-embed-text-v1.5 with 768 dimensions.
fireworks_embedder.py
Run the Example
1
Set up your virtual environment
2
Export the API key
3
Install dependencies
4
Run the example
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Generate 768-dimensional embeddings through the Fireworks API.
FireworksEmbedder defaults to nomic-ai/nomic-embed-text-v1.5 with 768 dimensions.
from agno.knowledge.embedder.fireworks import FireworksEmbedder
embedder = FireworksEmbedder()
embedding = embedder.get_embedding("The quick brown fox jumps over the lazy dog.")
print(embedding[:5])
print(len(embedding))
Set up your virtual environment
uv venv --python 3.12
source .venv/bin/activate
uv venv --python 3.12
.venv\Scripts\activate
Export the API key
export FIREWORKS_API_KEY=your_fireworks_api_key_here
Install dependencies
uv pip install -U agno openai
Run the example
python fireworks_embedder.py
Was this page helpful?