Spaces:
Running
Running
Remove PythonInterpreter from Space prompt; note offline-only usage
Browse files
README.md
CHANGED
|
@@ -19,9 +19,14 @@ models through the shared HF Inference API.
|
|
| 19 |
Supported tools:
|
| 20 |
- `search` (DuckDuckGo, multi-query)
|
| 21 |
- `visit` (HTTP fetch + text extraction, multi-URL)
|
|
|
|
| 22 |
- lightweight research-state summary to cut repeated work
|
| 23 |
- `<answer>` extraction for the final response
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
---
|
| 26 |
|
| 27 |
## 1) Use our own `osunlp/QUEST-35B` model (recommended)
|
|
|
|
| 19 |
Supported tools:
|
| 20 |
- `search` (DuckDuckGo, multi-query)
|
| 21 |
- `visit` (HTTP fetch + text extraction, multi-URL)
|
| 22 |
+
- `google_scholar` (Serper, multi-query)
|
| 23 |
- lightweight research-state summary to cut repeated work
|
| 24 |
- `<answer>` extraction for the final response
|
| 25 |
|
| 26 |
+
`PythonInterpreter` is **not** available in this Space (no sandbox service).
|
| 27 |
+
To try it, use [offline inference](https://github.com/OSU-NLP-Group/QUEST)
|
| 28 |
+
from the GitHub repo with `ENABLE_PYTHON_TOOL=true`.
|
| 29 |
+
|
| 30 |
---
|
| 31 |
|
| 32 |
## 1) Use our own `osunlp/QUEST-35B` model (recommended)
|
app.py
CHANGED
|
@@ -41,9 +41,10 @@ MODEL_URL = os.getenv("MODEL_URL", "https://huggingface.co/osunlp/QUEST-35B-RL")
|
|
| 41 |
|
| 42 |
|
| 43 |
# --- System prompt ---------------------------------------------------------
|
| 44 |
-
#
|
| 45 |
-
#
|
| 46 |
-
#
|
|
|
|
| 47 |
QUEST_SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigations into any topic. You must handle both broad, open-domain inquiries and queries within specialized academic fields. For every request, synthesize information from credible, diverse sources to deliver a comprehensive, accurate, and objective response. When you have gathered sufficient information and are ready to provide the definitive response, you must enclose the entire final answer within <answer></answer> tags.
|
| 48 |
|
| 49 |
# Tools
|
|
|
|
| 41 |
|
| 42 |
|
| 43 |
# --- System prompt ---------------------------------------------------------
|
| 44 |
+
# Hosted Space prompt (based on inference/prompt.py in the GitHub repo).
|
| 45 |
+
# PythonInterpreter is intentionally omitted here: this Space has no Python
|
| 46 |
+
# sandbox backend. To try PythonInterpreter, run offline inference from
|
| 47 |
+
# https://github.com/OSU-NLP-Group/QUEST with ENABLE_PYTHON_TOOL=true.
|
| 48 |
QUEST_SYSTEM_PROMPT = """You are a deep research assistant. Your core function is to conduct thorough, multi-source investigations into any topic. You must handle both broad, open-domain inquiries and queries within specialized academic fields. For every request, synthesize information from credible, diverse sources to deliver a comprehensive, accurate, and objective response. When you have gathered sufficient information and are ready to provide the definitive response, you must enclose the entire final answer within <answer></answer> tags.
|
| 49 |
|
| 50 |
# Tools
|