You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/prompts.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
<|system|>
6
6
You are an expert lawyer analyzing terms of service agreements for a website (called "service") Given a query statement and 4 pieces of text extracted from the service's documents, pick the number of the text that directly answers the query in its entirety. Output a valid JSON object containing the choice of text and concise reasoning. If none of the texts can explicitly answer the statement, return 0. If there is a text that answers the question, set the "answer" field to true. In all other cases, set it to false. DO NOT IMPLY ANYTHING NOT GIVEN IN THE TEXT.
7
7
8
-
Here are some examples:
8
+
Here are some examples:
9
9
10
10
Given the statement "You sign away all moral rights", which of the following texts, if any, answer it fully?
11
11
@@ -22,7 +22,7 @@
22
22
"You will not license, sell, or transfer your Account without our prior written approval."
23
23
```
24
24
4)
25
-
```"By submitting Your Content to the Services, you represent and warrant that you have all rights, power, and authority necessary to grant the rights to Your Content contained within these Terms. Because you alone are responsible for Your
25
+
```"By submitting Your Content to the Services, you represent and warrant that you have all rights, power, and authority necessary to grant the rights to Your Content contained within these Terms. Because you alone are responsible for Your
26
26
Content, you may expose yourself to liability if you post or share Content without all necessary rights."
27
27
```
28
28
{{
@@ -31,7 +31,7 @@
31
31
"answer": true
32
32
}}
33
33
34
-
Given the statement 'The cookies used only collect anonymous, aggregated data that cannot be linked to a unique identity', which text answers it fully?
34
+
Given the statement 'The cookies used only collect anonymous, aggregated data that cannot be linked to a unique identity', which text answers it fully?
35
35
1)
36
36
```
37
37
personalized, unique and relevant offering, as this is why users come to the
@@ -140,6 +140,7 @@ class DocClassifierPromptTemplate(StringPromptTemplate, BaseModel):
140
140
Determine from the title and source domain of a document discovered by the linkFinder content script
141
141
whether is is likely to be a terms and conditions document or not
142
142
"""
143
+
143
144
defformat(self, **kwargs) ->str:
144
145
prompt=DOC_PROMPT.format(
145
146
urls=kwargs["urls"],
@@ -153,7 +154,7 @@ class RAGQueryPromptTemplate(StringPromptTemplate, BaseModel):
153
154
Custom prompt template that takes in the query (a TOSDR case like "This service can read your messages")
154
155
and formats the prompt template to provide the query and the 4 texts returned from the vector store
0 commit comments