Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Agent RAG and long-term memory with Pinecone.
.claude/skills/nousresearch-pinecone-research/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 119% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-20 | ✓→✓ | = Same ✓ | -2% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -11% | 0% |
| case-21 | ✓→✓ | = Same ✓ | 8% | 0% |
Use Pinecone as a retrieval-augmented generation (RAG) backend for agent conversations: persist embeddings, retrieve relevant context from past sessions, and build long-term memory.
Use when:
Use the mlops/pinecone skill instead when:
bashpip install pinecone-client langchain-pinecone langchain-openai
Set your API key:
bashexport PINECONE_API_KEY="your-api-key"
pythonfrom pinecone import Pinecone, ServerlessSpec from langchain_pinecone import PineconeVectorStore from langchain_openai import OpenAIEmbeddings # Initialize Pinecone pc = Pinecone(api_key=os.environ["PINECONE_API_KEY"]) # Create or connect to index index_name = "agent-memory" if index_name not in [i.name for i in pc.list_indexes()]: pc.create_index( name=index_name, dimension=1536, metric="cosine", spec=ServerlessSpec(cloud="aws", region="us-east-1"), ) # Build vector store vectorstore = PineconeVectorStore.from_documents( documents=docs, embedding=OpenAIEmbeddings(), index_name=index_name, ) # Retrieve relevant context retriever = vectorstore.as_retriever(search_kwargs={"k": 5}) results = retriever.invoke("What did the agent discuss yesterday?")
python# Store per-session memory vectorstore = PineconeVectorStore( index=pc.Index(index_name), embedding=OpenAIEmbeddings(), namespace=f"session-{session_id}", ) # Query across all sessions (no namespace filter) all_memory = PineconeVectorStore( index=pc.Index(index_name), embedding=OpenAIEmbeddings(), ) results = all_memory.similarity_search("relevant query", k=10)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-07 | fail→pass | 23,594 | 7,684 | -67% | 1 | 1 | 0% | 984 | 2,158 | +119% | 0 | 0 | — |
case-20 | pass→pass | 17,596 | 12,462 | -29% | 1 | 1 | 0% | 3,403 | 3,333 | -2% | 0 | 0 | — |
case-01 | fail→fail | 16,907 | 18,247 | +8% | 1 | 1 | 0% | 3,340 | 4,283 | +28% | 0 | 0 | — |
case-02 | pass→pass | 9,202 | 3,543 | -61% | 1 | 1 | 0% | 1,602 | 1,423 | -11% | 0 | 0 | — |
case-21 | pass→pass | 16,495 | 13,082 | -21% | 1 | 1 | 0% | 3,139 | 3,391 | +8% | 0 | 0 | — |
case-03 | pass→pass | 2,321 | 2,128 | -8% | 1 | 1 | 0% | 352 | 1,038 | +195% | 0 | 0 | — |
case-04 | pass→pass | 3,014 | 3,126 | +4% | 1 | 1 | 0% | 552 | 1,314 | +138% | 0 | 0 | — |
case-05 | pass→pass | 6,945 | 4,764 | -31% | 1 | 1 | 0% | 1,300 | 1,595 | +23% | 0 | 0 | — |
case-06 | pass→pass | 8,005 | 4,869 | -39% | 1 | 1 | 0% | 1,514 | 1,641 | +8% | 0 | 0 | — |
case-22 | pass→pass | 9,926 | 7,778 | -22% | 1 | 1 | 0% | 1,933 | 2,197 | +14% | 0 | 0 | — |
case-08 | pass→pass | 10,172 | 6,497 | -36% | 1 | 1 | 0% | 1,856 | 1,946 | +5% | 0 | 0 | — |
case-09 | pass→pass | 15,815 | 11,589 | -27% | 1 | 1 | 0% | 2,942 | 2,896 | -2% | 0 | 0 | — |
case-10 | pass→pass | 15,269 | 13,139 | -14% | 1 | 1 | 0% | 2,528 | 3,177 | +26% | 0 | 0 | — |
case-11 | pass→pass | 4,689 | 3,124 | -33% | 1 | 1 | 0% | 836 | 1,312 | +57% | 0 | 0 | — |
case-12 | pass→pass | 5,470 | 4,191 | -23% | 1 | 1 | 0% | 1,118 | 1,539 | +38% | 0 | 0 | — |
case-13 | pass→pass | 8,465 | 4,595 | -46% | 1 | 1 | 0% | 1,643 | 1,654 | +1% | 0 | 0 | — |
case-14 | pass→pass | 7,283 | 1,466 | -80% | 1 | 1 | 0% | 1,383 | 981 | -29% | 0 | 0 | — |
case-15 | fail→pass | 5,466 | 1,570 | -71% | 1 | 1 | 0% | 941 | 946 | +1% | 0 | 0 | — |
case-16 | pass→pass | 4,998 | 3,948 | -21% | 1 | 1 | 0% | 1,141 | 1,360 | +19% | 0 | 0 | — |
case-17 | pass→pass | 15,480 | 12,455 | -20% | 1 | 1 | 0% | 2,619 | 3,026 | +16% | 0 | 0 | — |
case-18 | pass→pass | 2,079 | 1,579 | -24% | 1 | 1 | 0% | 356 | 926 | +160% | 0 | 0 | — |
case-19 | pass→pass | 4,616 | 1,720 | -63% | 1 | 1 | 0% | 777 | 1,012 | +30% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +9 percentage points is the difference between those two pass rates over the 21 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.