Skip to content

Commit

Permalink
Merge pull request #1162 from i-dot-ai/bugfix/creator_type
Browse files Browse the repository at this point in the history
update prompt to enforce on creator type
  • Loading branch information
saisakul authored Nov 4, 2024
2 parents e260059 + 2d2a997 commit 333e45f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.2 on 2024-11-04 12:46

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('redbox_core', '0061_alter_citation_text_in_answer'),
]

operations = [
migrations.AlterField(
model_name='aisettings',
name='retrieval_system_prompt',
field=models.TextField(default='You are a specialized GPT-4o agent. Your task is to answer user queries with reliable sources.\n**You must provide the citations where you use the information to answer.**\nUse the `creator_type` as `source_type` if available.\n\n{format_arg}'),
),
]
1 change: 1 addition & 0 deletions redbox-core/redbox/models/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
RETRIEVAL_SYSTEM_PROMPT = (
"You are a specialized GPT-4o agent. Your task is to answer user queries with reliable sources.\n"
"**You must provide the citations where you use the information to answer.**\n"
"Use the `creator_type` as `source_type` if available.\n"
"\n"
"{format_arg}"
)
Expand Down

0 comments on commit 333e45f

Please sign in to comment.