Use this skill when the user asks you to search their personal documents via the Google Drive RAG API. This includes questions like "What is my Aetna ID?", "Search my drive for...", "Sync my drive", "What is the status of my sync?", "What is the service account email?", or "Renew my token".
This skill includes a self-contained Python CLI tool in its directory.
Before running any commands, you MUST verify the environment is set up:
~/.agents/skills/driverag/.env exists. API_URL and JWT_TOKEN..env file in the skill directory (~/.agents/skills/driverag/.env) with those values.~/.agents/skills/driverag/venv). cd ~/.agents/skills/driverag && python3 -m venv venvsource venv/bin/activate && pip install -r requirements.txtOnce the environment is validated and the .env file is created, you can interact with the RAG system using the CLI tool.
ALWAYS run the CLI from the skill directory (~/.agents/skills/driverag/) and ALWAYS activate its virtual environment first.
Here are the commands you can run:
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py search "$ARGUMENTS"
```
If the user passes specific folders, append them: python3 cli.py search "$ARGUMENTS" -f "Folder Name"
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py list-files
```
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py status
```
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py sync
```
To force a complete re-download and re-indexing of all files: python3 cli.py sync --force
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py service-account
```
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py renew-token
```
```bash
cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py add-folder "$ARGUMENTS"
```
cli.py search command to get the exact answer from the RAG system and output the exact response it gives you.list-files command instead, because RAG semantic search cannot generate file lists.renew-token command to update their .env file.共 1 个版本