@n8n/n8n-nodes-langchain
Version:
38 lines (32 loc) • 1.39 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>;
/**
* Where the model runs. Newer Gemini models (3.x) are only available on the Global or the EU/US multi-region locations. Leave as Default to use the region set in the credential.
*/
location?: '' | 'global' | 'eu' | 'us' | Expression<string>;
}
export interface LcEmbeddingsGoogleVertexV1Credentials {
googleApi: CredentialReference;
}
interface LcEmbeddingsGoogleVertexV1NodeBase {
type: '@n8n/n8n-nodes-langchain.embeddingsGoogleVertex';
version: 1;
}
export type LcEmbeddingsGoogleVertexV1ParamsNode = LcEmbeddingsGoogleVertexV1NodeBase & {
config: NodeConfig<LcEmbeddingsGoogleVertexV1Params> & { credentials?: LcEmbeddingsGoogleVertexV1Credentials };
};
export type LcEmbeddingsGoogleVertexV1Node = LcEmbeddingsGoogleVertexV1ParamsNode;