惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
雷峰网
雷峰网
罗磊的独立博客
T
The Blog of Author Tim Ferriss
阮一峰的网络日志
阮一峰的网络日志
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Cisco Talos Blog
Cisco Talos Blog
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
A
About on SuperTechFans
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Cloudflare Blog
Know Your Adversary
Know Your Adversary
T
Threat Research - Cisco Blogs
Spread Privacy
Spread Privacy
D
DataBreaches.Net
T
The Exploit Database - CXSecurity.com
K
Kaspersky official blog
Cyberwarzone
Cyberwarzone
爱范儿
爱范儿
U
Unit 42
Security Latest
Security Latest
M
MIT News - Artificial intelligence
月光博客
月光博客
Scott Helme
Scott Helme
G
Google Developers Blog
有赞技术团队
有赞技术团队
T
Tor Project blog
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
博客园 - Franky
H
Hackread – Cybersecurity News, Data Breaches, AI and More
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
V
V2EX
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
S
Securelist
博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
TaoSecurity Blog
TaoSecurity Blog
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
腾讯CDC
D
Docker
Google Online Security Blog
Google Online Security Blog

Pinecone

Pinecone Assistant: A Managed Knowledge Layer for Production AI Applications Multi-domain RAG in n8n: why one knowledge base is not enough Allspice Transforms the Culinary Experience with Semantic Search Powered by Pinecone | Pinecone Building RAG workflows in n8n: choosing the right Pinecone node Knowledge needs a meta-knowledge layer Garbage Day: How Pinecone Safely Deletes Billions of Objects at Scale When "Performance" Means Two Different Things Pinecone BYOC: Pinecone in your AWS, GCP, or Azure account, no vendor access True, Relevant, and Wrong: The Applicability Problem in RAG Use the Pinecone Plugin for Claude Code to develop AI Applications Faster Millions at Stake: How Melange's High-Recall Retrieval Prevents Litigation Collapse Powering High-stakes Patent Search at Scale: How Melange Built a Reliable AI System on Pinecone | Pinecone Pinecone Assistant Node in n8n: Turn Any Data Source Into Knowledge RAG with Access Control Pinecone Dedicated Read Nodes are now in Public Preview Inside Pinecone: Slab Architecture New Bulk Data Operations: Update, Delete, and Fetch by Metadata The Hidden Cost of Building: Lessons from Aquant Simplifying Vector Embeddings with Pinecone Integrated Inference Capabilities Pinecone joins Microsoft Marketplace as a Launch Partner GTM Engineering: Clay + Pinecone for AI-powered Sales Outbound Build an AI knowledge assistant with Google Docs and Pinecone Moving Pinecone forward with Ash Ashutosh as CEO and Edo spearheading our growing AI ambitions as Chief Scientist Pinecone Founder Edo Liberty to Spearhead Pinecone’s Growing AI Ambitions; Appoints Ash Ashutosh as CEO to Expand Vector Database Market Leadership Fast, Accurate Retrieval for Creators at Scale: Delphi’s Path Toward a Million Conversational Agents with Pinecone | Pinecone Announcing Pinecone Pioneers: A Program for Builders, Organizers, and Community Leaders What is Context Engineering? Chunking Strategies for LLM Applications Beyond the hype: Why RAG remains essential for modern AI Obviant Makes 30% More Accurate Defense Acquisition Recommendations Combining Sparse and Dense Retrieval with Pinecone | Pinecone Build more knowledgeable AI applications with new LLMs and greater control in Pinecone Assistant #NYTECHWEEK 2025 Retrieval-Augmented Generation (RAG) Accurate and Efficient Metadata Filtering in Pinecone’s Serverless Vector Database | Pinecone Terminal X AI Agents, Powered by Pinecone, Turn Complex Financial Data Into Production-grade Insights at Scale | Pinecone Aquant Delivers Scalable, Expert-level Service Intelligence with Pinecone | Pinecone Cascading retrieval with multi-vector representations: balancing efficiency and effectiveness Vector databases aren't just for large-scale enterprise AI Unveiling DIME: Reproducibility, Scalability, and Formal Analysis of Dimension Importance Estimation for Dense Retrieval | Pinecone Fast and Effective Early Termination for Simple Ranking Functions | Pinecone Domain-specific AI Agents at Scale: CustomGPT.ai Serves 10,000+ Customers with Pinecone | Pinecone Using Pinecone asynchronously with FastAPI A Flexible Resource for Top-Weighted Comparisons Between Sets and Rankings | Pinecone Build secure, scalable agentic AI workflows with Rubrik Annapurna and Pinecone Tool up: Pinecone’s first MCP servers are here Add context to your agent with Pinecone Assistant MCP remote server E2Rank: Efficient and Effective Layer-wise Reranking | Pinecone ColBERT-serve: Efficient Multi-Stage Memory-Mapped Scoring | Pinecone Efficient Constant-Space Multi-Vector Retrieval | Pinecone How Vanguard Worked with Pinecone to Boost Customer Support with Faster Calls and 12% More Accurate Responses | Pinecone Pinecone Named to Fast Company's Annual List of the World's Most Innovative Companies of 2025 Launch Week: Pinecone for agents, search, recommendations, and more Optimizing Pinecone for agents (and more) Retrieval Inference for scale and performance How 1up Turns Sales Reps Into Product Experts with Pinecone | Pinecone Don’t be dense: Launching sparse indexes in Pinecone Unlock High-Precision Keyword Search with pinecone-sparse-english-v0 Evolving Pinecone's architecture to meet the demands of Knowledgeable AI Pinpoint references faster with citation highlights in Pinecone Assistant Bringing the leading vector database to your cloud Getting started with llama-text-embed-v2 Natural Language Counterfactual Explanations for Graphs Using Large Language Models | Pinecone Easily build knowledgeable chat and agent-based applications in minutes with Pinecone Assistant, now generally available How to build an agentic, chat or RAG knowledge system using Pinecone Assistant Real-time RAG with Pinecone and Estuary Flow BigQuery to Pinecone in Real-Time with Estuary Flow Stravito Turns Market and Consumer Data Into Actionable Insights with Pinecone Inference | Pinecone Accelerate prototyping and development with Pinecone Local First-of-its-kind Pinecone Knowledge Platform to Power Best-in-class Retrieval for Customers Introducing integrated inference: Embed, rerank, and retrieve your data with a single API Strengthening security and increasing control with CMEK and API key roles Introducing Pinecone Rerank V0 Introducing cascading retrieval: Unifying dense and sparse with reranking From Idea to Action: How Pinecone Assistant Meaningfully Accelerates AI Business Building AI apps on Azure with Pinecone just got a lot easier Building a reliable, curated, and accurate RAG system with Cleanlab and Pinecone Four features of the Assistant API you aren't using - but should Deploying Pinecone with Infrastructure as Code (IaC) Streamlining CI/CD with Pinecone Local September 2024 Product Update Results of the Big ANN: NeurIPS'23 competition | Pinecone Introducing import from object storage for more efficient data transfer to Pinecone serverless Simplify, enhance, and evaluate RAG development with Pinecone Assistant, now in public preview Vectors and Graphs: Better Together August 2024 Product Update Pinecone Helps Deep Talk Deliver World-Class AI Assistants with Lower Engineering Overhead | Pinecone Assembled Delivers Better, Faster AI- Driven Support with Pinecone | Pinecone Llama 3.1 Agent using LangGraph and Ollama Build knowledgeable AI with Pinecone serverless, now generally available on Microsoft Azure Pinecone serverless is now generally available on Google Cloud, adding knowledge to AI assistants and other applications Accelerating Legal Discovery and Analysis with Pinecone and Voyage AI Bridging Dense and Sparse Maximum Inner Product Search | Pinecone Refine Retrieval Quality with Pinecone Rerank Introducing reranking to Pinecone Inference to simplify building accurate AI July 2024 Product Update Connect to Pinecone within your platform to enable a seamless AI development experience Introducing Pinecone API Versioning RAG Brag with Inkeep Co-Founder Nick Gomez LangGraph and Research Agents Introducing Pinecone Inference to streamline your AI workflow
Multi-Tenancy in Vector Databases
Roie Schwaber-Cohen, Bear Douglas, Zachary Proser · 2024-04-18 · via Pinecone

