Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions libs/agno/agno/embedder/voyageai.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dataclasses import dataclass
from os import getenv
from typing import Any, Dict, List, Optional, Tuple

from agno.embedder.base import Embedder
Expand All @@ -13,10 +14,10 @@

@dataclass
class VoyageAIEmbedder(Embedder):
id: str = "voyage-2"
id: str = "voyage-3-large"
dimensions: int = 1024
request_params: Optional[Dict[str, Any]] = None
api_key: Optional[str] = None
api_key: Optional[str] = getenv("VOYAGE_API_KEY")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in the signature, but you can do this in the init below please

base_url: str = "https://api.voyageai.com/v1/embeddings"
max_retries: Optional[int] = None
timeout: Optional[float] = None
Expand Down
Loading