Skip to content

Commit

Permalink
Merge pull request mckaywrigley#1 from Kledal/patch-1
Browse files Browse the repository at this point in the history
Update Search.tsx - fix typo
  • Loading branch information
mckaywrigley authored Mar 31, 2023
2 parents 4466a62 + 247d4b8 commit 5a33db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Search: FC<SearchProps> = ({ onSearch, onAnswerUpdate, onDone }) =>

const handleStream = async (sources: Source[]) => {
try {
const prompt = endent`Provide a 2-3 sentence answer to the query based on the followin sources. Be original, concise, accurate, and helpful. Cite sources as [1] or [2] or [3] after each sentence (not just the very end) to back up your answer (Ex: Correct: [1], Correct: [2][3], Incorrect: [1, 2]).
const prompt = endent`Provide a 2-3 sentence answer to the query based on the following sources. Be original, concise, accurate, and helpful. Cite sources as [1] or [2] or [3] after each sentence (not just the very end) to back up your answer (Ex: Correct: [1], Correct: [2][3], Incorrect: [1, 2]).
${sources.map((source, idx) => `Source [${idx + 1}]:\n${source.text}`).join("\n\n")}
`;
Expand Down

0 comments on commit 5a33db1

Please sign in to comment.