quivr/backend/models/knowledge.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

13 lines
237 B
Python

from typing import Optional
from uuid import UUID
from pydantic import BaseModel
class Knowledge(BaseModel):
id: UUID
brain_id: UUID
file_name: Optional[str] = None
url: Optional[str] = None
extension: str = "txt"