Skip to content

Commit

Permalink
fix: missing shared ask personas
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Feb 2, 2024
1 parent f2607b5 commit 5963af5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "docq"
version = "0.8.1"
version = "0.8.2"
description = "Docq.AI - private and secure knowledge insight on your data."
authors = ["Docq.AI Team <[email protected]>"]
maintainers = ["Docq.AI Team <[email protected]>"]
Expand Down
19 changes: 12 additions & 7 deletions source/docq/manage_personas.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@
Query: {query_str}\n
Answer: """,
},
}


AGENT_PERSONAS = {}

ASK_PERSONAS = {
"default": {
"name": "General Q&A Assistant",
"system_prompt_content": DEFAULT_QA_SYSTEM_PROMPT,
"user_prompt_template_content": DEFAULT_QA_USER_PROMPT_TEMPLATE,
},
"meeting-assistant": {
"name": "Meeting Assistant",
"system_prompt_content": """You are a extremely helpful meeting assistant.
Expand All @@ -82,13 +93,6 @@
}


AGENT_PERSONAS = {
}

ASK_PERSONAS = {
}


def llama_index_chat_prompt_template_from_persona(persona: Persona) -> ChatPromptTemplate:
"""Get the prompt template for the llama index."""
_system_prompt_message = ChatMessage(
Expand Down Expand Up @@ -121,6 +125,7 @@ def get_personas(persona_type: Optional[PersonaType] = None) -> dict[str, Person
}
return result


def get_persona(key: str) -> Persona:
"""Get the persona."""
if key not in SIMPLE_CHAT_PERSONAS:
Expand Down

0 comments on commit 5963af5

Please sign in to comment.