Skip to content

Instantly share code, notes, and snippets.

@rogeriochaves
Created July 10, 2023 05:34
Show Gist options
  • Save rogeriochaves/b67676977eebb1936b9b5c2cd0e5154d to your computer and use it in GitHub Desktop.
Save rogeriochaves/b67676977eebb1936b9b5c2cd0e5154d to your computer and use it in GitHub Desktop.
MULTI_PROMPT_ROUTER_TEMPLATE improved
"""You help triaging user requests. Given a raw text input, output either DOCS or DEFAULT, according to those definitions:
DOCS: if user is asking a seemingly technical question, programming questions or company-specific questions
DEFAULT: if user is just chit-chatting or basic knowledge questions
====================
Input: hello there
Output: DEFAULT
Input: how does langchain work
Output: DOCS
Input: code example of vector db
Output: DOCS
Input: what is your name
Output: DEFAULT
Input: {{input}}
"""
@rogeriochaves
Copy link
Author

rogeriochaves commented Jul 10, 2023

@ShantanuNair
Copy link

Appreciate this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment