Skip to content

Commit

Permalink
Fix major typo in selection prompt (plus a typo and skip empty chunks.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum-ms committed Feb 1, 2025
1 parent 3618d72 commit 1ef327f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/packages/agents/spelunker/src/searchCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ async function selectRelevantChunks(
const prompt = `\
Please select up to 30 chunks that are relevant to the user question.
Consider carefully how relevant each chunk is to the user question.
Provide a relevance scsore between 0 and 1 (float).
Provide a relevance score between 0 and 1 (float).
Report only the chunk ID and relevance for each selected chunk.
Omit irrelevant chunks. It's fine to select fewer than 30.
Omit irrelevant or empty chunks. It's fine to select fewer than 30.
User question: "{input}"
User question: "${input}"
Chunks:
${prepareChunks(chunks)}
Expand Down

0 comments on commit 1ef327f

Please sign in to comment.