Skip to content

Commit

Permalink
updated prompts for multimodality #43
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 29, 2024
1 parent 2efac28 commit bb9d673
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 85 deletions.
53 changes: 0 additions & 53 deletions src/prompts/README.md

This file was deleted.

9 changes: 5 additions & 4 deletions src/prompts/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ export type PromptOutputSchema = {
};

export {
openEndedSystemPrompt,
closeEndedSystemPrompt,
ragSystemPrompt,
getOpenEndedSystemPrompt,
getCloseEndedSystemPrompt,
getRagSystemPrompt,
getSystemPromptText,
} from './system-prompts';

export {secureChatPrompt, secureRagChatPrompt} from './chat-prompts';
export {getSecureChatPrompt, getSecureRAGChatPrompt} from './chat-prompts';
28 changes: 0 additions & 28 deletions src/prompts/system-prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ export const getOpenEndedSystemPrompt = ({
getSystemPromptText({agentType: 'open-ended'})
);

/**
* Defines an open-ended system prompt.
*
* @param {string} query - The user's query.
* @returns {string} - The generated system prompt.
*/
export const openEndedSystemPrompt = getOpenEndedSystemPrompt();

/**
* Method to obtain a close-ended system prompt with optionally specified output schema.
*
Expand Down Expand Up @@ -138,15 +130,6 @@ User query: {{query}}
{{/if}}`
);

/**
* Defines a close-ended system prompt.
*
* @param {string} query - The user's query.
* @param {string} topic - The topic of the conversation.
* @returns {string} - The generated system prompt.
*/
export const closeEndedSystemPrompt = getCloseEndedSystemPrompt();

/**
* Method to obtain a RAG system prompt with optionally specified output schema.
*
Expand Down Expand Up @@ -195,14 +178,3 @@ Answer the above user query only using the provided additonal context informatio
User query: {{query}}
{{/if}}`
);

/**
* Defines a RAG (Retrieval Augmented Generation) system prompt.
*
* @param {string} query - The user's query.
* @param {string} topic - The topic of the conversation.
* @param {string} context - The context of the conversation.
*
* @link https://firebase.google.com/docs/genkit/rag
*/
export const ragSystemPrompt = getRagSystemPrompt();

0 comments on commit bb9d673

Please sign in to comment.