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
### 5. **Not Waiting for Indexing** (eventual consistency)
1028
1028
1029
+
> **⚠️ IMPORTANT FOR AGENTS**: Include wait logic in generated code (e.g., `time.Sleep(10 * time.Second)`). **DO NOT** execute `sleep` commands in the terminal yourself.
time.Sleep(10 * time.Second) // Wait for eventual consistency
@@ -1054,12 +1056,14 @@ if !ok {
1054
1056
1055
1057
## ⏳ Indexing Delays & Eventual Consistency
1056
1058
1059
+
> **⚠️ IMPORTANT FOR AGENTS**: The wait instructions below apply **ONLY to generated code**, not to the agent's own behavior. Include wait logic in the code you generate. **DO NOT** execute `sleep` commands in the terminal yourself.
1060
+
1057
1061
> **For complete information on eventual consistency**, see [PINECONE-troubleshooting.md](./PINECONE-troubleshooting.md#indexing-delays--eventual-consistency).
1058
1062
1059
1063
**Key Points:**
1060
1064
- Records become searchable 5-10 seconds after upsert
1061
1065
- Stats update 10-20 seconds after upsert
1062
-
- Always wait 10+ seconds before searching after upserting
1066
+
- Always wait 10+ seconds before searching after upserting (include wait logic in generated code)
Copy file name to clipboardExpand all lines: .agents/PINECONE-java.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1028,26 +1028,30 @@ Pinecone client = new Pinecone.Builder(apiKey).build();
1028
1028
1029
1029
### 6. **Not Waiting for Indexing** (eventual consistency)
1030
1030
1031
+
> **⚠️ IMPORTANT FOR AGENTS**: Include wait logic in generated code (e.g., `TimeUnit.SECONDS.sleep(10)`). **DO NOT** execute `sleep` commands in the terminal yourself.
1032
+
1031
1033
```java
1032
1034
// ❌ WRONG - search immediately after upsert
1033
1035
index.upsertRecords(namespace, records);
1034
1036
SearchRecordsResponse results = index.searchRecordsByText(...); // May return no results!
1035
1037
1036
-
// ✅ CORRECT - wait for indexing (10+ seconds)
1038
+
// ✅ CORRECT - wait for indexing (10+ seconds) - include in generated code
1037
1039
index.upsertRecords(namespace, records);
1038
1040
TimeUnit.SECONDS.sleep(10); // Wait for eventual consistency
> **⚠️ IMPORTANT FOR AGENTS**: The wait instructions below apply **ONLY to generated code**, not to the agent's own behavior. Include wait logic in the code you generate. **DO NOT** execute `sleep` commands in the terminal yourself.
1047
+
1044
1048
> **For complete information on eventual consistency**, see [PINECONE-troubleshooting.md](./PINECONE-troubleshooting.md#indexing-delays--eventual-consistency).
1045
1049
1046
1050
**Key Points:**
1047
1051
1048
1052
- Records become searchable 5-10 seconds after upsert
1049
1053
- Stats update 10-20 seconds after upsert
1050
-
- Always wait 10+ seconds before searching after upserting
1054
+
- Always wait 10+ seconds before searching after upserting (include wait logic in generated code)
Copy file name to clipboardExpand all lines: .agents/PINECONE-troubleshooting.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This guide covers common troubleshooting issues that apply across all programmin
17
17
18
18
**Solution**:
19
19
20
-
1. Wait 10+ seconds minimum after upserting records
20
+
1. Wait 10+ seconds minimum after upserting records (include wait logic in generated code, not in terminal commands)
21
21
2. Check if records were actually upserted (no errors thrown)
22
22
3. Use a polling pattern for production code (see language-specific guides for examples)
23
23
@@ -58,6 +58,7 @@ This guide covers common troubleshooting issues that apply across all programmin
58
58
59
59
4.**Wait for indexing**:
60
60
- Records become searchable 5-10 seconds after upsert
61
+
- Include wait logic in generated code (not terminal commands)
61
62
- Use polling pattern in production code
62
63
- See [Indexing Delays & Eventual Consistency](#indexing-delays--eventual-consistency) below
63
64
@@ -203,6 +204,8 @@ This guide covers common troubleshooting issues that apply across all programmin
203
204
204
205
## Indexing Delays & Eventual Consistency
205
206
207
+
> **⚠️ IMPORTANT FOR AGENTS**: The wait instructions below apply **ONLY to generated code**, not to the agent's own behavior. When generating code that upserts records and then queries them, include wait logic in the generated code. **DO NOT** execute `sleep` commands in the terminal yourself.
208
+
206
209
Pinecone uses **eventual consistency**. This means records don't immediately appear in searches or stats after upserting.
207
210
208
211
### Realistic Timing Expectations
@@ -222,6 +225,8 @@ After upserting records:
222
225
2.**Stats wait**: 10-20 seconds for stats to update
223
226
3.**Production pattern**: Use polling with `describeIndexStats()` to verify readiness
224
227
228
+
**Note**: Include wait logic in generated code (e.g., `time.sleep(10)` in Python, `TimeUnit.SECONDS.sleep(10)` in Java). Do not execute sleep commands in the terminal.
229
+
225
230
See language-specific guides for polling pattern code examples.
Copy file name to clipboardExpand all lines: .agents/PINECONE-typescript.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -967,12 +967,14 @@ console.log(results);
967
967
968
968
## ⏳ Indexing Delays & Eventual Consistency
969
969
970
+
> **⚠️ IMPORTANT FOR AGENTS**: The wait instructions below apply **ONLY to generated code**, not to the agent's own behavior. Include wait logic in the code you generate (e.g., `await new Promise(r => setTimeout(r, 10000))`). **DO NOT** execute `sleep` commands in the terminal yourself.
971
+
970
972
> **For complete information on eventual consistency**, see [PINECONE-troubleshooting.md](./PINECONE-troubleshooting.md#indexing-delays--eventual-consistency).
971
973
972
974
**Key Points:**
973
975
- Records become searchable 5-10 seconds after upsert
974
976
- Stats update 10-20 seconds after upsert
975
-
- Always wait 10+ seconds before searching after upserting
977
+
- Always wait 10+ seconds before searching after upserting (include wait logic in generated code)
0 commit comments