Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def call_gpt5_for_metadata(title: str, short_text: str, top_chunks: List[str]) -
|
|
| 88 |
"Top content chunks (short):\n"
|
| 89 |
)
|
| 90 |
for i, c in enumerate(top_chunks[:6]):
|
| 91 |
-
prompt +=
|
| 92 |
|
| 93 |
prompt += (
|
| 94 |
"Task: Produce a single JSON object (machine parseable) with EXACT keys:\n"
|
|
|
|
| 88 |
"Top content chunks (short):\n"
|
| 89 |
)
|
| 90 |
for i, c in enumerate(top_chunks[:6]):
|
| 91 |
+
prompt += "CHUNK_{}: {}\n\n".format(i+1, c[:800].replace("\n", " "))
|
| 92 |
|
| 93 |
prompt += (
|
| 94 |
"Task: Produce a single JSON object (machine parseable) with EXACT keys:\n"
|