@n8n/n8n-nodes-langchain
Version:

36 lines (30 loc) • 1.17 kB
text/typescript
/**
* Embeddings Google Vertex Node - Version 1
* Use Google Vertex Embeddings
*/
export interface LcEmbeddingsGoogleVertexV1Params {
/**
* Select or enter your Google Cloud project ID
* @searchListMethod gcpProjectsList
* @default {"mode":"list","value":""}
*/
projectId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* The model which will generate the embeddings. <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text-embeddings-api">Learn more</a>.
* @default text-embedding-005
*/
modelName?: string | Expression<string> | PlaceholderValue;
}
export interface LcEmbeddingsGoogleVertexV1Credentials {
googleApi: CredentialReference;
}
interface LcEmbeddingsGoogleVertexV1NodeBase {
type: '@n8n/n8n-nodes-langchain.embeddingsGoogleVertex';
version: 1;
credentials?: LcEmbeddingsGoogleVertexV1Credentials;
isTrigger: true;
}
export type LcEmbeddingsGoogleVertexV1ParamsNode = LcEmbeddingsGoogleVertexV1NodeBase & {
config: NodeConfig<LcEmbeddingsGoogleVertexV1Params>;
};
export type LcEmbeddingsGoogleVertexV1Node = LcEmbeddingsGoogleVertexV1ParamsNode;