cicboy commited on
Commit
4edad6b
·
1 Parent(s): 59f7d02

update application file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('\n', ' ')}..."
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