Note: If you're building mission-critical AI applications that require multi-tenancy, besides reading this guide you can also contact our solutions team for help.


Multi-tenancy is a software architecture pattern where a single instance of a system serves multiple customers, or tenants, simultaneously, with some form of data isolation ensuring privacy and security between tenants. Multi-tenancy enables you to share infrastructure and operational overhead across customers, reducing costs and simplifying system management. Nearly every SaaS app needs to design for multi-tenancy; it’s even relevant for some apps built for company-internal purposes.

Multi-tenancy is a common pattern, but it’s complex. You need to make sure that the system you design can scale effectively, maintaining high performance for all tenants — tenants that may have different workloads with different requirements and SLAs.

Let’s consider a fictional AI-assisted wiki product, SmartWiki. SmartWiki has 10s of millions of companies and individuals as their customers, each with a varying number of users (employees), scale of data (existing corpus, rate of new document creation), and SLAs provided to the customer by SmartWiki. SmartWiki pride themselves on their great UX, so query latency and other elements that affect customer perception of performance are paramount for all customers.

Luckily, SmartWiki can lean on Pinecone’s abstractions — indexes, namespaces, and metadata — to develop a multi-tenant system in a straightforward way. Pinecone serverless takes care of storing and accessing your tenant data efficiently, so you can design a consistent system and see the benefits without extra work.

