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-go.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,21 @@
4
4
5
5
This guide provides Go-specific patterns, examples, and best practices for the Pinecone SDK.
6
6
7
+
## 🚨 MANDATORY RULES - Read First
8
+
9
+
**⚠️ CRITICAL: These rules MUST be followed. Violations will cause runtime errors or data issues.**
10
+
11
+
1.**MUST use namespaces** - Every operation MUST use `.WithNamespace()` method
12
+
2.**MUST wait 10+ seconds** - After upserting records, MUST wait 10+ seconds before searching
13
+
3.**MUST match field_map** - Record field names MUST match the right side of `--field_map` used when creating index
14
+
4.**MUST respect batch limits** - Text records: MAX 96 per batch, Vector records: MAX 1000 per batch
15
+
5.**MUST use flat metadata** - No nested objects allowed, only flat key-value pairs
16
+
6.**MUST use safe type assertions** - Use `ok` check: `val, ok := field.(string)`
17
+
7.**MUST pass context** - All operations require `context.Context` parameter
18
+
8.**MUST verify before installing** - Check if SDK/CLI already installed before prompting installation
19
+
20
+
**Before proceeding with any operation, verify these rules are followed. See detailed sections below for implementation.**
21
+
7
22
## Installation & Setup
8
23
9
24
> **⚠️ IMPORTANT**: See [PINECONE.md](./PINECONE.md#-mandatory-always-use-latest-version) for the mandatory requirement to always use the latest version when creating projects.
@@ -467,9 +482,11 @@ if err != nil {
467
482
468
483
### Semantic Search with Reranking (Best Practice)
469
484
485
+
**Note**: Reranking is a best practice for production quality results. Quickstarts include reranking to demonstrate usage.
Copy file name to clipboardExpand all lines: .agents/PINECONE-java.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,20 @@
4
4
5
5
This guide provides Java-specific patterns, examples, and best practices for the Pinecone SDK.
6
6
7
+
## 🚨 MANDATORY RULES - Read First
8
+
9
+
**⚠️ CRITICAL: These rules MUST be followed. Violations will cause runtime errors or data issues.**
10
+
11
+
1.**MUST use namespaces** - Every upsert, search, fetch, delete operation MUST specify a namespace parameter
12
+
2.**MUST wait 10+ seconds** - After upserting records, MUST wait 10+ seconds before searching
13
+
3.**MUST match field_map** - Record field names MUST match the right side of `--field_map` used when creating index
14
+
4.**MUST respect batch limits** - Text records: MAX 96 per batch, Vector records: MAX 1000 per batch
15
+
5.**MUST use flat metadata** - No nested objects allowed, only flat key-value pairs
16
+
6.**MUST handle exceptions** - All operations can throw exceptions, MUST use try-catch
17
+
7.**MUST verify before installing** - Check if SDK/CLI already installed before prompting installation
18
+
19
+
**Before proceeding with any operation, verify these rules are followed. See detailed sections below for implementation.**
20
+
7
21
## Installation & Setup
8
22
9
23
> **⚠️ IMPORTANT**: See [PINECONE.md](./PINECONE.md#-mandatory-always-use-latest-version) for the mandatory requirement to always use the latest version when creating projects.
Copy file name to clipboardExpand all lines: .agents/PINECONE-python.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,20 @@
4
4
5
5
This guide provides Python-specific patterns, examples, and best practices for the Pinecone SDK.
6
6
7
+
## 🚨 MANDATORY RULES - Read First
8
+
9
+
**⚠️ CRITICAL: These rules MUST be followed. Violations will cause runtime errors or data issues.**
10
+
11
+
1.**MUST use namespaces** - Every upsert, search, fetch, delete operation MUST specify a namespace
12
+
2.**MUST wait 10+ seconds** - After upserting records, MUST wait 10+ seconds before searching
13
+
3.**MUST match field_map** - Record field names MUST match the right side of `--field_map` used when creating index
14
+
4.**MUST respect batch limits** - Text records: MAX 96 per batch, Vector records: MAX 1000 per batch
15
+
5.**MUST use flat metadata** - No nested objects allowed, only flat key-value pairs
16
+
6.**MUST use `pinecone` package** - NOT `pinecone-client` (deprecated, causes errors)
17
+
7.**MUST verify before installing** - Check if SDK/CLI already installed before prompting installation
18
+
19
+
**Before proceeding with any operation, verify these rules are followed. See detailed sections below for implementation.**
20
+
7
21
## Installation & Setup
8
22
9
23
> **⚠️ IMPORTANT**: See [PINECONE.md](./PINECONE.md#-mandatory-always-use-latest-version) for the mandatory requirement to always use the latest version when creating projects.
@@ -269,6 +283,13 @@ for hit in reranked_results.result.hits:
269
283
270
284
### Upserting Records
271
285
286
+
**⚠️ Before upserting, verify:**
287
+
288
+
1. Namespace is specified (MANDATORY)
289
+
2. Field names match `--field_map` used when creating index (MANDATORY)
290
+
3. Batch size ≤ 96 records for text, ≤ 1000 for vectors (MANDATORY)
291
+
4. Metadata is flat (no nested objects) (MANDATORY)
Copy file name to clipboardExpand all lines: .agents/PINECONE-troubleshooting.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,4 +259,4 @@ If you're still experiencing issues:
259
259
260
260
---
261
261
262
-
**Remember**: Always use namespaces, always rerank, always handle errors with retry logic, and account for eventual consistency delays.
262
+
**Remember**: Always use namespaces, use reranking for best results (shown in quickstarts), always handle errors with retry logic, and account for eventual consistency delays.
7.**MUST use `await`** - All SDK operations are async, MUST use `await` keyword
18
+
8.**MUST verify before installing** - Check if SDK/CLI already installed before prompting installation
19
+
20
+
**Before proceeding with any operation, verify these rules are followed. See detailed sections below for implementation.**
21
+
7
22
## Installation & Setup
8
23
9
24
> **⚠️ IMPORTANT**: See [PINECONE.md](./PINECONE.md#-mandatory-always-use-latest-version) for the mandatory requirement to always use the latest version when creating projects.
0 commit comments