quivr/backend/modules/knowledge/entity/knowledge.py
Zineb El Bachiri 9766befb53
refactor: knowledge module (#1743)
# Description

- Refactor knowledge to a module

- This PR breaks the Github Processor function -> need to comment brain
and file imports as it creates a circular dependency issue. Should be
fixed and reverted in next PR.
2023-11-29 09:04:03 +01: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"