Skip to content

Commit

Permalink
order seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx authored and Weves committed Nov 28, 2024
1 parent 7be80c4 commit e338677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/danswer/seeding/load_yamls.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def load_personas_from_yaml(

p_id = persona.get("id")
tool_ids = []

if persona.get("image_generation"):
image_gen_tool = (
db_session.query(ToolDBModel)
Expand Down
7 changes: 4 additions & 3 deletions backend/danswer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,14 @@ def setup_postgres(db_session: Session) -> None:
create_initial_public_credential(db_session)
create_initial_default_connector(db_session)
associate_default_cc_pair(db_session)

logger.notice("Loading default Prompts and Personas")
delete_old_default_personas(db_session)
load_chat_yamls(db_session)

logger.notice("Loading built-in tools")
load_builtin_tools(db_session)

logger.notice("Loading default Prompts and Personas")
load_chat_yamls(db_session)

refresh_built_in_tools_cache(db_session)
auto_add_search_tool_to_personas(db_session)

Expand Down

0 comments on commit e338677

Please sign in to comment.