Spaces:
Sleeping
Sleeping
Update Prompts_and_Chains.py
Browse files- Prompts_and_Chains.py +20 -3
Prompts_and_Chains.py
CHANGED
@@ -26,9 +26,20 @@ class PromptTemplates:
|
|
26 |
self.summary_prompt = PromptTemplate(
|
27 |
input_variables=["project_name", "rfp_details"], template=summary_template
|
28 |
)
|
29 |
-
|
30 |
self.estimations_prompt_template = PromptTemplate(
|
31 |
-
input_variables=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
)
|
33 |
|
34 |
|
@@ -66,9 +77,15 @@ class LLMChains:
|
|
66 |
prompt=obj.json_prompt_template,
|
67 |
verbose="true",
|
68 |
)
|
69 |
-
|
70 |
self.estimations_chain = LLMChain(
|
71 |
llm=OpenAI(model_name="gpt-3.5-turbo-16k", temperature=0.7),
|
72 |
prompt=obj.estimations_prompt_template,
|
73 |
verbose="true",
|
74 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
self.summary_prompt = PromptTemplate(
|
27 |
input_variables=["project_name", "rfp_details"], template=summary_template
|
28 |
)
|
29 |
+
|
30 |
self.estimations_prompt_template = PromptTemplate(
|
31 |
+
input_variables=[
|
32 |
+
"project_summary",
|
33 |
+
"user_stories",
|
34 |
+
"tech_leads",
|
35 |
+
"senior_developers",
|
36 |
+
"junior_developers",
|
37 |
+
],
|
38 |
+
template=estimations_template,
|
39 |
+
)
|
40 |
+
|
41 |
+
self.roadmap_prompt = PromptTemplate(
|
42 |
+
input_variables=["project_input"], template=roadmap_template
|
43 |
)
|
44 |
|
45 |
|
|
|
77 |
prompt=obj.json_prompt_template,
|
78 |
verbose="true",
|
79 |
)
|
80 |
+
|
81 |
self.estimations_chain = LLMChain(
|
82 |
llm=OpenAI(model_name="gpt-3.5-turbo-16k", temperature=0.7),
|
83 |
prompt=obj.estimations_prompt_template,
|
84 |
verbose="true",
|
85 |
)
|
86 |
+
|
87 |
+
self.roadmap_chain = LLMChain(
|
88 |
+
llm=OpenAI(model_name="gpt-3.5-turbo-16k", temperature=0.7),
|
89 |
+
prompt=obj.roadmap_prompt,
|
90 |
+
verbose=True,
|
91 |
+
)
|