/install filechat-old-ugnire
FileChat Skill
Your personal RAG (Retrieval-Augmented Generation) document library backed by Google Drive.
Setup & Bootstrap
If the user asks to use FileChat or asks a question about their files, FIRST verify that the required environment variables are set in /workspace/skills/filechat/.env:
GEMINI_API_KEY(For the embedding modeltext-embedding-004)FILECHAT_DRIVE_FOLDER_ID(The root Google Drive folder ID to index)
If they are missing, STOP and ask the user to provide them.
(To find the folder ID, they can look at the URL of the folder in Google Drive: https://drive.google.com/drive/folders/\x3CFOLDER_ID>)
Create the .env file like this:
echo "GEMINI_API_KEY=your_key_here" > ./skills/filechat/.env
echo "FILECHAT_DRIVE_FOLDER_ID=your_folder_id_here" >> ./skills/filechat/.env
How to Sync the Library
When the user asks to "sync", "flush", or "update" their FileChat library, you must run the ingestion script. This connects to Google Drive, downloads all new/changed files (including PDFs, resolving shortcuts, and traversing sub-folders), chunks the text, gets embeddings, and saves them to a local ChromaDB.
cd ./skills/filechat && node sync.js
(Warning: The first sync may take a few minutes depending on the folder size.)
How to Answer User Questions (RAG)
When a user asks a question about the contents of their documents (e.g., "What does my medical discharge say?"), you MUST query the local ChromaDB vector store to fetch the relevant text chunks.
cd ./skills/filechat && node query.js "What does my medical discharge say?"
The output will give you the most relevant text snippets, the original file names, and the Google Drive File IDs. Use the text snippets to formulate a comprehensive answer for the user. Always cite the file name you are referencing.
How to Retrieve and Send a Physical File
If the user asks for the actual file (e.g., "Send me the discharge PDF"), first find the File ID using the query script (if you don't already know it).
Then, use the gws CLI to download the file into your workspace:
gws drive files get --params '{"fileId": "\x3CFILE_ID>", "alt": "media"}' > /workspace/discharge.pdf
Then, reply to the user using the OpenClaw media attachment syntax: MEDIA:/workspace/discharge.pdf to send the physical file directly to their chat window.
How to Store a New File for the User
If the user uploads a file and asks you to "store" or "save" it:
- Upload it to their FileChat Google Drive folder using
gws:gws drive files create \ --json '{"name": "filename.pdf", "parents": ["\x3CFILECHAT_DRIVE_FOLDER_ID>"]}' \ --upload /path/to/uploaded/file.pdf - Trigger the sync process so the new file is immediately readable by the vector database:
cd ./skills/filechat && node sync.js
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install filechat-old-ugnire - 安装完成后,直接呼叫该 Skill 的名称或使用
/filechat-old-ugnire触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Google Drive based RAG 是什么?
Search, retrieve, and chat with documents securely stored in a designated Google Drive folder using semantic vector search (RAG RAG). Use when: (1) a user as... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 145 次。
如何安装 Google Drive based RAG?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install filechat-old-ugnire」即可一键安装,无需额外配置。
Google Drive based RAG 是免费的吗?
是的,Google Drive based RAG 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Google Drive based RAG 支持哪些平台?
Google Drive based RAG 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Drive based RAG?
由 eladrave(@eladrave)开发并维护,当前版本 v1.0.0。