@n8n/n8n-nodes-langchain
Version:

44 lines (38 loc) • 1.22 kB
text/typescript
/**
* Embeddings Mistral Cloud Node - Version 1
* Use Embeddings Mistral Cloud
*/
export interface LcEmbeddingsMistralCloudV1Params {
/**
* The model which will compute the embeddings. <a href="https://docs.mistral.ai/platform/endpoints/">Learn more</a>.
* @default mistral-embed
*/
model?: string | Expression<string>;
/**
* Additional options to add
* @default {}
*/
options?: {
/** Maximum number of documents to send in each request
* @default 512
*/
batchSize?: number | Expression<number>;
/** Whether to strip new lines from the input text
* @default true
*/
stripNewLines?: boolean | Expression<boolean>;
};
}
export interface LcEmbeddingsMistralCloudV1Credentials {
mistralCloudApi: CredentialReference;
}
interface LcEmbeddingsMistralCloudV1NodeBase {
type: '@n8n/n8n-nodes-langchain.embeddingsMistralCloud';
version: 1;
credentials?: LcEmbeddingsMistralCloudV1Credentials;
isTrigger: true;
}
export type LcEmbeddingsMistralCloudV1ParamsNode = LcEmbeddingsMistralCloudV1NodeBase & {
config: NodeConfig<LcEmbeddingsMistralCloudV1Params>;
};
export type LcEmbeddingsMistralCloudV1Node = LcEmbeddingsMistralCloudV1ParamsNode;