adrien.aribaut-gaudin commited on
Commit
6aa774c
·
1 Parent(s): 99a417e

fix: dont say to openai to answer i dont know if its nor very relevant

Browse files
Files changed (2) hide show
  1. src/control/control.py +1 -1
  2. src/tools/llm.py +1 -3
src/control/control.py CHANGED
@@ -6,7 +6,7 @@ from src.model.block import Block
6
 
7
 
8
  class Chatbot:
9
- def __init__(self, llm_agent, retriever):
10
  self.retriever = retriever
11
  self.llm = llm_agent
12
 
 
6
 
7
 
8
  class Chatbot:
9
+ def __init__(self, llm_agent : LlmAgent, retriever : Retriever):
10
  self.retriever = retriever
11
  self.llm = llm_agent
12
 
src/tools/llm.py CHANGED
@@ -13,9 +13,7 @@ class LlmAgent:
13
  f"You are consistent and avoid redundancies with the rest of the initial conversation in French"
14
  f"delimited by triple backticks: "
15
  f"\\n ``` {histo} ```\\n"
16
- f"Your response shall be in {language} and shall be concise"
17
- f"In case the provided context is not relevant to answer to the question, just return that you "
18
- f"don't know the answer ")
19
 
20
  p = self.llm(template)
21
  print("****************")
 
13
  f"You are consistent and avoid redundancies with the rest of the initial conversation in French"
14
  f"delimited by triple backticks: "
15
  f"\\n ``` {histo} ```\\n"
16
+ f"Your response shall be in {language} and shall be concise")
 
 
17
 
18
  p = self.llm(template)
19
  print("****************")