|
| 1 | +# Pinecone Agent Reference |
| 2 | + |
| 3 | +This repository contains specialized agent instructions for the Pinecone vector database, designed to be integrated into your project's `AGENTS.md` file for use with AI coding assistants. |
| 4 | + |
| 5 | +## What's Included |
| 6 | + |
| 7 | +This repository provides comprehensive Pinecone documentation organized into the `.agents/` folder: |
| 8 | + |
| 9 | +- **PINECONE.md** - Universal concepts, CLI vs SDK guidance, common patterns, and navigation guide |
| 10 | +- **PINECONE-quickstart.md** - Step-by-step tutorials (Quick Test, Search, RAG, Recommendations) |
| 11 | +- **PINECONE-cli.md** - CLI installation, authentication, and command reference |
| 12 | +- **PINECONE-python.md** - Python SDK guide with code examples |
| 13 | +- **PINECONE-typescript.md** - TypeScript/Node.js SDK guide with code examples |
| 14 | +- **PINECONE-go.md** - Go SDK guide with code examples |
| 15 | +- **PINECONE-java.md** - Java SDK guide with code examples |
| 16 | + |
| 17 | +## Quick Start |
| 18 | + |
| 19 | +Install with three simple commands: |
| 20 | + |
| 21 | +```bash |
| 22 | +# 1. Download the latest release |
| 23 | +curl -L -o agents.zip https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip |
| 24 | + |
| 25 | +# 2. Extract the archive |
| 26 | +unzip agents.zip && rm agents.zip |
| 27 | + |
| 28 | +# 3. Add Pinecone section to AGENTS.md (creates it if it doesn't exist) |
| 29 | +touch AGENTS.md && cat AGENTS-pinecone-snippet.md >> AGENTS.md && rm AGENTS-pinecone-snippet.md |
| 30 | +``` |
| 31 | + |
| 32 | +That's it! Your project now has the `.agents/` folder with all Pinecone documentation and your `AGENTS.md` file has been updated. |
| 33 | + |
| 34 | +### Verify Installation |
| 35 | + |
| 36 | +After running the commands above, you should have: |
| 37 | + |
| 38 | +``` |
| 39 | +your-project/ |
| 40 | +├── .agents/ # Agent documentation folder |
| 41 | +│ ├── PINECONE.md # Main universal guide |
| 42 | +│ ├── PINECONE-quickstart.md # Quickstart tutorials |
| 43 | +│ ├── PINECONE-cli.md # CLI documentation |
| 44 | +│ ├── PINECONE-python.md # Python SDK guide |
| 45 | +│ ├── PINECONE-typescript.md # TypeScript/Node.js SDK guide |
| 46 | +│ ├── PINECONE-go.md # Go SDK guide |
| 47 | +│ └── PINECONE-java.md # Java SDK guide |
| 48 | +└── AGENTS.md # Your project's agent guide (with Pinecone section) |
| 49 | +
|
| 50 | +``` |
| 51 | + |
| 52 | +### Customizing the Integration |
| 53 | + |
| 54 | +The third command appends `AGENTS-pinecone-snippet.md` to your `AGENTS.md`. If you already have an `AGENTS.md` file and want more control over where the Pinecone section is placed: |
| 55 | + |
| 56 | +1. Extract the archive: `unzip agents.zip && rm agents.zip` |
| 57 | +2. Open `AGENTS-pinecone-snippet.md` and copy the "Pinecone (Vector Database)" section |
| 58 | +3. Manually add it to your `AGENTS.md` where you prefer |
| 59 | +4. Remove the snippet file: `rm AGENTS-pinecone-snippet.md` |
| 60 | + |
| 61 | +## Updating |
| 62 | + |
| 63 | +To update to a newer version: |
| 64 | + |
| 65 | +```bash |
| 66 | +# Download the latest version |
| 67 | +curl -L -o agents.zip https://github.com/pinecone-io/pinecone-agents-ref/releases/latest/download/agents.zip |
| 68 | +rm -rf .agents && unzip agents.zip && rm agents.zip |
| 69 | +# AGENTS.md typically doesn't need changes unless the structure changes |
| 70 | +``` |
| 71 | + |
| 72 | +## Usage |
| 73 | + |
| 74 | +Once installed, your AI coding assistant will automatically reference the `.agents/PINECONE.md` files when users ask questions about Pinecone. The main guide provides navigation to language-specific documentation based on the user's needs. |
| 75 | + |
| 76 | +## For Maintainers: Creating Releases |
| 77 | + |
| 78 | +The included GitHub Actions workflow (`.github/workflows/release.yml`) automatically packages and creates releases when you push a version tag. |
| 79 | + |
| 80 | +### How to Create a Release |
| 81 | + |
| 82 | +Simply tag and push your code: |
| 83 | + |
| 84 | +```bash |
| 85 | +git tag v1.0.0 |
| 86 | +git push origin v1.0.0 |
| 87 | +``` |
| 88 | + |
| 89 | +The workflow will automatically: |
| 90 | + |
| 91 | +1. Detect the version tag (matches `v*` pattern, e.g., `v1.0.0`, `v2.1.3`) |
| 92 | +2. Create a GitHub release if one doesn't already exist for that tag |
| 93 | +3. Package all files from the `.agents/` folder |
| 94 | +4. Include the `AGENTS-pinecone-snippet.md` file for easy integration |
| 95 | +5. Create both `agents.zip` and `agents.tar.gz` archives |
| 96 | +6. Attach both archives to the release as downloadable assets |
| 97 | + |
| 98 | +### How It Works |
| 99 | + |
| 100 | +The workflow triggers automatically on tag push (`push: tags: v*`) and: |
| 101 | + |
| 102 | +1. Extracts the tag name (e.g., `v1.0.0`) |
| 103 | +2. Checks if a GitHub release already exists for that tag |
| 104 | + - If a release exists → uses that release and attaches assets |
| 105 | + - If no release exists → creates a new release automatically |
| 106 | +3. Packages the following files: |
| 107 | + - All files from `.agents/` folder (7 Pinecone documentation files) |
| 108 | + - `AGENTS-pinecone-snippet.md` file |
| 109 | +4. Creates archives with the structure: |
| 110 | + ``` |
| 111 | + archive/ |
| 112 | + ├── .agents/ |
| 113 | + │ ├── PINECONE.md |
| 114 | + │ ├── PINECONE-quickstart.md |
| 115 | + │ ├── PINECONE-cli.md |
| 116 | + │ ├── PINECONE-python.md |
| 117 | + │ ├── PINECONE-typescript.md |
| 118 | + │ ├── PINECONE-go.md |
| 119 | + │ └── PINECONE-java.md |
| 120 | + └── AGENTS-pinecone-snippet.md |
| 121 | + ``` |
| 122 | +5. Uploads both `agents.zip` and `agents.tar.gz` to the release |
| 123 | + |
| 124 | +### Manual Release Option |
| 125 | + |
| 126 | +You can still create releases manually through the GitHub UI if you prefer. If you create a release for a tag that doesn't have assets yet, you can manually trigger the workflow or just push the tag again to have it run automatically. |
| 127 | + |
| 128 | +## Contributing |
| 129 | + |
| 130 | +Issues and pull requests are welcome! Please see the repository's contribution guidelines (if available). |
| 131 | + |
| 132 | +## License |
| 133 | + |
| 134 | +This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details. |
0 commit comments