Skip to content

Commit

Permalink
fixup! resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jezekra1 committed Jan 7, 2025
1 parent 44b6f53 commit 162a708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runs/execution/tools/wikipedia-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function wikipediaTool(
query: input.question,
documents: output.results.flatMap((document, idx) =>
Array.from(
splitString(document.fields.markdown as string, {
splitString((document.fields.markdown as string | null) || '', {
size: passageSizeTokens * CHARS_PER_TOKEN_AVG,
overlap: overlapTokens * CHARS_PER_TOKEN_AVG
})
Expand Down

0 comments on commit 162a708

Please sign in to comment.