From cabee672f24a5047d9927b581bfe295a68288ae6 Mon Sep 17 00:00:00 2001 From: Nino Richter Date: Sun, 17 Nov 2024 18:37:19 +0100 Subject: [PATCH] Fix syntax warning --- app/managers/weaviate_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/managers/weaviate_manager.py b/app/managers/weaviate_manager.py index 81eacbf..b3daab3 100644 --- a/app/managers/weaviate_manager.py +++ b/app/managers/weaviate_manager.py @@ -258,7 +258,7 @@ def get_relevant_context(self, question: str, study_program: str, language: str, if doc['link']: sorted_context_with_links.append(f'Link: {doc["link"]}\nContent: {doc["content"]}') else: - sorted_context_with_links.append(f'Link: -\Content: {doc["content"]}') + sorted_context_with_links.append(f'Link: -\nContent: {doc["content"]}') break context = "\n-----\n".join(sorted_context_with_links)