quivr/backend/models/files_in_storage.py
Zineb El Bachiri be7acf052b
feat: get files from storage (#1205)
* 🌱 list files in storage & generate signed URL

*  add knowledge router

* 🗃️ add knowledge tables

*  add knowledge during upload

* 🚧 add knowledge a brain_knowledge models and repo

* 🔥 remove brain_knowledge

*  add upload to knowledge table

*  add crawl to knowledge table

* ✏️ fixes
2023-09-20 09:35:37 +02:00

17 lines
243 B
Python

from uuid import UUID
from pydantic import BaseModel
class FileInStorage(BaseModel):
Id: UUID
Key: str
@property
def id(self) -> UUID:
return self.Id
@property
def key(self) -> str:
return self.Key