Shashank1406 commited on
Commit
9377e98
1 Parent(s): c2e6710

Update Prompts_and_Chains.py

Browse files
Files changed (1) hide show
  1. Prompts_and_Chains.py +1 -21
Prompts_and_Chains.py CHANGED
@@ -13,14 +13,6 @@ class PromptTemplates:
13
  input_variables=["chat_history","input",], template=legal_adviser_template
14
  )
15
 
16
- self.case_summary_prompt = PromptTemplate(
17
- input_variables=["case_name", "case_details"], template=case_summary_template
18
- )
19
-
20
- self.legal_case_bot_prompt = PromptTemplate(
21
- input_variables=["context", "input"], template=legal_case_bot_template
22
- )
23
-
24
  self.lawyer_recommendations_prompt = PromptTemplate(
25
  input_variables=["user_inputs", "matching_lawyers","additional_info"], template=lawyer_recommendation_template
26
  )
@@ -39,20 +31,8 @@ class LLMChains:
39
  prompt=obj.legal_adviser_bot_prompt,
40
  verbose="true",
41
  )
42
-
43
- # genrate bot conversastion
44
- self.case_summary_chain = LLMChain(
45
- llm=OpenAI(model_name="gpt-3.5-turbo-16k",api_key=os.environ.get('OPEN_API_KEY'), temperature=0.7),
46
- prompt=obj.case_summary_prompt,
47
- verbose="true",
48
- )
49
 
50
- # genrate bot conversastion
51
- self.legal_case_bot_chain = LLMChain(
52
- llm=OpenAI(model_name="gpt-3.5-turbo-16k",api_key=os.environ.get('OPEN_API_KEY'), temperature=0.7),
53
- prompt=obj.legal_case_bot_prompt,
54
- verbose="true",
55
- )
56
 
57
  self.lawyer_recommendations_chain = LLMChain(
58
  llm=OpenAI(model_name="gpt-3.5-turbo-16k",api_key=os.environ.get('OPEN_API_KEY'), temperature=0.7),
 
13
  input_variables=["chat_history","input",], template=legal_adviser_template
14
  )
15
 
 
 
 
 
 
 
 
 
16
  self.lawyer_recommendations_prompt = PromptTemplate(
17
  input_variables=["user_inputs", "matching_lawyers","additional_info"], template=lawyer_recommendation_template
18
  )
 
31
  prompt=obj.legal_adviser_bot_prompt,
32
  verbose="true",
33
  )
 
 
 
 
 
 
 
34
 
35
+
 
 
 
 
 
36
 
37
  self.lawyer_recommendations_chain = LLMChain(
38
  llm=OpenAI(model_name="gpt-3.5-turbo-16k",api_key=os.environ.get('OPEN_API_KEY'), temperature=0.7),