admin管理员组

文章数量:1122832

I'm trying to set up a RAG system that reads data through google drive, and sets up the vector store locally. I was following the insturctions in this wiki: .10.33/examples/ingestion/ingestion_gdrive/ to accomplish this. But I keep running into what I believe are authentication issues.

What I tried

I set up a Google Cloud Project, I added "Google Drive API" as one of the "Enabled APIs and Services". I set up credentials where the redirect_uri is "http://localhost:8080/" I set the Oauth Consent Screen to make this a Testing app and set the email associated with my google drive as a test user. I then wrote the following code as is set up in the instructions:

from llama_index.readers.google import GoogleDriveReader
import logging
logging.basicConfig(level=logging.DEBUG)

FOLDER_ID = "1HMvMXSd64rzwg3Tbca9ti4fOGJ_BM_uF"
FIXED_PORT = 8080
reader = GoogleDriveReader(
    folder_id=FOLDER_ID,
    oauth_port_number=FIXED_PORT
)

data = reader.load_data(folder_id=FOLDER_ID)

And on the reader.load_data line, it first redirects me to the localhost:8080 link to fill out some authentication stuff, where I select my gmail as a login. It then tells me the app isn't verified but would I like to proceed: enter image description here

I then click on Continue where finally it takes me to a screen that simply says: enter image description here

At this point I'm out of debugging steps. I am not sure where the logs would be to tell me what the problem actually is here, or how to debug it. I would love some insight from anyone who has successfully gotten llama_index's GoogleDriveReader to work, and ask if there are any steps here that I'm missing.

What I expected

For this to handle the authentication with Google Cloud Project and I could move on to create a Vector Store

本文标签: llama indexllamaindex GoogleDriveReader authentication issues with Google Cloud ProjectStack Overflow