From ddb2202dcd334bcaa31f5d020cfd0c555bd3ec7a Mon Sep 17 00:00:00 2001 From: Weves Date: Fri, 22 Nov 2024 11:15:14 -0800 Subject: [PATCH] Make seeded personas default --- backend/ee/danswer/server/seeding.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/ee/danswer/server/seeding.py b/backend/ee/danswer/server/seeding.py index feb10cc19ce..ad8a97e5c70 100644 --- a/backend/ee/danswer/server/seeding.py +++ b/backend/ee/danswer/server/seeding.py @@ -136,9 +136,9 @@ def _seed_personas(db_session: Session, personas: list[CreatePersonaRequest]) -> user=None, # Seeding is done as admin name=persona.name, description=persona.description, - num_chunks=persona.num_chunks - if persona.num_chunks is not None - else 0.0, + num_chunks=( + persona.num_chunks if persona.num_chunks is not None else 0.0 + ), llm_relevance_filter=persona.llm_relevance_filter, llm_filter_extraction=persona.llm_filter_extraction, recency_bias=RecencyBiasSetting.AUTO, @@ -151,6 +151,7 @@ def _seed_personas(db_session: Session, personas: list[CreatePersonaRequest]) -> db_session=db_session, tool_ids=persona.tool_ids, display_priority=persona.display_priority, + is_default_persona=True, )