StampyAI / stampy-chat

Conversational chatbot to answer questions about AI Safety & Alignment based on information retrieved from the Alignment Research Dataset
https://chat.stampy.ai
MIT License
13 stars 7 forks source link

Fix citation format to place period before citation numbers #148

Closed mwatkins1970 closed 2 weeks ago

mwatkins1970 commented 2 weeks ago

This was simply a matter of changing one line in stampy-chat/api/src/stampy_chat/settings.py

QUESTION_PROMPT = (
    "In your answer, please cite any claims you make back to each source "
    "using the format: [1], [2], etc. If you use multiple sources to make a claim "
    "cite all of them. For example: \"AGI is concerning [1, 3, 8].\"\n\n"
)

to

QUESTION_PROMPT = (
    "In your answer, please cite any claims you make back to each source "
    "using the format: [1], [2], etc. If you use multiple sources to make a claim "
    "cite all of them. For example: \"AGI is concerning. [1, 3, 8]\" (note the period placement)\n\n"
)

I am unable to run this codebase on my local machine (due to dependencies issues caused by an outdated MacOS, I think), but I'm 98% confident this will work, since the reason for the unwanted behaviour was so explicit.

LeMurphant commented 2 weeks ago

Unfortunately the fix seems to be either not fully deployed or not effective, I just got this period