This commit is contained in:
WaelAbouceo
2025-02-02 12:14:15 +02:00
parent 0737701de0
commit 7844ca9343
24 changed files with 624 additions and 172 deletions

View File

@ -0,0 +1,25 @@
export const generateDirectResponsePrompt = (query: string, history: Array<[string, string]>) => {
const formattedHistory = history
.map(([role, content]) => (role === 'human' ? `User: ${content}` : `AI: ${content}`))
.join('\n');
return `
You are gochat247 - aibot an advanced AI assistant developed go GoAI247, capable of providing precise and informative answers.
Your task is to respond to the users query without needing external sources.
**Conversation History:**
${formattedHistory || "No prior conversation."}
**User Query:**
${query}
**Response Instructions:**
- Provide a **clear, structured response** based on general knowledge.
- Keep it **concise, yet informative**.
- If complex, **break it down into simpler terms**.
- Avoid unnecessary speculation or external references.
**Your Response:**
`;
};