UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

43 lines (37 loc) 1.45 kB
/** * Embeddings Hugging Face Inference Node - Version 1 * Use HuggingFace Inference Embeddings */ export interface LcEmbeddingsHuggingFaceInferenceV1Params { /** * The model name to use from HuggingFace library * @default sentence-transformers/distilbert-base-nli-mean-tokens */ modelName?: string | Expression<string> | PlaceholderValue; /** * Additional options to add * @default {} */ options?: { /** Custom endpoint URL */ endpointUrl?: string | Expression<string> | PlaceholderValue; /** Provider * @default auto */ provider?: 'black-forest-labs' | 'cerebras' | 'cohere' | 'fal-ai' | 'featherless-ai' | 'fireworks-ai' | 'groq' | 'hf-inference' | 'hyperbolic' | 'nebius' | 'novita' | 'nscale' | 'openai' | 'ovhcloud' | 'replicate' | 'sambanova' | 'together' | 'auto' | Expression<string>; }; } export interface LcEmbeddingsHuggingFaceInferenceV1Credentials { huggingFaceApi: CredentialReference; } interface LcEmbeddingsHuggingFaceInferenceV1NodeBase { type: '@n8n/n8n-nodes-langchain.embeddingsHuggingFaceInference'; version: 1; credentials?: LcEmbeddingsHuggingFaceInferenceV1Credentials; isTrigger: true; } export type LcEmbeddingsHuggingFaceInferenceV1ParamsNode = LcEmbeddingsHuggingFaceInferenceV1NodeBase & { config: NodeConfig<LcEmbeddingsHuggingFaceInferenceV1Params>; }; export type LcEmbeddingsHuggingFaceInferenceV1Node = LcEmbeddingsHuggingFaceInferenceV1ParamsNode;