Skip to content

Commit

Permalink
fix: black linter issues!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Dec 2, 2024
1 parent 80a5960 commit a485d32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from utils.traceloop import init_tracing
from worker.celery import app


@app.task
def ask_question_auto_search(
community_id: str,
Expand All @@ -18,7 +19,9 @@ def ask_question_auto_search(
response, references = query_data_sources(
community_id=community_id, query=query
)
answer_sources = PrepareAnswerSources(threshold=0.7).prepare_answer_sources(nodes=references)
answer_sources = PrepareAnswerSources(threshold=0.7).prepare_answer_sources(
nodes=references
)
except Exception:
response = "Sorry, We cannot process your question at the moment."
answer_sources = ""
Expand Down

0 comments on commit a485d32

Please sign in to comment.