- 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

@@ -11,6 +11,7 @@ class EveAIRetriever(BaseModel):
_configuration: Dict[str, Any] = PrivateAttr()
_tenant_info: Dict[str, Any] = PrivateAttr()
_model_variables: ModelVariables = PrivateAttr()
_tuning: bool = PrivateAttr()
def __init__(self, catalog_id: int, user_metadata: Dict[str, Any], system_metadata: Dict[str, Any],
configuration: Dict[str, Any]):

View File

@@ -47,6 +47,7 @@ class Retriever(db.Model):
description = db.Column(db.Text, nullable=True)
catalog_id = db.Column(db.Integer, db.ForeignKey('catalog.id'), nullable=True)
type = db.Column(db.String(50), nullable=False, default="DEFAULT_RAG")
tuning = db.Column(db.Boolean, nullable=True, default=False)
# Meta Data
user_metadata = db.Column(JSONB, nullable=True)