Spaces:
Runtime error
Runtime error
tech-envision
commited on
Commit
·
43fc611
1
Parent(s):
3807edc
Enhance system prompt
Browse files- README.md +5 -4
- src/config.py +8 -6
README.md
CHANGED
@@ -11,10 +11,11 @@ conversations can be resumed with context. One example tool is included:
|
|
11 |
returned. The VM is created when a chat session starts and reused for all
|
12 |
subsequent tool calls.
|
13 |
|
14 |
-
The application injects a system prompt on each request
|
15 |
-
model to
|
16 |
-
|
17 |
-
tool calls in sequence to
|
|
|
18 |
|
19 |
## Usage
|
20 |
|
|
|
11 |
returned. The VM is created when a chat session starts and reused for all
|
12 |
subsequent tool calls.
|
13 |
|
14 |
+
The application injects a robust system prompt on each request. The prompt
|
15 |
+
guides the model to plan tool usage, execute commands sequentially and
|
16 |
+
verify results before replying. It is **not** stored in the chat history but is
|
17 |
+
provided at runtime so the assistant can orchestrate tool calls in sequence to
|
18 |
+
fulfil the user's request reliably.
|
19 |
|
20 |
## Usage
|
21 |
|
src/config.py
CHANGED
@@ -14,10 +14,12 @@ NUM_CTX: Final[int] = int(os.getenv("OLLAMA_NUM_CTX", "16000"))
|
|
14 |
UPLOAD_DIR: Final[str] = os.getenv("UPLOAD_DIR", str(Path.cwd() / "uploads"))
|
15 |
|
16 |
SYSTEM_PROMPT: Final[str] = (
|
17 |
-
"You are a
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
21 |
-
"
|
22 |
-
"
|
|
|
|
|
23 |
)
|
|
|
14 |
UPLOAD_DIR: Final[str] = os.getenv("UPLOAD_DIR", str(Path.cwd() / "uploads"))
|
15 |
|
16 |
SYSTEM_PROMPT: Final[str] = (
|
17 |
+
"You are Starlette, a professional AI assistant with advanced tool orchestration. "
|
18 |
+
"Always analyze the user's objective before responding. If tools are needed, "
|
19 |
+
"outline a step-by-step plan and invoke each tool sequentially, waiting for its "
|
20 |
+
"result before proceeding. Retry or adjust commands when they fail and summarize "
|
21 |
+
"important outputs to preserve context. Uploaded files live under /data and are "
|
22 |
+
"accessible via the execute_terminal tool. Continue using tools until you have "
|
23 |
+
"gathered everything required to produce an accurate answer, then craft a clear "
|
24 |
+
"and precise final response that fully addresses the request."
|
25 |
)
|