Find answers from the community

Updated 2 years ago

Error

At a glance
This is my code. from llama_index import GPTSimpleVectorIndex, download_loader

SimpleWebPageReader = download_loader("SimpleWebPageReader")

loader = SimpleWebPageReader()
documents = loader.load_data(urls=['https://google.com'])
index = GPTSimpleVectorIndex(documents)
index.query('What language is on this website?')
L
1 comment
As the error says, you should use GPTSimpleVectorIndex.from_documents() πŸ™πŸ‘
Add a reply
Sign up and join the conversation on Discord