Spaces:
Sleeping
Sleeping
Download src/libs/shared/infrastructure/postgres/repositories/IPgEmbeddingRepository.ts from fouadkhalid123/asd: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/fouadkhalid123/asd/resolve/main/src/libs/shared/infrastructure/postgres/repositories/IPgEmbeddingRepository.ts
- Command line
-
hf download hf://spaces/fouadkhalid123/asd/src/libs/shared/infrastructure/postgres/repositories/IPgEmbeddingRepository.ts
-
curl -L -o IPgEmbeddingRepository.ts https://huggingface.co/spaces/fouadkhalid123/asd/resolve/main/src/libs/shared/infrastructure/postgres/repositories/IPgEmbeddingRepository.ts
312 Bytes
| import { Embedding, NewEmbedding } from "../schema/embeddings"; | |
| export interface IPgEmbeddingRepository { | |
| upsert(input: NewEmbedding): Promise<void>; | |
| findByDocAndChunk(storeId: string, documentId: string, chunkId: string): Promise<Embedding | null>; | |
| deleteByStore(storeId: string): Promise<void>; | |
| } | |