mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-23 21:22:35 +03:00
be7acf052b
* 🌱 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
17 lines
243 B
Python
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
|