Files
Perplexica/src/prompts/directResponse.ts
WaelAbouceo 7844ca9343 zizo
2025-02-02 12:14:15 +02:00

25 lines
932 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:**
`;
};