File size: 496 Bytes
57cf043
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from sqlalchemy import (
    Integer,
    String,
)
from sqlalchemy.orm import relationship, mapped_column
from components.dbo.models.base import Base


class Log(Base):
    __tablename__ = 'log'

    llmPrompt = mapped_column(String)
    llmResponse = mapped_column(String)
    llm_classifier = mapped_column(String)
    userRequest = mapped_column(String)
    query_type = mapped_column(String)
    userName = mapped_column(String)

    feedback = relationship("Feedback", back_populates="log")