Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisenman23 committed Nov 15, 2024
1 parent 785ec4d commit b0429a4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions elm/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ def engineer_query(self, query,
query = '\n\n'.join(query)

token_budget = token_budget or self.token_budget
if timeit:
start_time = perf_counter()
start_time = perf_counter()
strings, _, idx = self.query_vector_db(query)
if timeit:
end_time = perf_counter()
vector_query_time = end_time - start_time
end_time = perf_counter()
vector_query_time = end_time - start_time
message = copy.deepcopy(self.MODEL_INSTRUCTION)
question = f"\n\nQuestion: {query}"
used_index = []
Expand Down Expand Up @@ -253,7 +251,7 @@ def chat(self, query,
"vectordb_query_time": vector_query_time
}
if timeit and debug:
return response_message, query, references, performance
return response_message, query, references, performance
if debug:
return response_message, query, references
else:
Expand Down

0 comments on commit b0429a4

Please sign in to comment.