node.commentBefore=` base_url: The URL to start crawling with
Config for web loader
prefix: Only crawl URLs matching the specified prefix
- base_url: The url to start crawling with
depth: The maximum depth for BFS traversal
- prefix: the prefix of next URLs to crawl
You can add more websites by adding more entries (don't forget the - prefix from YAML)`;
- depth: the maximum depth in DFS
loaderConfig.set("web",node);
You can add more web loaders by adding more config below`;
loaderConfigs.set("web",node);
}
}
// File loader config
// File loader config
if (dataSources.some((ds)=>ds.type==="file")){
if (dataSources.some((ds)=>ds.type==="file")){
loaderConfigs.set("file",{
// Add documentation to web loader config
constnode=loaderConfig.createNode({
use_llama_parse:useLlamaParse,
use_llama_parse:useLlamaParse,
});
});
node.commentBefore=` use_llama_parse: Use LlamaParse if \`true\`. Needs a \`LLAMA_CLOUD_API_KEY\` from https://cloud.llamaindex.ai set as environment variable`;