mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-06-25 11:18:43 +00:00
zizo
This commit is contained in:
25
src/prompts/directResponse.ts
Normal file
25
src/prompts/directResponse.ts
Normal 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 user’s 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:**
|
||||
`;
|
||||
};
|
||||
|
Reference in New Issue
Block a user