feat(nodejs): huggingface compatible transformers (#1462)

This commit is contained in:
Cory Grinstead
2024-07-26 12:54:15 -07:00
committed by GitHub
parent 9555efacf9
commit fbfe2444a8
12 changed files with 1806 additions and 52 deletions

View File

@@ -41,6 +41,7 @@ export interface EmbeddingFunctionConstructor<
> {
new (modelOptions?: T["TOptions"]): T;
}
/**
* An embedding function that automatically creates vector representation for a given column.
*/
@@ -82,6 +83,8 @@ export abstract class EmbeddingFunction<
*/
abstract toJSON(): Partial<M>;
async init?(): Promise<void>;
/**
* sourceField is used in combination with `LanceSchema` to provide a declarative data model
*