initial
This commit is contained in:
15
models.py
Normal file
15
models.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import enum
|
||||
|
||||
from tortoise import fields
|
||||
from tortoise.models import Model
|
||||
|
||||
|
||||
class EmbeddingEngine(enum.Enum):
|
||||
OPENAI = "openai"
|
||||
OLLAMA = "ollama"
|
||||
|
||||
|
||||
class PaperlessDocument(Model):
|
||||
id = fields.UUIDField(primary_key=True)
|
||||
paperless_id = fields.CharField(unique=True)
|
||||
indexing_engine = fields.CharEnumField(enum_type=EmbeddingEngine)
|
||||
Reference in New Issue
Block a user