Jul 9 - Chat - Add knowledge base for AI training
This commit is contained in:
@@ -334,3 +334,12 @@ class ScheduledInspectionForm(FlaskForm):
|
||||
next_due_date = DateField('Due Date', validators=[DataRequired()])
|
||||
notes = TextAreaField('Notes', validators=[Optional(), Length(max=1000)])
|
||||
active = BooleanField('Active', default=True)
|
||||
|
||||
|
||||
# ── Support Knowledge Base (phase38) ─────────────────────────────────────────
|
||||
|
||||
class SupportKnowledgeForm(FlaskForm):
|
||||
title = StringField('Topic / Question', validators=[DataRequired(), Length(max=200)])
|
||||
content = TextAreaField('Answer / Knowledge', validators=[DataRequired(), Length(max=4000)])
|
||||
sort_order = IntegerField('Sort Order', validators=[Optional(), NumberRange(min=0, max=9999)], default=0)
|
||||
active = BooleanField('Active (included in the chatbot)', default=True)
|
||||
|
||||
Reference in New Issue
Block a user