Find answers from the community

Updated 5 months ago

Example for faithfulness evaluation not providing snippet for NYC Wikipedia page

At a glance

The community member is having trouble with an example that does not provide a snippet to download the New York City Wikipedia page. They are asking if there is another example they can use to get the snippet. In the comments, another community member provides a code snippet that uses the WikipediaReader from the llama-index-readers-wikipedia library to load the data for the "New York City" page.

Useful resources
Example (https://docs.llamaindex.ai/en/stable/examples/evaluation/faithfulness_eval/) not giving snippet to download NYC Wikipedia page. Is there any other example i can borrow that snippet from? thanks.
L
1 comment
Plain Text
pip install llama-index-readers-wikipedia


Plain Text
from llama_index.readers.wikipedia import WikipediaReader
documents = WikipediaReader().load_data(pages=["New York City"])
Add a reply
Sign up and join the conversation on Discord