- When no explicit path is given in the browser, we automatically get redirected to the admin interface (eveai_app)

- Tuning moved to Retriever iso in the configuration, as this is an attribute that should be available for all types of Retrievers
This commit is contained in:
Josako
2024-10-31 08:32:02 +01:00
parent 532073d38e
commit 5841525b4c
6 changed files with 36 additions and 7 deletions

View File

@@ -113,6 +113,7 @@ class RetrieverForm(FlaskForm):
)
# Select Field for Retriever Type (Uses the RETRIEVER_TYPES defined in config)
type = SelectField('Retriever Type', validators=[DataRequired()])
tuning = BooleanField('Enable Tuning', default=False)
# Metadata fields
user_metadata = TextAreaField('User Metadata', validators=[Optional(), validate_json])
@@ -137,6 +138,7 @@ class EditRetrieverForm(DynamicFormBase):
)
# Select Field for Retriever Type (Uses the RETRIEVER_TYPES defined in config)
type = SelectField('Retriever Type', validators=[DataRequired()], render_kw={'readonly': True})
tuning = BooleanField('Enable Tuning', default=False)
# Metadata fields
user_metadata = TextAreaField('User Metadata', validators=[Optional(), validate_json])