- New version of RAG_SPECIALIST and RAG_AGENT, including definition of conversation_purpose and response_depth.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
RESPONSE_DEPTH = [
|
||||
{
|
||||
"name": "Concise",
|
||||
"description": "Short, direct answers. No extra explanation or context.",
|
||||
"when_to_use": "Quick queries, urgent requests, or when the user prefers brevity."
|
||||
},
|
||||
{
|
||||
"name": "Balanced",
|
||||
"description": "Clear answers with minimal context or next steps. Not too short, not too detailed.",
|
||||
"when_to_use": "General interactions, FAQs, or when the user needs a mix of speed and clarity."
|
||||
},
|
||||
{
|
||||
"name": "Detailed",
|
||||
"description": "Comprehensive answers with background, examples, or step-by-step guidance.",
|
||||
"when_to_use": "Complex topics, tutorials, or when the user requests in-depth information."
|
||||
}
|
||||
]
|
||||
|
||||
def get_response_depth_context(response_depth:str) -> str:
|
||||
selected_response_depth = next(
|
||||
(item for item in RESPONSE_DEPTH if item["name"] == response_depth),
|
||||
None
|
||||
)
|
||||
response_depth_context = f"{selected_response_depth['description']}"
|
||||
return response_depth_context
|
||||
Reference in New Issue
Block a user