mgokg commited on
Commit
1d0db3a
·
verified ·
1 Parent(s): b992a0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -13,11 +13,11 @@ import gradio as gr
13
 
14
  # -----------------------------------------------------------------------------
15
  # Default configuration and Prompts
16
- NUM_SEARCH = 5 # Number of links to parse from Google
17
- SEARCH_TIME_LIMIT = 4 # Max seconds to request website sources before skipping to the next URL
18
- TOTAL_TIMEOUT = 15 # Overall timeout for all operations
19
- MAX_CONTENT = 400 # Number of words to add to LLM context for each search result
20
- MAX_TOKENS = 2000 # Maximum number of tokens LLM generates
21
  LLM_MODEL = 'llama3-70b-8192' # Groq model
22
 
23
  system_prompt_search = """You are a helpful assistant whose primary goal is to decide if a user's query requires a Google search."""
 
13
 
14
  # -----------------------------------------------------------------------------
15
  # Default configuration and Prompts
16
+ NUM_SEARCH = 8 # Number of links to parse from Google
17
+ SEARCH_TIME_LIMIT = 7 # Max seconds to request website sources before skipping to the next URL
18
+ TOTAL_TIMEOUT = 25 # Overall timeout for all operations
19
+ MAX_CONTENT = 500 # Number of words to add to LLM context for each search result
20
+ MAX_TOKENS = 1000 # Maximum number of tokens LLM generates
21
  LLM_MODEL = 'llama3-70b-8192' # Groq model
22
 
23
  system_prompt_search = """You are a helpful assistant whose primary goal is to decide if a user's query requires a Google search."""