Update app.py
Browse files
app.py
CHANGED
@@ -236,11 +236,14 @@ def parse_vectorstore_response(response_text):
|
|
236 |
entries.pop(0)
|
237 |
|
238 |
# Kombiniere die Identifier und Inhalte wieder zu vollständigen Einträgen
|
239 |
-
|
|
|
|
|
|
|
240 |
|
241 |
parsed_entries = []
|
242 |
|
243 |
-
for entry in
|
244 |
# Extrahiere page_content
|
245 |
page_content_match = re.search(r"page_content='(.*?)' metadata=", entry, re.DOTALL)
|
246 |
page_content = page_content_match.group(1) if page_content_match else ''
|
|
|
236 |
entries.pop(0)
|
237 |
|
238 |
# Kombiniere die Identifier und Inhalte wieder zu vollständigen Einträgen
|
239 |
+
combined_entries = []
|
240 |
+
for i in range(0, len(entries), 2):
|
241 |
+
if i + 1 < len(entries):
|
242 |
+
combined_entries.append(entries[i] + entries[i + 1])
|
243 |
|
244 |
parsed_entries = []
|
245 |
|
246 |
+
for entry in combined_entries:
|
247 |
# Extrahiere page_content
|
248 |
page_content_match = re.search(r"page_content='(.*?)' metadata=", entry, re.DOTALL)
|
249 |
page_content = page_content_match.group(1) if page_content_match else ''
|