Connect OneDrive / Google Drive as RAG document sources #11
Notifications
Due Date
No due date set.
Depends on
#24 Add SSO (Google / Microsoft) for account registration and sign-in
ai_ml_operations/chat_backend
Reference: ai_ml_operations/chat_backend#11
Reference in New Issue
Block a user
Summary
Let a user connect their OneDrive or Google Drive account so files from those drives can be ingested into a RAG document workspace, instead of only manual uploads.
Motivation
Today RAG ingestion only accepts files uploaded directly (
DocumentUploadView->Document->RAGService.ingest_documents). Users already keep docs in cloud drives; letting them link a drive removes manual re-uploads and keeps the knowledge base fresh.Proposed behavior
DocumentWorkspace.PyPDFLoader,Docx2txtLoader,TextLoader,UnstructuredFileLoader), chunk + embed into the workspace vector store.Likely touch points
DriveConnection(provider, account, tokens, workspace FK) + link toDocument(source provider + remote file id/etag).services/rag_services.py– add cloud-drive source loaders alongside upload path.views.py/serializers.py– OAuth start/callback endpoints, list-remote-files, attach-to-workspace.Open questions
Acceptance criteria
DocumentWorkspacePrerequisite / blocks this work: ai_ml_operations/chat_backend#24 (SSO with Google / Microsoft for registration & sign-in).
#24
Do #24 first so Drive connect can reuse the same Google/Microsoft OAuth app setup and token patterns.
Parented under epic #42.
Scope split:
Keep this issue as the original Drive-source tracker; prefer closing via the split children when done.