Pinecone setup
Pinecone setup for search and RAG
A vector database looks simple until the first re-index. We design the index, the metadata and the update path up front so you do not pay for the same mistake twice.
In short
Pinecone is a managed vector database used to store embeddings for semantic search and RAG chatbots. A sound setup fixes the embedding model and dimension first, uses namespaces to separate tenants, stores filterable metadata with every record, and plans how updates and deletions flow in. We also check whether a simpler store would do.
Decisions we make before creating an index
Some Pinecone settings are painful to change later. The index dimension must match the embedding model, so changing the model means building a new index and re-embedding every record. We therefore settle these points first.
| Decision | Options | How we choose |
|---|---|---|
| Embedding model | Hosted general models, multilingual models | Test retrieval on your questions, not on a leaderboard |
| Dimension and metric | Set by the model, cosine is common | Follow the model's documentation |
| Deployment type | Serverless or pod-based | Serverless for most new projects, check current options |
| Tenant separation | Namespaces or separate indexes | Namespaces for many small tenants |
| Search type | Dense only, or dense plus sparse (hybrid) | Hybrid when exact terms such as part numbers matter |
| Metadata | Source, date, language, access group, version | Whatever you will need to filter on, decided now |
Sizing math you can do yourself
Storage is easy to estimate. Each dimension of a standard vector is stored as a 32-bit number, which is 4 bytes. Take 50,000 chunks from your documents and an embedding model with 1,536 dimensions.
| Step | Calculation | Result |
|---|---|---|
| Bytes per vector | 1,536 x 4 | 6,144 bytes |
| Vectors only | 50,000 x 6,144 | about 307 MB |
| Metadata | 50,000 x about 1 KB | about 50 MB |
| Total, rough | about 360 MB | |
| Same data at 3,072 dimensions | Vectors double | about 614 MB for vectors alone |
So a mid-sized document set is small in absolute terms, and the bill is usually driven by read and write volume and by how many separate indexes you run, not by raw storage. We list your expected reads and writes in the quote assumptions and tell you which plan terms to check. Our AI chatbot cost calculator helps you model the rest.
What a setup usually contains
We have no published case study on Pinecone, so this is the typical scope and not a client story.
- Embedding testCompare two or three embedding models on 50 to 100 real questions and choose using retrieval hit rate.
- Index and namespace designCreate the index, define namespaces per tenant or per document set, define the metadata fields.
- Ingestion jobBatch upserts with stable record IDs, so re-running a file replaces its chunks rather than duplicating them.
- Query layerFilters for access group and date, optional hybrid search, optional reranking of the top results.
- OperationsDeletion path for removed files, a re-index procedure, monitoring and a backup of the source text.
The application on top is usually a RAG chatbot. If your documents are complex PDFs, see also our LlamaIndex page.
Gotchas
- Freshness. After an upsert, a record may take a short time to appear in queries. Do not build a flow that writes a record and instantly expects to read it back.
- Metadata limits. Each record can hold only a limited amount of metadata, so store the full text elsewhere and keep an ID in the record.
- Stable IDs. Random IDs make updates and deletes impossible to target. Derive IDs from file and chunk position.
- Access control. Filtering by user group must happen in the query itself. Hiding results after retrieval can leak content through the answer.
- Deleting data. Personal data removal requests need a way to find and delete every chunk of a person's file. Metadata makes that possible.
- Stale vectors after a model upgrade. Mixing old and new embeddings in one index produces poor results.
Do you need Pinecone at all
Not always. If you already run PostgreSQL and have under a few hundred thousand chunks, the pgvector extension may be enough and removes a vendor. If you need very high query volume, multiple regions or low operations effort, a managed service earns its place. We recommend the smaller option when it fits, and the decision is part of the first week.
Timeline
| Piece | Planning estimate |
|---|---|
| Embedding test and index design | 3 to 5 days |
| Ingestion and query layer for one document source | 1 to 2 weeks |
| Multi-tenant access rules, deletion and monitoring | 1 to 2 more weeks |
Updated 30 October 2026
Questions, answered
Can we change the embedding model later?
Is Pinecone only for chatbots?
How do we keep tenants' data separate?
What happens to our data if we leave?
Can you migrate us from another vector store?
Keep exploring
LlamaIndex development for document-heavy AI
LlamaIndex is built around the hard part of retrieval: getting messy documents into a shape a model can search. That is where we spend most of the…
ServiceRAG chatbot development that cites your documents
A retrieval-augmented chatbot looks up your own material before it answers, so replies come with a source and a person can check them.
Pricing guideHow much does a RAG chatbot cost in 2026?
A RAG chatbot answers from your own documents. Most of its cost is in preparing and testing those documents, not in the chat window.
Planning a search or RAG index?
Send us your document volume and use case. After a short call you get a fixed quote and a straight view on whether you need Pinecone.