Compare commits

...

3 Commits

Author SHA1 Message Date
pablodanswer
edbab29f91 clean up 2024-12-16 15:41:44 -08:00
pablodanswer
877307f362 k 2024-12-16 15:41:44 -08:00
pablodanswer
80ecd64deb proper seeding 2024-12-16 15:41:44 -08:00
2 changed files with 6 additions and 0 deletions

View File

@@ -543,6 +543,10 @@ def upsert_persona(
if tools is not None:
existing_persona.tools = tools or []
# We should only update display priority if it is not already set
if existing_persona.display_priority is None:
existing_persona.display_priority = display_priority
persona = existing_persona
else:

View File

@@ -48,6 +48,7 @@ def load_personas_from_yaml(
data = yaml.safe_load(file)
all_personas = data.get("personas", [])
for persona in all_personas:
doc_set_names = persona["document_sets"]
doc_sets: list[DocumentSetDBModel] = [
@@ -127,6 +128,7 @@ def load_personas_from_yaml(
display_priority=(
existing_persona.display_priority
if existing_persona is not None
and persona.get("display_priority") is None
else persona.get("display_priority")
),
is_visible=(