/** * Perplexity Node - Version 1 * Discriminator: resource=embedding, operation=createContextualized */ interface Credentials { perplexityApi: CredentialReference; } /** Generate vector embeddings for text */ export type PerplexityV1EmbeddingCreateContextualizedParams = { resource: 'embedding'; operation: 'createContextualized'; /** * The contextualized embedding model to use * @default pplx-embed-context-v1-4b */ model?: 'pplx-embed-context-v1-4b' | Expression; /** * Array of documents, where each document is an array of paragraph strings * @default [["paragraph 1 of doc A", "paragraph 2 of doc A"], ["paragraph 1 of doc B"]] */ input?: IDataObject | string | Expression; /** * Options * @default {} */ options?: { /** Number of dimensions for the output embedding. If 0 or unset, the full model dimensions are used. * @default 0 */ dimensions?: number | Expression; /** The format of the returned embeddings. Float is not supported by this endpoint. * @default base64_int8 */ encoding_format?: 'base64_int8' | 'base64_binary' | Expression; }; requestOptions?: { /** Batching * @default {"batch":{}} */ batching?: { /** Batching */ batch?: { /** Input will be split in batches to throttle requests. -1 for disabled. 0 will be treated as 1. * @default 50 */ batchSize?: number | Expression; /** Time (in milliseconds) between each batch of requests. 0 for disabled. * @default 1000 */ batchInterval?: number | Expression; }; }; /** Whether to accept the response even if SSL certificate validation is not possible * @default false */ allowUnauthorizedCerts?: boolean; /** HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128 */ proxy?: string | Expression | PlaceholderValue; /** Time in ms to wait for the server to send response headers (and start the response body) before aborting the request * @default 10000 */ timeout?: number | Expression; }; }; export type PerplexityV1EmbeddingCreateContextualizedNode = { type: 'n8n-nodes-base.perplexity'; version: 1; credentials?: Credentials; config: NodeConfig; };