Back to Llama Index

Readers (Loaders)

llama-index-integrations/readers/README.md

0.14.21567 B
Original Source

Readers (Loaders)

Readers can be installed directly as packages:

bash
pip install llama-index-readers-google

For example, see the code snippets below using the Google Docs Loader.

python
from llama_index.core import VectorStoreIndex, download_loader
from llama_index.readers.google import GoogleDocsReader

gdoc_ids = ["1wf-y2pd9C878Oh-FmLH7Q_BQkljdm6TQal-c1pUfrec"]
loader = GoogleDocsReader()
documents = loader.load_data(document_ids=gdoc_ids)
index = VectorStoreIndex.from_documents(documents)
index.query("Where did the author go to school?")