hugging2021's picture
Upload folder using huggingface_hub
58faf93 verified
raw
history blame contribute delete
541 Bytes
export type AppConfig = {
connectionString: string
currentCollection: string
authType: string
token: string
username: string
password: string
tenant: string
database: string
}
export type Collection = string
export type Record = {
id: string
document: string
metadata: { source: string }
embedding: number[]
distance: number
}
export type RecordsPage = {
total: number
page: number
records: Record[]
}
export type ErrorResponse = {
error: string
}
export type QueryResult = RecordsPage | ErrorResponse