Bird
0
0

Which argument is required to create a WebBaseLoader instance?

easy📝 Conceptual Q2 of 15
LangChain - Document Loading
Which argument is required to create a WebBaseLoader instance?
AA file path to save the content
BA database connection string
CA list of URLs to load
DAn API key for authentication
Step-by-Step Solution
Solution:
  1. Step 1: Identify WebBaseLoader constructor requirements

    WebBaseLoader needs URLs to know which web pages to load.
  2. Step 2: Evaluate options

    Only A list of URLs to load provides URLs, which is necessary. Other options are unrelated to loading web pages.
  3. Final Answer:

    A list of URLs to load -> Option C
  4. Quick Check:

    WebBaseLoader argument = URLs list [OK]
Quick Trick: WebBaseLoader needs URLs, not file paths or keys [OK]
Common Mistakes:
  • Passing a single URL string instead of a list
  • Confusing with API keys or database strings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LangChain Quizzes