Vector Store Security & Storage
How the knowledge base vector store keeps data secure: tenant isolation, encryption in transit and at rest, embedding model choice, data ownership.
The vector store is where the Knowledge Base keeps the searchable form of your documents: every chunk, its embedding, and the metadata used to filter and cite it. This page explains what a vector store does, how FlowGenX stores and isolates your data, and what to consider when choosing or changing an embedding model.
What is a vector store?
A vector store is a database built to find items by meaning. Each piece of text is turned into an embedding, a list of numbers produced by an embedding model, where texts with similar meaning end up close together. To search, the question is embedded with the same model and the store returns the stored vectors nearest to it.
Comparing a question against every stored vector is too slow once a collection grows, so vector stores build an approximate nearest-neighbour index. HNSW (Hierarchical Navigable Small World) is a common choice: a layered graph that reaches the closest vectors in a few hops while checking only a small fraction of them.
A vector store usually holds more than vectors. The original text, its source, and filterable metadata sit alongside each embedding, so a result can be shown, cited, and narrowed down.
How FlowGenX stores your vectors
The Knowledge Base stores vectors in PostgreSQL with the pgvector extension. For each chunk it keeps:
- the chunk text and its embedding;
- the embedding's dimension, so collections built with different models can share the store;
- metadata such as the file name, page numbers, heading path and your upload tags (see Chunking strategies);
- a full-text index of the chunk text, used by hybrid search.
Similarity is measured with cosine distance over HNSW indexes, one per embedding dimension. Indexes exist for 1,536-dimension and 3,072-dimension embeddings, the sizes of the common OpenAI embedding models.
The original uploaded files are kept in cloud storage. Search results link to the original document through a signed link that expires after about an hour.
Multi-tenant architecture
FlowGenX is built with a multi-tenant architecture. This means:
- Data isolation: every chunk and collection belongs to one tenant, and every query is scoped to it. The database also applies row-level security policies keyed on the tenant. Collection names are unique within a tenant and environment, so development and production can hold collections with the same name.
- Separate collections: even within your organization, you can separate data into different collections and choose which ones a search or workflow reads.
- Access control: who can use the Knowledge Base is set by role permissions to view, create, edit and remove knowledge.
Secure vector storage
- Encryption: data is encrypted both in transit and at rest.
- Approximate search: HNSW indexes keep similarity search fast as collections grow, without comparing the query to every stored chunk.
Choosing an embedding model
Documents are turned into vectors by an embedding model, so one must be available to your tenant before uploads can be indexed. See Quickstart: Your First Document.
In FlowGenX Chat, the embedding model is chosen on the Models tab of the Configuration page, and it drives knowledge-base search. Automatic follows your organization's default. Changing the model changes how text is vectorized: content embedded with a different model will not match cleanly against new queries, so plan to re-embed existing documents.
In the Knowledge Base itself, the model is set per collection:
- At creation. When you create a collection, you pick its embedding model. If no embedding models are registered, the collection uses the environment default.
- Environment default. Model Configuration sets the default embedding model for the environment.
- Changing a collection's model. From Model Configuration you can move a collection to a different model. The collection switches immediately, so new uploads use the new model, and a background job re-embeds the existing chunks.
When one search spans collections built with different models, the question is embedded once per model, and the result lists are merged by rank, because similarity scores from different models are not comparable.
How to choose an embedding model
General guidance that applies to any vector store:
- Use one model per collection. Vectors from different models live in different spaces and cannot be compared, which is why FlowGenX ties the model to the collection.
- Larger is not always better. A 3,072-dimension model may separate fine distinctions better than a 1,536-dimension one, but it costs more to embed and store. Test both on real questions before committing.
- Match the language and domain. A model trained mostly on English prose may handle code, legal text or other languages less well.
- Plan re-embedding. Changing the model means re-embedding every chunk, so pick a model you expect to keep.
Data ownership
Your documents stay yours. You can open the original file from any search result, delete individual documents, or delete an entire collection, which removes its chunks and embeddings from the store.
To bring content in, see Data sources.
Smart Processing
Chunking strategies for RAG in FlowGenX: structure-aware chunking that keeps sections and tables whole, metadata enrichment, and OCR for scanned PDFs.
Search & Retrieval
Search your knowledge base in natural language: semantic search across collections, AI summaries with sources, and relevance settings.