Skip to content

Commit

Permalink
Merge pull request #88 from deepak-likes-code/enchancement/Neutral-Pr…
Browse files Browse the repository at this point in the history
…ompt-Response

Update System Prompt for Neutral and Inclusive Language
  • Loading branch information
adamcohenhillel authored Mar 1, 2024
2 parents 419938b + a041ae0 commit 67c5645
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions supabase/functions/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function generateResponse(
modelName = "nousresearch/nous-capybara-34b";
} else if (useOllama) {
client = ollamaClient;
modelName = "mistral";
modelName = "mistral";
} else {
client = openaiClient;
modelName = "gpt-4-1106-preview";
Expand Down Expand Up @@ -110,8 +110,9 @@ const chat = async (req) => {
let messages = [
{
role: "system",
content: `You are a helpful assistant, helping the user navigate through life. He is asking you questions, and you answer them with the best of your ability.
You have access to some of their records, to help you answer their question in a more personalized way.
content: `You are a helpful assistant, helping the user navigate through life. The user is asking you questions, and you answer them with the best of your ability.
You have access to some of their records, to help you answer their question in a more personalized way.
Records:
${relevantRecords.map((r) => r.raw_text).join("\n")}
Expand Down

0 comments on commit 67c5645

Please sign in to comment.