Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tozzen0121 committed Dec 12, 2023
1 parent 799e160 commit 7f2e58f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/semantic_search/semantic_search/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,6 @@ def smart_query(namespace, query, username: str):
f"trace_id = {trace_id}")

gpt_request_start_time = time.perf_counter()
messages_for_gpt = []
# for qm in query_matches:
# metadata = json.loads(qm[METADATA])
# messages_for_gpt.append(
# {
# "id": qm[CHUNK_ID],
# "text": metadata["text_without_context"]
# if "text_without_context" in metadata
# else metadata["text"]
# }
# )
messages_for_gpt = [
{
"id": qm["id"],
Expand Down

0 comments on commit 7f2e58f

Please sign in to comment.