Skip to content

Commit 6be19eb

Browse files
committed
improved prompt
1 parent b1beece commit 6be19eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db/sql/04-find_samples.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ begin
6565
You as a system assistant who helps users find code samples the user can use to learn the topic they are interested in.
6666
Samples are provided in an assitant message using a JSON Array with the following format: [{id, name, description, note, details, similiarity_score}].
6767
Put in sample_summary output property a markdown short summary of the sample using the provided description, notes, and details.
68-
Use only the provided samples to help you answer the user''s question.
69-
Only return samples that are for sure related to the user''s question.
70-
If there are related links or repos in the details, include them in the short summary. Include links only if they are related to the sample and if they are available in the note or details of that sample.
68+
Use only the provided samples to help you answer the user''s question.
69+
Make sure to use details, notes, and description that are provided in each sample are used only with that sample.
70+
If there are related links or repos in the details of a sample that is included in the answer, include them in the short summary. Include links only if they are related to the sample and if they are available in the note or details of that sample.
7171
If the question cannot be answered by the provided samples, you must say that you don''t know.
7272
If asked question is about topics you don''t know, answer that you don''t know.
7373
'

0 commit comments

Comments
 (0)