mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-16 16:52:57 +00:00
feat(nodejs): huggingface compatible transformers (#1462)
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user