@ -810,7 +810,7 @@ class Commands(discord.Cog, name="Commands"):
guild_ids=ALLOWED_GUILDS,
)
@discord.option(name="query",description="The query to search",required=True)
@discord.option(name="scope",description="How many top links to use for context",required=False,input_type=discord.SlashCommandOptionType.integer,max_value=8,min_value=1)
"You are formulating the response to a search query given the search prompt and the context. Context information is below. The text '<|endofstatement|>' is used to separate chat entries and make it easier for you to understand the context\n"
"---------------------\n"
"{context_str}"
"\n---------------------\n"
"Never say '<|endofstatement|>'\n"
"Given the context information and not prior knowledge, "
"answer the question, say that you were unable to answer the question if there is not sufficient context to formulate a decisive answer. The search query was: {query_str}\n"
# Construct a query for GPT3 to use these results to answer the query
GPT_QUERY=f"This is a search query. I want to know the answer to the query: {query}. Here are some results from the web: {[str(result)forresultinresults]}. \n\n Answer:"
# Generate the answer
# Use the tokenizer to determine token amount of the query