Spaces:
Sleeping
Sleeping
luanpoppe
commited on
Commit
·
bf45279
1
Parent(s):
3251505
feat: melhorando prompt
Browse files- langchain_backend/utils.py +33 -2
langchain_backend/utils.py
CHANGED
@@ -125,9 +125,40 @@ Before providing your summary, follow these steps:
|
|
125 |
|
126 |
3. Maximal Marginal Relevance: Apply the principles of Maximal Marginal Relevance to ensure your summary includes diverse, relevant information while avoiding redundancy. Prioritize information that is both relevant to the summary request and adds new insights not already covered.
|
127 |
|
128 |
-
After completing these steps,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
-
Please, make the format of the summary in BBcode and use as much as possible lists in BBcode format
|
131 |
|
132 |
Remember:
|
133 |
- Always prioritize relevance to the summary request.
|
|
|
125 |
|
126 |
3. Maximal Marginal Relevance: Apply the principles of Maximal Marginal Relevance to ensure your summary includes diverse, relevant information while avoiding redundancy. Prioritize information that is both relevant to the summary request and adds new insights not already covered.
|
127 |
|
128 |
+
After completing these steps, generate the response with around 5000 characteres in BBcode format, as shown below:
|
129 |
+
|
130 |
+
Example: :
|
131 |
+
|
132 |
+
{{
|
133 |
+
"nome_do_memorial": "[b]Nome do Memorial:[/b] [Insira aqui o nome do memorial e número da equipe] ",
|
134 |
+
|
135 |
+
"argumentos": "[size=4][b]1. Argumentos[/b][/size]
|
136 |
+
[b]Argumento 1:[/b]
|
137 |
+
Fundamento 1.1: [Descreva o fundamento]
|
138 |
+
Fundamento 1.2: [Descreva o fundamento]
|
139 |
+
[b]Argumento 2:[/b]
|
140 |
+
Fundamento 2.1: [Descreva o fundamento]
|
141 |
+
Fundamento 2.2: [Descreva o fundamento]",
|
142 |
+
|
143 |
+
"jurisprudencia": "[size=4][b]2. Jurisprudência Aplicada[/b][/size]
|
144 |
+
[b]Caso 1:[/b] [Nome e referência do caso] [i]Resumo:[/i] [Descrição resumida de como a jurisprudência se aplica]
|
145 |
+
[b]Caso 2:[/b] [Nome e referência do caso] [i]Resumo:[/i] [Descrição resumida de como a jurisprudência se aplica][size=4]",
|
146 |
+
|
147 |
+
"doutrina": "[b]3. Doutrina Relevante[/b][/size]
|
148 |
+
[b]Autor 1:[/b] [Nome do autor]
|
149 |
+
"[Título da obra]" [i]Resumo:[/i] [Resumo da posição do autor]
|
150 |
+
[b]Autor 2:[/b] [Nome do autor]
|
151 |
+
"[Título da obra]" [i]Resumo:[/i] [Resumo da posição do autor]",
|
152 |
+
|
153 |
+
"palavras_chave": "[size=4][b]4. Palavras-chave Principais[/b][/size]
|
154 |
+
[Palavra
|
155 |
+
have 1]
|
156 |
+
[Palavra
|
157 |
+
have 2]
|
158 |
+
[Palavra-chave 3]
|
159 |
+
[Adicione outras palavras relevantes]"
|
160 |
+
}}
|
161 |
|
|
|
162 |
|
163 |
Remember:
|
164 |
- Always prioritize relevance to the summary request.
|