Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

you wish to parse text information from some web pages. which approach …

Question

you wish to parse text information from some web pages. which approach is more likely to help you scale this task efficiently to many web pages? assume that the chatbot has access to a coding tool that allows it to run traditional code.

give the chatbot a sample and ask the chatbot to study the structure of how the text is organized, and then write code that can parse that document. ask the chatbot to apply this code to parse the rest of the documents.

feed each web page’s text into the chatbot’s prompt and instruct the chatbot to sift through and organize the information into a table.

Explanation:

Brief Explanations

To scale text parsing to many web pages, creating a reusable code (by studying a sample's structure) is more efficient. The second approach (feeding each page to the chatbot) is time - consuming and not scalable as it repeats the process for each page. The first approach leverages coding to automate the parsing for multiple documents.

Answer:

The option: "Give the chatbot a sample and ask the chatbot to study the structure of how the text is organized, and then write code that can parse that document. Ask the chatbot to apply this code to parse the rest of the documents."