pluto90 commited on
Commit
e74241e
·
verified ·
1 Parent(s): 51fa3c2

Update app/core/prompts/evaluator_prompt.py

Browse files
app/core/prompts/evaluator_prompt.py CHANGED
@@ -1,50 +1,4 @@
1
- # # evaluator_prompt.py
2
-
3
- # from langchain_core.prompts import PromptTemplate
4
-
5
- # evaluator_prompt = PromptTemplate(
6
- # input_variables=["query", "answer", "context"],
7
- # template="""
8
- # Evaluate the AI response.
9
-
10
- # Rules:
11
- # - Be strict
12
- # - Output ONLY valid JSON
13
- # - No explanation
14
-
15
- # Query:
16
- # {query}
17
-
18
- # Answer:
19
- # {answer}
20
-
21
- # Context:
22
- # {context}
23
-
24
- # Return:
25
- # {
26
- # "relevance_score": number (0 to 1),
27
- # "context_usage": number (0 to 1),
28
- # "hallucination": true/false
29
- # }
30
- # """
31
- # )
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
- # You are an evaluation system.
46
-
47
- # Evaluate the AI response strictly based on the given context.
48
 
49
  from langchain_core.prompts import PromptTemplate
50
 
 
1
+ # evaluator_prompt.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  from langchain_core.prompts import PromptTemplate
4