Skip to content

Commit

Permalink
Fix syntax warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Nov 17, 2024
1 parent 1cd9292 commit cabee67
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 cabee67

Please sign in to comment.