Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 7925a0b

Browse files
committed
Update prompt
1 parent 5e59abd commit 7925a0b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/embeddings/semantic_search.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,7 @@ def hypothetical_post_from(search_term)
183183
user: @guardian.user,
184184
skip_tool_details: true,
185185
feature_name: "semantic_search_hyde",
186-
messages: [{ type: :user, content: <<~TEXT.strip }],
187-
Using this description, write a forum post about the subject inside the <input></input> XML tags:
188-
189-
<input>#{search_term}</input>
190-
TEXT
186+
messages: [{ type: :user, content: search_term }],
191187
)
192188

193189
bot = build_bot(@guardian.user)

lib/personas/content_creator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def system_prompt
1313
* Ttitle: {site_title}
1414
* Description: {site_description}
1515
16+
You will receive a couple of keywords and must create a post about the keywords, keeping the previous information in mind.
17+
1618
Format your response as a JSON object with a single key named "output", which has the created content.
1719
Your output should be in the following format:
1820
<output>

0 commit comments

Comments
 (0)