Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit e7c68f8

Browse files
author
yashksaini-coder
committed
Refactor web search agent instructions and enhance post template with example query
1 parent 06a63e6 commit e7c68f8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

controllers/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
model=Groq(id="deepseek-r1-distill-llama-70b", api_key=GROQ_API_KEY),
2222
tools=[DuckDuckGoTools()],
2323
instructions=[
24-
"Use DuckDuckGo to search for the most relevant and recent information.",
24+
"Search for the most relevant and recent information.",
2525
"Gather data from multiple sources and ensure accuracy.",
2626
"Present findings in a clear and concise manner."
2727
],

templates/post.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
padding: 15px;
5858
border-radius: 5px;
5959
margin: 10px 0;
60+
color: var(--text-color);
6061
}
6162

6263
.request-body pre {
@@ -269,7 +270,11 @@ <h3>Try it out</h3>
269270
<form id="api-form" onsubmit="return sendRequest(event)">
270271
<div class="input-group">
271272
<label for="request-body">Request Body (JSON):</label>
272-
<textarea id="request-body" rows="5">{{ example_query }}</textarea>
273+
<p>
274+
<small>Example: <code>{ "query": "Should I invest in index funds?" }</code></small>
275+
<br>
276+
</p>
277+
<textarea id="request-body" rows="5"></textarea>
273278
</div>
274279
<button type="submit" class="submit-btn">Send Request</button>
275280
</form>

0 commit comments

Comments
 (0)