n8n-nodes-tushare
Version:
n8n custom node for Tushare
24 lines (23 loc) • 657 B
TypeScript
import { Embeddings } from '@langchain/core/embeddings';
export interface SelfEmbeddingsFields {
apiKey?: string;
baseURL?: string;
model?: string;
timeout?: number;
stripNewLines?: boolean;
dimensions?: number;
batchSize?: number;
}
export declare class SelfEmbeddings extends Embeddings {
apiKey: string;
baseURL: string;
model: string;
timeout?: number;
stripNewLines: boolean;
dimensions?: number;
batchSize: number;
constructor(fields: SelfEmbeddingsFields);
embedQuery(text: string): Promise<number[]>;
embedDocuments(texts: string[]): Promise<number[][]>;
private embedBatch;
}