Skip to content

Commit

Permalink
Fix multi domains for assistants (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Mar 15, 2024
1 parent 89f9b29 commit cbf4205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/server/websearch/runWebSearch.ts
Expand Up @@ -79,12 +79,12 @@ export async function runWebSearch(
if (ragSettings && ragSettings?.allowedDomains.length > 0) {
appendUpdate("Filtering on specified domains");
webSearch.searchQuery +=
" " + ragSettings.allowedDomains.map((item) => "site:" + item).join(" ");
" " + ragSettings.allowedDomains.map((item) => "site:" + item).join(" OR ");
}

// handle the global lists
webSearch.searchQuery +=
allowList.map((item) => "site:" + item).join(" ") +
allowList.map((item) => "site:" + item).join(" OR ") +
" " +
blockList.map((item) => "-site:" + item).join(" ");

Expand Down

0 comments on commit cbf4205

Please sign in to comment.