Data isolation and efficient querying with namespaces

The most straightforward pattern for building a multi-tenant solution with Pinecone is by using one namespace per tenant. Namespaces allow you to physically partition records in an index. Queries and other operations are then limited to one namespace at a time.

That data isolation enhances query performance by isolating data into separate segments. Namespaces operate and scale independently - so if SmartWiki’s customer ACME is seeing a flurry of activity, queries and writes for Widgets'R'Us won’t run any slower.

Any query only interacts with one namespace, leading to faster response times and reduced costs. It also makes offboarding a tenant clean and simple– you simply need to delete the namespace.

Read more about serverless architecture.

You should prefer the namespaces pattern unless you require the ability to query across tenants.

All namespaces belong to exactly one index in Pinecone. SmartWiki might want to have different indexes that represent different workload patterns- let’s say for RAG and for semantic search. Then, within those indexes, data is namespaced to a specific tenant. Individual records (the group of vector + ID + associated metadata) belong to those namespaces. Then, when a query (or a write) comes in, it only hits a subset of SmartWiki’s data.

Diagram of a multitenant architecture in Pinecone featuring multiple namespaces and indexes

Real-world considerations for namespaces

Listen to our customer, Shortwave, talk about their namespacing strategy. Some of the things they suggest you consider:

  • Do I need one namespace per user, per company, or some other division?
  • How many documents do they have?
  • How big are they?

Shortwave chose a strategy that worked for a case where they’re working with millions of emails, and needed strict separation between individual users– meaning the tenant is the individual user, which makes their setup look a bit different from SmartWiki’s.

In a design like this, you may need to allocate more namespaces than the index limit, we recommend setting up a mapping table between your tenants and the indexes their namespace can be found. On query time, you’ll first resolve the index based on the tenant, and then proceed to query the project, index and the appropriate namespace for the tenant.

Alternative: use metadata and ID prefixes when you need to query across tenants

In specific cases you may choose not to use namespaces to manage your tenants. For example, in an internal tool for a single company, you might have a slightly different definition of tenancy where it’s helpful to maintain some amount of separation for filtering or bulk actions like deletions, but you want to retain the flexibility to query your index across tenants. In that case, you can also manage tenants using a combination of metadata and ID prefixes.

Consider a RAG internal knowledge base chatbot for ACME co. They’re trying to create federated search via their chatbot across their 150 different SaaS products, each of which has individual user accounts for their employees. They want to be able to query across all data sources and all user accounts if needed (for a superuser or admin), but realistically, they will need to filter what gets shown to a given user– and when that user, or a piece of software they use, gets disconnected from the system, they need a clean way to remove them.

In this pattern, you would store vectors from all tenants in a single index. For any given vector, you would use an ID prefix to identify the user or data source for a given piece of information. You would also attach metadata that identifies the relevant tenant– user, data source.

At query time, you would apply filters based on metadata to show the right set of results. This approach separates tenants at the query level, allowing for “virtual” segmentation without the need for separate indexes for each tenant.

When it’s time to delete or offboard a tenant, you can list all the vectors associated with a ID prefix, then batch delete them.

Here’s how you can implement it:

  • Add an ID prefix: At upsert time, assign a consistent ID prefix that identifies your tenant, e.g.{"id": "tenantname#userID#vectorID"}
  • Assign Metadata: Alongside the prefix, assign metadata to each vector that identifies its tenant. For instance, you might use a key-value pair like {"tenant_id": "tenantA"} for all vectors belonging to Tenant A.
  • Query with Metadata Filters: When querying the index, use metadata filters to retrieve only the vectors relevant to a specific tenant. For example, to retrieve vectors belonging to Tenant A, apply a filter that matches the tenant_id metadata to tenantA.

This method allows querying across multiple tenants if needed, while keeping the tenants logically separated within the same index. It’s important to note, however, that tenants share compute and storage resources in this model, and you cannot track tenant-specific costs or provision tenants with different dimensions at the index level.

Tell us your tips

Namespaces are the most common, best-alternative choice for managing multi-tenancy in Pinecone– as Shortwave and others do.

What questions do you have, or what approaches have you taken? Come talk to us in the forum.

Was this article helpful?