
Node Details
- Name: mistralAIEmbeddings
- Type: MistralAIEmbeddings
- Version: 2.0
- Category: Embeddings
Base Classes
- MistralAIEmbeddings
- (Additional base classes from MistralAIEmbeddings)
Parameters
Credential (Required)
- Label: Connect Credential
- Name: credential
- Type: credential
- Credential Names: mistralAIApi
Inputs
-
Model Name (Required)
- Type: asyncOptions
- Default: “mistral-embed”
- Load Method: listModels
-
Batch Size (Optional)
- Type: number
- Default: 512
- Step: 1
-
Strip New Lines (Optional)
- Type: boolean
- Default: true
-
Override Endpoint (Optional)
- Type: string
Functionality
- The node initializes by loading the specified model and setting up the MistralAI Embeddings with the provided parameters.
- It uses the MistralAI API key from the connected credential for authentication.
- The node can handle batch processing of text for embedding generation.
- It offers options to strip new lines from the input text and override the default API endpoint.
Use Cases
- Text similarity comparison
- Semantic search
- Document classification
- Content-based recommendation systems
Input/Output
- Input: Text data to be embedded
- Output: Vector representations (embeddings) of the input text
Additional Notes
- The node dynamically loads available models using the
listModels
method. - It supports customization of batch size for processing efficiency.
- The option to strip new lines can be useful for cleaning input text.
- Advanced users can override the default API endpoint if needed.