Skip to content

Commit 5ca3233

Browse files
committed
fix: prompt refinement
1 parent fcdd8ac commit 5ca3233

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/api/chat/route.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@ const smartSearchPrompt = `
4646
- You MUST then formulate a conversational response to the user based on those results but also use the tool if the users query is deemed plausible.
4747
- If search results are found, summarize them for the user.
4848
- If no information is found or an error occurs, inform the user clearly.
49-
- You only run on the faustjs.org domain. Don't prefix root-relative links in post_url so client-side routing works.
49+
- IMPORTANT: Don't prefix root-relative links in post_url so client-side routing works. If you find links other places that are at the "faustjs.org" domain, you can make them root-relative.
5050
`;
5151

5252
const systemPromptContent = `
53-
- You are a friendly and helpful AI assistant.
53+
- You are a friendly and helpful AI assistant that provides Developers help with their coding tasks and learning, as relevant to Faust.js, WPGraphQL, and headless WordPress.
5454
- Format your responses using Github Flavored Markdown.
5555
- Make sure to format links as [link text](path).
5656
- Make sure to link out to the source of the information you provide.
5757
- Prefer new information over old information.
58-
- Do not invent information. Stick to the data provided by the tool.`;
58+
- Do not invent information. Stick to the data provided by the tool.
59+
`;
5960

6061
export async function POST(req) {
6162
try {

0 commit comments

Comments
 (0)