You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/PINECONE.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,34 @@ Based on what the user is asking, consult these guides:
104
104
- ✅ **Other services** - explicit embeddings generation, reranking, etc.
105
105
- ✅ **Unit and integration tests**
106
106
107
+
### 🎯 MANDATORY: Index Creation - Choose Your Approach
108
+
109
+
**⚠️ CRITICAL: When a user needs to create a Pinecone index, you MUST:**
110
+
111
+
1.**Explain all four options** (see below)
112
+
2.**Ask the user which method they prefer**
113
+
3.**Assist them accordingly** with instructions, code, or executing commands
114
+
115
+
**Never assume a method or proceed without the user's choice.**
116
+
117
+
#### Index Creation Options
118
+
119
+
There are four ways to create a Pinecone index:
120
+
121
+
1.**Manual via Web Console** - [https://app.pinecone.io/](https://app.pinecone.io/) - Best for one-time setup, learning. Agent provides instructions on settings (metric, cloud, region, embedding model).
122
+
123
+
2.**Using Pinecone CLI** - `pc index create` command (see [PINECONE-cli.md](./PINECONE-cli.md)). Best for quick setup, CI/CD, automation. Agent provides/executes CLI command.
124
+
125
+
3.**Dedicated Setup Script** - Standalone script (e.g., `setup.sh`, `init.py`, `scripts/setup.ts`) using SDK. Best for explicit initialization steps. Agent creates script with idempotent index creation (check if exists before creating).
126
+
127
+
4.**Auto-create in App Initialization** - Add index creation/verification to app startup code. Best for production, automated deployments. Agent adds idempotent logic to initialization functions.
0 commit comments