@n8n/n8n-nodes-langchain
Version:
48 lines (42 loc) • 1.83 kB
text/typescript
/**
* Embeddings AWS Bedrock Node - Version 1
* Use Embeddings AWS Bedrock
*/
export interface LcEmbeddingsAwsBedrockV1Params {
authentication?: 'iam' | 'assumeRole' | Expression<string>;
/**
* The model or inference profile which will generate the embeddings. <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/foundation-models.html">Learn more</a>.
* @loadOptionsMethod listModels
*/
model?: string | Expression<string>;
/**
* Additional options to add
* @default {}
*/
options?: {
/** Model-specific request fields passed through as JSON (e.g. Titan <code>dimensions</code>/<code>normalize</code>, Cohere <code>input_type</code>/<code>truncate</code>). See the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">AWS model parameters docs</a>.
* @default {}
*/
additionalModelRequestFields?: IDataObject | string | Expression<string>;
/** Maximum number of retries to attempt when a request fails
* @default 2
*/
maxRetries?: number | Expression<number>;
/** Maximum amount of time a request is allowed to take in milliseconds. Set to 0 to disable.
* @default 60000
*/
timeout?: number | Expression<number>;
};
}
export interface LcEmbeddingsAwsBedrockV1Credentials {
aws: CredentialReference;
awsAssumeRole: CredentialReference;
}
interface LcEmbeddingsAwsBedrockV1NodeBase {
type: '@n8n/n8n-nodes-langchain.embeddingsAwsBedrock';
version: 1;
}
export type LcEmbeddingsAwsBedrockV1ParamsNode = LcEmbeddingsAwsBedrockV1NodeBase & {
config: NodeConfig<LcEmbeddingsAwsBedrockV1Params> & { credentials?: LcEmbeddingsAwsBedrockV1Credentials };
};
export type LcEmbeddingsAwsBedrockV1Node = LcEmbeddingsAwsBedrockV1ParamsNode;