Skip to content

Commit

Permalink
backend: make prompts public (#399)
Browse files Browse the repository at this point in the history
* backend: make prompts public

* lint
  • Loading branch information
vbarda authored Nov 4, 2024
1 parent 092e56f commit db276c9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions backend/retrieval_graph/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@

# fetch from langsmith
ROUTER_SYSTEM_PROMPT = (
hub.pull("chat-langchain-router-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-router-prompt").messages[0].prompt.template
)
GENERATE_QUERIES_SYSTEM_PROMPT = (
hub.pull("chat-langchain-generate-queries-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-generate-queries-prompt")
.messages[0]
.prompt.template
)
MORE_INFO_SYSTEM_PROMPT = (
hub.pull("chat-langchain-more-info-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-more-info-prompt").messages[0].prompt.template
)
RESEARCH_PLAN_SYSTEM_PROMPT = (
hub.pull("chat-langchain-research-plan-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-research-plan-prompt")
.messages[0]
.prompt.template
)
GENERAL_SYSTEM_PROMPT = (
hub.pull("chat-langchain-general-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-general-prompt").messages[0].prompt.template
)
RESPONSE_SYSTEM_PROMPT = (
hub.pull("chat-langchain-response-prompt").messages[0].prompt.template
hub.pull("langchain-ai/chat-langchain-response-prompt").messages[0].prompt.template
)

0 comments on commit db276c9

Please sign in to comment.