Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,11 @@ import gradio as gr
|
|
13 |
|
14 |
# -----------------------------------------------------------------------------
|
15 |
# Default configuration and Prompts
|
16 |
-
NUM_SEARCH =
|
17 |
-
SEARCH_TIME_LIMIT =
|
18 |
-
TOTAL_TIMEOUT =
|
19 |
-
MAX_CONTENT =
|
20 |
-
MAX_TOKENS =
|
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."""
|