FireworksEmbeddings#
- class langchain_fireworks.embeddings.FireworksEmbeddings[source]#
Bases:
BaseModel
,Embeddings
FireworksEmbeddings embedding model.
Example
from langchain_fireworks import FireworksEmbeddings model = FireworksEmbeddings( model='nomic-ai/nomic-embed-text-v1.5' )
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param fireworks_api_key: SecretStr = SecretStr('')#
- Constraints:
type = string
writeOnly = True
format = password
- param model: str = 'nomic-ai/nomic-embed-text-v1.5'#
- async aembed_documents(texts: List[str]) List[List[float]] #
Asynchronous Embed search docs.
- Parameters:
texts (List[str]) – List of text to embed.
- Returns:
List of embeddings.
- Return type:
List[List[float]]
- async aembed_query(text: str) List[float] #
Asynchronous Embed query text.
- Parameters:
text (str) – Text to embed.
- Returns:
Embedding.
- Return type:
List[float]