feat(models): add new base classes

This commit is contained in:
ItzCrazyKns
2025-11-18 14:38:12 +05:30
parent 657a577ec8
commit 5272c7fd3e
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
abstract class BaseEmbedding<CONFIG> {
constructor(protected config: CONFIG) {}
abstract embedText(texts: string[]): Promise<number[][]>;
abstract embedChunks(chunks: Chunk[]): Promise<number[][]>;
}
export default BaseEmbedding;