Skip to content

Commit 356ac9f

Browse files
fix: Add URL filtering logic to ensure links start with the specified base URL.
1 parent a0de0bd commit 356ac9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/experts/DocumentProcessor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export class DocumentProcessor {
265265
maxDepth,
266266
maxPages,
267267
timeout: crawlTimeout,
268+
urlFilter: (link) => link.startsWith(url),
268269
onPageCrawlComplete: async (data: CrawlResult) => {
269270
// Forward to vector store manager using the instance reference
270271
if (self.onCrawlComplete) {

0 commit comments

Comments
 (0)