-
Notifications
You must be signed in to change notification settings - Fork 5
/
prompts.py
31 lines (26 loc) · 799 Bytes
/
prompts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from imports import *
from utils import *
document_prompt = PromptTemplate.from_template("""
Document Summary:
-----------------
Source: {source}
Page Content:
{page_content}
-----------------
""")
if isinstance(llm_with_fallback.call(), ChatOpenAI):
prompt = hub.pull("poohthebear/planner_prompt")
joiner_prompt = hub.pull("poohthebear/joiner_prompt").partial(
examples=""
)
feedback_prompt = hub.pull("poohthebear/human_prompt").partial(
examples=""
)
elif isinstance(llm_with_fallback.call(), ChatAnthropic):
prompt = hub.pull("var-alpha/testing_anth")
joiner_prompt =hub.pull("poohthebear/joiner_prompt_anth").partial(
examples=""
)
feedback_prompt = hub.pull("poohthebear/human_prompt_anth").partial(
examples=""
)