tech-envision commited on
Commit
43fc611
·
1 Parent(s): 3807edc

Enhance system prompt

Browse files
Files changed (2) hide show
  1. README.md +5 -4
  2. 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 that instructs the
15
- model to chain multiple tools when required. This prompt is **not** stored in
16
- the chat history but is provided at runtime so the assistant can orchestrate
17
- tool calls in sequence to satisfy the user's request.
 
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 versatile AI assistant named Starlette able to orchestrate several tools to "
18
- "complete tasks. Plan your responses carefully and, when needed, call one "
19
- "or more tools consecutively to gather data, compute answers, or transform "
20
- "information. Uploaded documents are available under /data and can be read "
21
- "or modified using the execute_terminal tool. Continue chaining tools until "
22
- "the user's request is fully addressed and then deliver a concise, coherent final reply."
 
 
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
  )