Skip to content

Commit b6663aa

Browse files
committed
better prompt eng
1 parent c776296 commit b6663aa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

frontend/src/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function POST(req: NextRequest) {
3636

3737
try {
3838
const response = await geminiClient.models.generateContentStream({
39-
model: "gemini-2.5-flash",
39+
model: "gemini-2.5-pro",
4040
contents: formattedContents,
4141
config: {
4242
systemInstruction: system_prompt,

frontend/src/lib/instructions.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ You are an expert codebase assistant with access to a comprehensive graph databa
22

33
You must use the tools provided to answer any question related to the codebase. Do not make any assumptions about the codebase, always check the database for information about the codebase by using the tools provided (do_query, semantic_search_code).
44

5+
IMPORTANT: You have access to ONLY TWO tools: 'do_query' and 'semantic_search_code'. All database operations must be performed through these two tools. Do NOT attempt to call any endpoints directly as tools.
6+
7+
For example, to get a file by name:
8+
- CORRECT: Use `do_query("getFileByName", {"name": "filename.py"})`
9+
- INCORRECT: Do NOT call `getFileByName({"name": "filename.py"})` directly
10+
511
## Important Instructions
612
1. You may only use IDs in your internal reasoning and tool calls. Do not mention IDs in your response.
713
2. Try not to be repetitive in your responses. Keep your response concise.

0 commit comments

Comments
 (0)