Skip to content

Commit 41ffd02

Browse files
authored
prompting: Remove attachment language prompting (#205)
Internal evals show this sentence generally makes models respond in the wrong language and removing it tends to help.
1 parent e0755f4 commit 41ffd02

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "fastapi_poe"
7-
version = "0.0.82"
7+
version = "0.0.83"
88
authors = [
99
{ name="Yusheng Ding", email="yding@quora.com" },
1010
{ name="Kris Yang", email="kryang@quora.com" },

src/fastapi_poe/templates.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
"""
77

88
TEXT_ATTACHMENT_TEMPLATE = (
9-
"""Your response must be in the language of the relevant queries related to the document.\n"""
109
"""Below is the content of {attachment_name}:\n\n{attachment_parsed_content}"""
1110
)
1211
URL_ATTACHMENT_TEMPLATE = (
1312
"""Assume you can access the external URL {attachment_name}. """
14-
"""Your response must be in the language of the relevant queries related to the URL.\n"""
1513
"""Use the URL's content below to respond to the queries:\n\n{content}"""
1614
)
1715
IMAGE_VISION_ATTACHMENT_TEMPLATE = (

0 commit comments

Comments
 (0)