File size: 275 Bytes
6b6ca97
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { Chunk } from '@/lib/types';

abstract class BaseEmbedding<CONFIG> {
  constructor(protected config: CONFIG) {}
  abstract embedText(texts: string[]): Promise<number[][]>;
  abstract embedChunks(chunks: Chunk[]): Promise<number[][]>;
}

export default BaseEmbedding;