Skip to content

Commit

Permalink
set bound to keywords for source overview
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Sep 17, 2024
1 parent e7b75cb commit 4c0bc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/canary/sources/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ defmodule Canary.Sources.Source do
chunks
|> Enum.map(fn %Ash.Union{value: value} -> value.content end)
|> Enum.join("\n")
|> then(&Canary.Native.extract_keywords(&1, 20))
|> then(&Canary.Native.extract_keywords(&1, max(5, floor(500 / length(documents)))))
end)
|> Enum.uniq()

Expand Down

0 comments on commit 4c0bc00

Please sign in to comment.