Skip to content

Commit

Permalink
changed model in run_anyscale()
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Dec 7, 2023
1 parent 46868aa commit c22878c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
33 changes: 9 additions & 24 deletions ai_ta_backend/filtering_contexts.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def getTopContextsWithMQR(self, search_query: str, course_name: str, token_limit
# count tokens at start and end, then also count each context.
token_counter, _ = count_tokens_and_cost(pre_prompt + '\n\nNow please respond to my query: ' + search_query) # type: ignore

filtered_docs = list(run(contexts=final_docs, user_query=search_query, max_time_before_return=45, max_concurrency=30))
filtered_docs = list(run(contexts=final_docs, user_query=search_query, max_time_before_return=45, max_concurrency=100))
print(f"Number of docs after context filtering: {len(filtered_docs)}")

valid_docs = []
Expand Down

0 comments on commit c22878c

Please sign in to comment.