Skip to content

Commit

Permalink
Merge pull request #21 from ls1intum/angelos-optimization
Browse files Browse the repository at this point in the history
Fix syntax warning
  • Loading branch information
ninori9 authored Nov 17, 2024
2 parents ef2f3bf + cabee67 commit bd42232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/managers/weaviate_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd42232

Please sign in to comment.