Skip to content

Commit 17368dd

Browse files
authored
Merge pull request #13 from pinecone-io/sync/skills
sync: skills from pinecone-io/skills
2 parents 6fee711 + 3d6515e commit 17368dd

26 files changed

Lines changed: 68 additions & 43 deletions

File tree

skills/pinecone-assistant/.gitkeep

Whitespace-only changes.

skills/pinecone-assistant/SKILL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Pinecone Assistant is a fully managed RAG service. Upload documents, ask questio
1010
> All scripts are in `scripts/` relative to this skill directory.
1111
> Run with: `uv run scripts/script_name.py [arguments]`
1212
13+
Whenever this skill asks the user to choose between options, confirm a destructive step, or pick from a list, ask in plain prose, list the options, and wait for their answer before continuing.
14+
1315
## Operations
1416

1517
| What to do | Script | Key args |
@@ -73,6 +75,10 @@ Handle chained requests naturally. Example:
7375

7476
## Prerequisites
7577

76-
- `PINECONE_API_KEY` must be available — add it to a `.env` file at your workspace root (the bundled MCP config loads it via Cursor's `envFile` field) and run scripts with `uv run --env-file .env scripts/...`. For terminal-only scripts, `export PINECONE_API_KEY="your-key"` also works.
78+
- `PINECONE_API_KEY` must be available:
79+
- Add `PINECONE_API_KEY=your-key` to a `.env` file at your workspace root. The
80+
bundled MCP config reads it through Cursor's `envFile` field.
81+
- For scripts, either `export PINECONE_API_KEY="your-key"` in your terminal or
82+
run them with `uv run --env-file .env scripts/...`.
7783
- `uv` must be installed — [install uv](https://docs.astral.sh/uv/getting-started/installation/)
7884
- Get a free API key at: https://app.pinecone.io/?sessionType=signup

skills/pinecone-assistant/references/.gitkeep

Whitespace-only changes.

skills/pinecone-assistant/scripts/.gitkeep

Whitespace-only changes.

skills/pinecone-assistant/scripts/chat.py

100755100644
File mode changed.

skills/pinecone-assistant/scripts/context.py

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def main(
131131

132132
# Suggest next action
133133
next_action = f"""[bold]Next steps:[/bold]
134-
• Ask a question: [cyan]/pinecone:assistant-chat assistant {assistant} message [your question][/cyan]
135-
• Upload more files: [cyan]/pinecone:assistant-upload assistant {assistant} source [path][/cyan]"""
134+
• Ask a question: [cyan]uv run chat.py --assistant {assistant} --message "YOUR QUESTION"[/cyan]
135+
• Upload more files: [cyan]uv run upload.py --assistant {assistant} --source PATH[/cyan]"""
136136
console.print(Panel(next_action, title="What's Next?", border_style="green"))
137137

138138
except AttributeError as e:
@@ -141,7 +141,7 @@ def main(
141141
console.print(f"[dim]Details: {e}[/dim]")
142142
console.print("\n[yellow]Note:[/yellow] Context API requires SDK version with assistant.context() support")
143143
console.print("\n[yellow]Try using chat instead:[/yellow]")
144-
console.print(f" /pinecone:assistant-chat assistant {assistant} message \"{query}\"")
144+
console.print(f" uv run chat.py --assistant {assistant} --message \"{query}\"")
145145
raise typer.Exit(1)
146146
except Exception as e:
147147
console.print(f"[red]Error: {e}[/red]")

skills/pinecone-assistant/scripts/create.py

100755100644
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def main(
112112

113113
# Next steps
114114
next_steps = f"""[bold]Next steps:[/bold]
115-
1. Upload files: [cyan]/pinecone:assistant-upload assistant {name} source [path][/cyan]
116-
2. Chat: [cyan]/pinecone:assistant-chat assistant {name} message [your question][/cyan]
117-
3. Get context: [cyan]/pinecone:assistant-context assistant {name} query [search][/cyan]"""
115+
1. Upload files: [cyan]uv run upload.py --assistant {name} --source PATH[/cyan]
116+
2. Chat: [cyan]uv run chat.py --assistant {name} --message "YOUR QUESTION"[/cyan]
117+
3. Get context: [cyan]uv run context.py --assistant {name} --query "SEARCH TEXT"[/cyan]"""
118118

119119
console.print(Panel(next_steps, title="What's Next?", border_style="green"))
120120

skills/pinecone-assistant/scripts/list.py

100755100644
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def main(
6161
else:
6262
console.print("[yellow]No assistants found.[/yellow]\n")
6363
console.print("Create your first assistant with:")
64-
console.print(" [cyan]/pinecone:assistant-create name [assistant-name][/cyan]")
64+
console.print(" [cyan]uv run create.py --name ASSISTANT_NAME[/cyan]")
6565
return
6666

6767
if json_output:
@@ -195,10 +195,10 @@ def main(
195195

196196
# Next steps panel
197197
next_steps = """[bold]Next steps:[/bold]
198-
• List with files: [cyan]/pinecone:assistant-list --files[/cyan]
199-
• Chat: [cyan]/pinecone:assistant-chat assistant [name] message [your question][/cyan]
200-
• Upload: [cyan]/pinecone:assistant-upload assistant [name] source [path][/cyan]
201-
• Context: [cyan]/pinecone:assistant-context assistant [name] query [search][/cyan]"""
198+
• List with files: [cyan]uv run list.py --files[/cyan]
199+
• Chat: [cyan]uv run chat.py --assistant NAME --message "YOUR QUESTION"[/cyan]
200+
• Upload: [cyan]uv run upload.py --assistant NAME --source PATH[/cyan]
201+
• Context: [cyan]uv run context.py --assistant NAME --query "SEARCH TEXT"[/cyan]"""
202202

203203
console.print(Panel(next_steps, title="Available Commands", border_style="blue"))
204204

skills/pinecone-assistant/scripts/upload.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ def main(
208208
# Next steps
209209
if uploaded > 0:
210210
next_steps = f"""[bold]Next steps:[/bold]
211-
• Chat: [cyan]/pinecone:assistant-chat assistant {assistant} message [your question][/cyan]
212-
• Context: [cyan]/pinecone:assistant-context assistant {assistant} query [search][/cyan]
211+
• Chat: [cyan]uv run chat.py --assistant {assistant} --message "YOUR QUESTION"[/cyan]
212+
• Context: [cyan]uv run context.py --assistant {assistant} --query "SEARCH TEXT"[/cyan]
213213
214214
[dim]Note: Files are being processed and will be available shortly[/dim]"""
215215
console.print(Panel(next_steps, title="What's Next?", border_style="green"))

skills/pinecone-cli/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)