UNPKG

@n8n/n8n-nodes-langchain

Version:
51 lines (45 loc) • 1.52 kB
/** * Embeddings Databricks Node - Version 1 * Use Databricks Embeddings */ export interface LcEmbeddingsDatabricksV1Params { /** * The Unity AI Gateway model service. Choose from the list, or enter its full name (catalog.schema.service). * @searchListMethod searchModels * @default {"mode":"list","value":""} */ model?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: 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>; /** Maximum amount of time a request is allowed to take in milliseconds * @default 360000 */ timeout?: number | Expression<number>; /** Maximum number of retries to attempt * @default 2 */ maxRetries?: number | Expression<number>; }; } export interface LcEmbeddingsDatabricksV1Credentials { databricksOAuth2Api: CredentialReference; } interface LcEmbeddingsDatabricksV1NodeBase { type: '@n8n/n8n-nodes-langchain.embeddingsDatabricks'; version: 1; } export type LcEmbeddingsDatabricksV1ParamsNode = LcEmbeddingsDatabricksV1NodeBase & { config: NodeConfig<LcEmbeddingsDatabricksV1Params> & { credentials?: LcEmbeddingsDatabricksV1Credentials }; }; export type LcEmbeddingsDatabricksV1Node = LcEmbeddingsDatabricksV1ParamsNode;