Spaces:
Sleeping
Sleeping
update application file
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def rerank_chunks_with_llm(query, chunks):
|
|
| 100 |
"""
|
| 101 |
|
| 102 |
#Build a short reranking prompt
|
| 103 |
-
chunk_list = "\n\n".join([f"[{i+1}] {text[:400].strip().replace('
|
| 104 |
for i, (text, _) in enumerate(chunks)
|
| 105 |
])
|
| 106 |
|
|
|
|
| 100 |
"""
|
| 101 |
|
| 102 |
#Build a short reranking prompt
|
| 103 |
+
chunk_list = "\n\n".join([f"[{i+1}] {text[:400].strip().replace('\\n', ' ')}..."
|
| 104 |
for i, (text, _) in enumerate(chunks)
|
| 105 |
])
|
| 106 |
|