Spaces:
Paused
Paused
Download src/lib/models/base/embedding.ts from pjpjq/perplexica-auth: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/spaces/pjpjq/perplexica-auth/resolve/main/src/lib/models/base/embedding.ts
- Command line
-
hf download hf://spaces/pjpjq/perplexica-auth/src/lib/models/base/embedding.ts
-
curl -L -o embedding.ts https://huggingface.co/spaces/pjpjq/perplexica-auth/resolve/main/src/lib/models/base/embedding.ts
275 Bytes
| 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; | |