[PR #18019] [CLOSED] Add Google Drive import feature to Knowledge Base #11439

Closed
opened 2025-11-11 19:31:46 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18019
Author: @kabirchawla2003
Created: 10/2/2025
Status: Closed

Base: mainHead: add-gdrive-button


📝 Commits (2)

  • 0ff0914 Add Google Drive import feature to Knowledge Base
  • 93e725c chore: remove .claude folder and update .gitignore

📊 Changes

8 files changed (+204 additions, -59 deletions)

View changed files

📝 .gitignore (+0 -0)
📝 Dockerfile (+1 -1)
docker-compose.yml (+18 -0)
src/lib/components/icons/GoogleDrive.svelte (+18 -0)
📝 src/lib/components/workspace/Knowledge/KnowledgeBase.svelte (+34 -1)
📝 src/lib/components/workspace/Knowledge/KnowledgeBase/AddContentMenu.svelte (+11 -0)
📝 src/lib/utils/google-drive-picker.ts (+106 -57)
start-dev.bat (+16 -0)

📄 Description

Title

feat: add Google Drive import button to Knowledge Base


Description

This PR introduces a new feature to import documents directly from Google Drive into the Knowledge Base.

Added

  • Google Drive icon component
  • Google Drive import option in AddContentMenu
  • Google Drive document import handler in Knowledge Base backend (main.py)
  • Support for importing individual files and entire folders
  • Auto-conversion of Google Workspace files (Docs, Sheets, Slides) into supported formats

Changed

  • Enhanced google-drive-picker.ts with folder support

Removed

N/A

Fixed

N/A

Security

N/A

Breaking Changes

None


Additional Information


Screenshot

image

Checklist

  • Target branch: PR targets dev branch
  • Description: Added concise summary of changes
  • Changelog: Included above in the correct format
  • Documentation: Iam not sure if it is required
  • Dependencies: No new external dependencies introduced
  • Testing: Manually tested file and folder imports from Google Drive
  • Code review: Self-reviewed for coding standard compliance
  • Prefix: PR title prefixed with feat

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/18019 **Author:** [@kabirchawla2003](https://github.com/kabirchawla2003) **Created:** 10/2/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-gdrive-button` --- ### 📝 Commits (2) - [`0ff0914`](https://github.com/open-webui/open-webui/commit/0ff0914f14af422783c6c57d92c71e6769d85b79) Add Google Drive import feature to Knowledge Base - [`93e725c`](https://github.com/open-webui/open-webui/commit/93e725c4fe2ab15bc05595c8bdd0f62cc5af6f1b) chore: remove .claude folder and update .gitignore ### 📊 Changes **8 files changed** (+204 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+0 -0) 📝 `Dockerfile` (+1 -1) ➕ `docker-compose.yml` (+18 -0) ➕ `src/lib/components/icons/GoogleDrive.svelte` (+18 -0) 📝 `src/lib/components/workspace/Knowledge/KnowledgeBase.svelte` (+34 -1) 📝 `src/lib/components/workspace/Knowledge/KnowledgeBase/AddContentMenu.svelte` (+11 -0) 📝 `src/lib/utils/google-drive-picker.ts` (+106 -57) ➕ `start-dev.bat` (+16 -0) </details> ### 📄 Description ### Title `feat: add Google Drive import button to Knowledge Base` --- ### Description This PR introduces a new feature to import documents directly from Google Drive into the Knowledge Base. ### Added * Google Drive icon component * Google Drive import option in `AddContentMenu` * Google Drive document import handler in Knowledge Base backend (`main.py`) * Support for importing individual files and entire folders * Auto-conversion of Google Workspace files (Docs, Sheets, Slides) into supported formats ### Changed * Enhanced `google-drive-picker.ts` with folder support ### Removed N/A ### Fixed N/A ### Security N/A ### Breaking Changes None --- ### Additional Information * Related discussion: [[#14135](https://github.com/open-webui/open-webui/discussions/14135)](https://github.com/open-webui/open-webui/discussions/14135) * No new external dependencies introduced. * Tested importing multiple file types (Docs, Sheets, PDFs) successfully. --- Screenshot <img width="357" height="370" alt="image" src="https://github.com/user-attachments/assets/ac4065e2-e21b-4ce4-af83-a821b77cfe7e" /> --- ### Checklist * [x] **Target branch:** PR targets `dev` branch * [x] **Description:** Added concise summary of changes * [x] **Changelog:** Included above in the correct format * [ ] **Documentation:** Iam not sure if it is required * [x] **Dependencies:** No new external dependencies introduced * [x] **Testing:** Manually tested file and folder imports from Google Drive * [x] **Code review:** Self-reviewed for coding standard compliance * [x] **Prefix:** PR title prefixed with `feat` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 19:31:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#11439