Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add scripts/crawler.mjs #45

Merged
merged 1 commit into from
Jun 26, 2024
Merged

feat: add scripts/crawler.mjs #45

merged 1 commit into from
Jun 26, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Jun 26, 2024

The script can be used in following scenarios:

  1. Generate knowledge.json for the agent

node scripts/crawler.mjs https://github.com/reactjs/react.dev/tree/main/src/content/reference tmp/knowledge.json

  1. To be used as a recursive_url document loader of AIChat

recursive_url: 'node /scripts/crawler.mjs $1 $2'

@sigoden sigoden merged commit 79491fc into main Jun 26, 2024
3 checks passed
@sigoden sigoden deleted the feat branch June 26, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant