When OpenSearch vector search fits a RAG project
OpenSearch can serve as the retrieval layer for a RAG assistant when its vector features, its version and its access model are confirmed for your data. A team that already runs OpenSearch for logs or site search is well placed to test this, because the cluster, its operators and its backup routines already exist. Licensing is the simpler question. All OpenSearch software is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe a paid edition, so the decision depends on technical fit, support and maintenance.
Extending an existing cluster makes sense when the source content already lives in OpenSearch, the people who ask questions already have permissions in the Security plugin, and the cluster has capacity to spare. The Security plugin provides role-based access control, document-level and field-level security and audit logs, so the retrieval query can be limited to the chunks each user may see. Confirm that these controls apply to the vector fields and index layout you plan, because an assistant that answers from restricted documents is only as safe as the filter it runs on. Check the cluster design as well: the cluster documentation recommends dedicated cluster manager nodes and replicas on separate nodes, and embedding-heavy retrieval can change the sizing of your data nodes. Finally, confirm that your version is in maintenance, since maintenance releases receive bug fixes and security patches but no new features.
A separate vector store is the better fit when your OpenSearch version lacks the vector capabilities you need, when retrieval traffic would compete with log ingestion or site search for the same nodes, or when the RAG corpus has a different owner, retention rule or security boundary. Qdrant is one example: it is an Apache-2.0 engine you can self-host, but it adds a system to secure, back up and size. Its security documentation states that self-deployed instances are not secure by default, and its installation requirements exclude network file systems and object storage. Before you choose, confirm the vector features of your target OpenSearch version in its release notes, and write down the access model each option must meet.
How a RAG request moves through OpenSearch
A RAG request starts with source documents, which are split into chunks and turned into vectors by an embedding model, then stored in an OpenSearch index. At query time, a user question runs as a hybrid keyword and vector search with filters, and the retrieved passages are passed to a language model. The cluster and model endpoints sit inside a trust boundary, and access roles and audit logs apply at the query and index steps. Confirm whether the embedding step uses a documented OpenSearch feature or an external model before you set the boundary.
Ingestion and query paths for RAG on a self-hosted OpenSearch cluster.
Which vector setup fits your data and scale
This table compares three ways to store vectors: vector fields inside an existing OpenSearch cluster, a dedicated OpenSearch cluster for retrieval, and a separate vector database alongside OpenSearch for keyword search. Read each row as a decision input: isolation, added operational load, how many components you must secure and back up, and the situations where each option fits.
| Decision factor | Shared OpenSearch cluster | Dedicated OpenSearch retrieval cluster | Separate vector database with OpenSearch |
|---|---|---|---|
| Isolation gained | Low. Vector workloads compete with search or log traffic for heap, disk and CPU on the same nodes | Medium. Retrieval load, index sizing and maintenance windows are separated from other workloads | High. Vector storage and query paths are fully separate from keyword search and logs |
| Operational load added | Low to moderate. Mapping and capacity changes affect the existing cluster and its owners | Moderate. A second cluster needs its own upgrades, capacity planning, monitoring and on-call coverage | Highest. Two platforms, two upgrade cycles and a sync or routing layer between them |
| Components to secure and back up | One cluster: one set of roles, TLS settings, snapshot repositories and audit logs | One cluster, but with its own roles, snapshots, audit trail and certificate lifecycle | Two or more systems, each with its own identity, access model, backups and audit logging |
| Access control model | Document and field-level security in the Security plugin can scope vector and text data together | Same Security plugin controls, configured separately for the retrieval workload | Each platform enforces its own access controls, so permissions must be mapped and kept aligned |
| Best fit | Small to moderate corpora, teams already running OpenSearch for search or logs, and hybrid queries on one data set | Growing RAG workloads that need predictable capacity without affecting logging or site search | Large vector collections with a strong need for isolation, or a team that already operates a dedicated vector engine |
| Main risk | Vector growth or reindexing slows keyword search and log ingestion | Two clusters to keep in step for data, versions and access rules | Data drift between stores, duplicated access policies and extra backup scope |
| What to confirm before choosing | Heap, disk and vector memory headroom under expected corpus size and query rate | Replication and snapshot approach for the retrieval cluster, and who owns its upgrades | Which system is the source of record, how updates sync, and how audit records are kept outside each cluster |
Four index decisions that shape retrieval quality
These four choices determine what the index can answer, how much memory it needs and who can see which chunks. Most are expensive to change after data is loaded, so each should be tested on a sample corpus before the full load. Confirm the supported vector engines, quantization options and built-in embedding generation for the exact OpenSearch version you will run.
Embedding model and dimension
The embedding model fixes the vector dimension, the similarity metric and the language coverage of the index. Every document must be embedded with the same model, so switching models later means re-embedding the whole corpus and rebuilding the vector fields. Test retrieval quality on a set of real user questions with known answers, and compare at least two candidate models. Confirm whether your OpenSearch version can generate embeddings inside the cluster or whether an external embedding service is needed.
Cluster docsChunking strategy and chunk metadata
Chunk size and overlap decide whether a retrieved passage contains enough context to answer a question. Store the source document ID, title, section path, version, update time and access attributes with each chunk, because you cannot filter or cite on fields you did not index. Changing chunk boundaries means re-chunking, re-embedding and reindexing. Test with questions that span section boundaries, since those expose the weakest chunking choices.
Filter fields for tenant and role scoping
Filters that enforce tenant or role boundaries must be indexed as fields the query can match exactly, such as tenant ID, department or classification. Apply them in the search query itself so that vector results from other tenants are never returned, then confirm with the Security plugin's document-level security settings. Adding a filter field later requires reindexing, and a missing filter is a data exposure rather than a relevance problem. Test with users who should see nothing, not only users who should see something.
Security docsMemory budget and compression choice
Vector indexes hold large structures in memory, so the vector count, dimension and chosen engine set the memory the nodes need. Compression and quantization options reduce that footprint but can lower recall, so the choice is a measured trade-off. Size the cluster from a realistic vector count and growth rate, then measure recall and latency at each compression setting on your own data. Confirm which quantization methods your exact OpenSearch version supports before you commit a design.
Setup sequence from a test index to a production cluster
This sequence takes a team from a throwaway OpenSearch vector index to a production cluster in an order that proves retrieval quality before any real data is loaded. Each step ends with a check so the next step starts only when the previous one holds.
Confirm the version and vector features
Before any install, the platform team checks the OpenSearch release notes for the version they plan to run and confirms which vector search features, engines, quantization options and hybrid query components are available in that release. They also confirm the support window for that version, since OpenSearch versions receive bug fixes and security patches during maintenance but no new features. Output: a short written version decision that names the exact release, the vector engine and the search pipeline features the design depends on. Check: every feature in the design appears in the release notes for that version, not only in newer documentation.
Deploy a test cluster by a documented method
The platform team deploys a small test cluster using one of the install methods OpenSearch documents, such as Docker, Helm, the OpenSearch Kubernetes Operator, tarball, RPM, Debian packages, the Ansible playbook or Windows. They use the same method the production cluster will use so that configuration carries over without rework. Output: a running test cluster in an environment the client controls, with TLS and the Security plugin left in their default state for now. Check: the cluster reports a green or expected health status and every node joins the cluster.
Create the vector index mapping
An engineer creates the index with a knn_vector field whose dimension matches the embedding model the team has chosen, and sets the engine, space type and index parameters that the chosen version supports. They also add the text, metadata and filter fields that retrieval will use, so that document-level filters such as tenant or department can run alongside vector queries. Output: a stored index mapping kept in version control. Check: the index accepts a test document with a vector of the declared dimension and rejects one with the wrong dimension.
Load a sample corpus and run hybrid queries
The team loads a sample corpus of documents, generates embeddings with the chosen model or an ingest-time embedding pipeline, and runs keyword, vector and hybrid queries against the index. They record the embedding model version and chunking settings with the index so results can be reproduced later. Output: a working retrieval path from query to ranked passages. Check: a known question returns the expected passage in the top results, and a filtered query returns only documents the test user is allowed to see.
Measure recall and latency on labeled questions
The team builds a labeled question set in which each question is linked to the passages that should answer it, then measures recall at the result depth the application uses and records query latency under realistic concurrency. They compare the vector engine and any memory-saving compression settings against the uncompressed baseline, because compression can lower recall. Output: a results table that shows recall and latency for each configuration and the one selected for production. Check: the selected configuration meets the thresholds the application owner set in advance, and the team can rerun the same measurement after any change.
Add security, TLS and cluster roles
The security team enables TLS for node and client traffic, configures an identity backend such as SAML, OpenID Connect, LDAP or Active Directory, and defines roles with document-level or field-level restrictions where retrieval needs them. They separate dedicated cluster manager nodes from data and ingest nodes and set replicas on separate nodes with shard allocation awareness, as OpenSearch recommends for availability. Output: a hardened cluster configuration reviewed against the access model. Check: an unauthorized user cannot query restricted documents, and the cluster health holds after a single node is restarted.
Configure snapshots and test a restore
The operations team registers a snapshot repository on storage the client controls, sets a snapshot schedule and confirms the cluster can restore the vector index to a separate cluster. Because vector indexes are rebuilt from source documents and embeddings, they also record how the source corpus and embedding model can be reproduced. Output: a documented backup and restore runbook. Check: a restore into a clean cluster returns the same query results on the labeled question set as the original cluster.
Load production data after a go decision
Once every earlier check passes, the team loads production data through the same pipeline and mappings used in testing, then reruns the labeled question set against the production index. The owners sign off on the recall and access results, and the upgrade plan for the version in use is scheduled. Output: a production cluster with a recorded baseline for future comparisons. Check: production results match the test baseline within the tolerance the owners set, and the first restart test passes on the production nodes.
How the work changes by hosting environment
In cloud accounts you control, the install choice is usually between the OpenSearch Kubernetes Operator or Helm on a managed Kubernetes service and Docker or Ansible on instances you size yourself. Embedding inference can run on separate compute in the same account, which keeps document text inside your cloud boundary while letting you scale inference apart from the search nodes. Model artifacts usually move through your own object storage, pulled in by a controlled pipeline at deploy time.
- Install method: Helm or the Operator for managed clusters, or Docker and Ansible for VM-based builds. Standardize on one path so upgrades follow one procedure.
- Embedding model placement: Run inference in a dedicated node group or service inside the account so search nodes keep their memory for indexes.
- Storage: Request block volumes sized per node, with replicas placed on separate nodes and shard allocation awareness configured as the cluster documentation recommends.
- DNS and certificates: Private DNS zones for cluster and client endpoints, with certificates issued from your internal CA or cloud certificate service and rotation owned by a named team.
- Egress controls: Confirm whether the account allows outbound calls to model providers, and limit them to approved endpoints.
Confirm with your cloud platform team which Kubernetes service, storage classes, network policies and certificate authority apply before you choose an install method.
On-premises Kubernetes or VM estates have fewer managed services, so more of the work sits with your team. The install method follows what you already operate: the Operator or Helm where a Kubernetes platform exists, tarball, RPM or Debian packages on VMs, and Ansible to keep hosts consistent. Embedding models usually run on hosts with GPU or CPU capacity inside the same network zone, and their files arrive through your internal artifact repository.
- Install method: Helm or the Operator on Kubernetes, or packages and tarballs configured with Ansible on VMs. Choose one path per estate so upgrades stay repeatable.
- Embedding model placement: Plan dedicated inference hosts or pods with accelerator access where your hardware allows it, and keep them separate from search data nodes.
- Storage: Confirm that local disks or SAN volumes meet the performance your indexes need, and check the installation guidance for your OpenSearch version before using any shared file system.
- DNS and certificates: Internal DNS records for each node and client endpoint, and TLS certificates for node and client traffic issued by your internal CA.
- Host settings: Apply kernel and file descriptor settings through Ansible or the Operator so every node matches.
Confirm with your infrastructure team which hypervisor, storage array, DNS authority and CA the estate uses, and whether a GPU pool is available for embedding workloads.
In air-gapped networks, nothing downloads at install time. Container images, operating system packages, Helm charts or tarballs, and any embedding model files must enter through an approved transfer process and sit in internal registries and repositories. Offline-capable artifacts such as tarballs and packages are often the simplest route, and every model artifact should be verified and recorded before it enters the enclave.
- Artifact transfer: Mirror container images, packages and chart or tarball files into internal repositories through your transfer process, and record checksums for each item.
- Install method: Tarball, RPM or Debian packages install without internet access. Confirm that any Helm chart or Operator image set can be mirrored in full before you select it.
- Embedding model placement: Models must run inside the enclave. Import and test each model file before any sensitive document is indexed.
- Storage and DNS: Use internal DNS only, and size storage from your own capacity plan, since no cloud volume services are available.
- Certificates: Use the internal CA, distribute trust bundles to every node and client, and document a rotation procedure that works without internet access.
Confirm with your security and platform teams which transfer process, approval steps and internal registries apply, and how long an approved artifact stays valid for import.
Access controls to plan before embeddings enter the index
Embeddings and retrieved chunks carry the content of source documents, so a vector index can leak information that the original system never exposed to a given user. The controls below decide who can retrieve what, and they need to be designed before the first document is embedded.
Mirror source permissions in the index
A chunk inherits the access rules of the document it came from, and a similarity search does not check those rules on its own. Store the source's access attributes (group, tenant, classification) as fields on every chunk, and apply them as query filters through the Security plugin's document-level security so a user never receives a chunk they could not open in the source system. Revisit this mapping whenever source permissions change.
OpenSearch security docsRestrict fields with field-level controls
Chunks often hold fields that should stay hidden even when the text is visible, such as customer identifiers, salary data or free-text notes. Use field-level security and field masking to return only the fields a role needs, and keep sensitive metadata out of the embedded text where you can. Test each role with real queries to confirm that masked values do not leak through highlights, snippets or retrieved context sent to a model.
Connect identity to roles
Retrieval permissions are only as good as the identity they are checked against. Connect the Security plugin to your identity provider through its supported backends, such as SAML, OpenID Connect, LDAP or Active Directory, and map groups to roles. Confirm how group changes and removed users propagate, because a user who left a group should lose retrieval access without waiting for a manual cleanup.
Encrypt node and client traffic
Embeddings, query vectors and retrieved text travel between the application, the model endpoint, and the cluster nodes. Enable TLS for node-to-node and client traffic so that content is protected in transit inside your network. Plan certificate issuance and rotation before go-live, since an expired certificate can stop retrieval for every application that depends on the index.
Audit every retrieval and admin action
Retrieval logs show which user or service pulled which chunks, which is the evidence needed when a source document is questioned. Turn on the Security plugin audit logs and decide which categories to record for reads and configuration changes. Store audit records outside the cluster they describe, and confirm that log volume from retrieval traffic fits your retention plan.
Control the embedding pipeline and prompt logs
The pipeline that embeds documents holds credentials for the source system and the model endpoint, and prompt logs can contain retrieved chunks. Give the pipeline its own service account with read-only source access, store its keys in a secrets manager, and restrict who can read prompt and response logs. Confirm with your model provider where prompts are processed and retained, and confirm how filters combine with k-NN queries in your OpenSearch version before relying on them.
Choosing a version and planning upgrades for vector workloads
Choose the OpenSearch version by checking the vector features you need against the version you will run, because maintenance is narrower than most teams expect. OpenSearch targets a new minor version about every eight weeks, and the project's releases page lists 3.8.0 on August 4, 2026 and 3.9.0 on September 29, 2026 as examples of that cadence. While a version is in maintenance, it receives bug fixes and security patches but no new features. A vector capability the team needs, such as a particular k-NN engine option, a quantization setting or a hybrid query feature, must therefore exist in the release you deploy, not in a later one you expect to adopt. Confirm each feature against the release notes for your target version before you commit the design.
Plan the upgrade path before the first production index is built. The OpenSearch migrate or upgrade documentation describes four methods: rolling upgrades, snapshot and restore, remote reindexing and Migration Assistant. Each has different downtime, duplicate-capacity and rollback trade-offs, so choose one per cluster and write it into the runbook. Whichever method you use, test vector index compatibility and recall after the upgrade. Index behavior can change between versions, so run a fixed set of reference queries against a copy of production data, compare the top results with a baseline captured on the current version, and confirm that index settings, quantization and filtered k-NN queries return the same results before you switch traffic.
Treat the version decision as an ongoing task with a named owner. Record the vector features your application depends on, the version that supplies each one, and the date that version leaves maintenance. Ask your implementation partner or your own platform team to confirm the end-of-maintenance date for your release line from the OpenSearch releases page before planning the next upgrade window. Keep a staging cluster on the next minor version so that recall tests and embedding pipeline checks run before production changes. Budget for this testing cycle as recurring effort, because every minor release brings the same compatibility and recall checks.
Limits to confirm before you commit to OpenSearch for RAG
OpenSearch can serve as a vector store for semantic and hybrid retrieval, but engine, compression, embedding and GPU support vary by version and must be confirmed against your target release. The cards below cover the capability checks, the memory sizing that follows from them, and the cluster design limits that shape availability. A dedicated vector store is included as a comparison point.
Vector engines and compression
Confirm which vector engines the chosen OpenSearch version offers, and which compression and quantization options each engine supports for that version. Compression choices change recall, indexing cost and memory use, so test them against your own queries rather than relying on general descriptions. Record the exact version in your design document, because the feature set is tied to the release you deploy and maintenance policy limits which fixes you receive on older lines.
Release historyBuilt-in embedding generation
Confirm whether the version includes ingest-time embedding generation and which embedding models it accepts, including whether hosted or self-hosted models are supported and how they are loaded. If it does not, plan an external embedding service and the pipeline that calls it, including retries, rate limits and re-embedding when you change models. Changing a model later means reindexing the whole corpus, so the choice affects every downstream index.
GPU index build support
Confirm whether GPU acceleration for vector index builds is available in your version and which hardware and drivers it requires. Index build time matters most during initial load and full reindexes, so ask whether GPU support is needed for your corpus size or whether CPU builds meet your reindex window. Treat GPU support as an optional acceleration to validate, not a baseline assumption in the design.
Hybrid query and reranking behavior
Confirm how hybrid queries combine keyword and vector scores, how score normalization is configured, and whether reranking is built in or needs an external model. Retrieval quality for RAG depends on this combination, so build a labeled test set of real questions and expected passages and measure results before fixing the query design. Document which filters apply before and after vector search, since filtering on tenant or access attributes affects both correctness and latency.
Memory for the planned corpus
Estimate the memory each vector index needs from vector count, dimension, the chosen engine and compression, and the replica count, then check the result against heap, off-heap and filesystem cache on each data node. Replicas multiply this cost. Ask your team or DeployOpen for a sizing exercise on a sample of your data, since general per-vector figures do not account for your dimension, graph parameters or query volume.
Cluster roles, replicas and zones
The OpenSearch cluster documentation recommends dedicated cluster manager nodes, replicas placed on separate nodes, and shard allocation awareness so copies land in different failure domains. Plan these before loading vectors, because a RAG index that is unavailable during an outage stops answers for every user. Confirm node counts for your availability target, and check how a zone or node loss affects both search latency and rebuild time.
Cluster design docsDedicated vector store comparison
If you evaluate a dedicated vector database such as Qdrant, its documentation requires block-level storage with a POSIX-compatible file system, rules out NFS and object storage, and recommends at least three nodes for production quorum. Its replication factor of 2 doubles storage. Compare these needs with your infrastructure and operating model, and compare total storage and node counts with the OpenSearch design on the same corpus.
- Qdrant production minimum
- 3 nodes
Questions teams ask before running OpenSearch for RAG
What drives the cost and effort of an OpenSearch vector deployment?
Cost follows the size of the corpus, the number of embedding vectors, the query load and the access model, and no single number applies to every project. The main components are cluster sizing (memory, disk and node count for the index), the embedding pipeline (model hosting or API use, re-embedding of changed documents and the batch jobs that run them), the access model (SSO, roles, document-level filters so users only retrieve what they may see) and testing (relevance checks, load tests and security review). Licensing adds no software fee, so the quote is mostly labor and infrastructure. Ask for each component to be priced separately, with the assumptions for vector count, dimensions and query volume written into the scope.
How long does a RAG pilot take to scope, and what must we supply?
Scoping starts with a short discovery in which the corpus, users and questions are defined, and its length depends on how many sources are involved and how well they are documented. You will need to supply access to the corpus (or a representative sample), the identity provider the team already uses, the hosting environment and its network rules, and a set of evaluation questions with known good answers. Without those inputs, relevance cannot be measured and the pilot cannot be closed. Ask the partner for a written schedule with dependencies listed, so each client input is tied to a milestone.
Can an internal team run OpenSearch for RAG on its own?
A capable platform team can run it alone if it has the skills and time, and many do. The work spans Linux and container operations, OpenSearch cluster administration (node roles, shard sizing, snapshots), search engineering (vector fields, hybrid queries, filters), a data pipeline for chunking and embedding, and security configuration covering TLS, roles and audit logs. Identify which of these skills already exist in-house and which would be new. Gaps are usually in relevance tuning and in access control on retrieved content, so those are the areas to validate before committing to a build internally.
Does licensing change what OpenSearch for RAG costs?
The OpenSearch software is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. That means the search engine, its vector capabilities and the Security plugin carry no license fee in the FAQ's terms. Costs come from infrastructure, labor and any third-party models or APIs you choose to use for embeddings or generation. Confirm the license terms of those models separately, since they are set by their own providers. When requesting a quote, ask it to list licensed components and external services as separate lines.
What ongoing work follows launch of a vector search system?
Launch starts the operating phase, which includes several recurring tasks. OpenSearch versions stay under maintenance until a newer major version enters maintenance or one year passes, whichever is longer, and during maintenance they receive bug fixes and security patches only, so upgrades must be scheduled. Changing the embedding model usually means reindexing the corpus, because vectors from different models are not comparable. Recall testing against the evaluation set should repeat after content, model or index-setting changes. Ask for upgrade, reindexing and recall testing to be written into a retainer or support plan with stated frequency.
How should we handle upgrades and migration of an existing OpenSearch cluster?
Four documented methods exist: rolling upgrades, snapshot and restore, remote reindexing and Migration Assistant. Rolling upgrades suit clusters already on a supported version, while Migration Assistant can move workloads across several major versions in one step and supports live traffic capture for low or zero downtime. Choose the method after confirming the source version and the vector index settings, which may need to be recreated. Ask the partner to document the method, rollback plan and validation steps before any cutover.
How do we control which users can retrieve which documents?
Retrieval must respect the same permissions as the source system, or the assistant can expose content to users who should not see it. OpenSearch Security provides role-based access control, document-level and field-level security, field masking and audit logs, and it supports SAML, OpenID Connect, Active Directory and LDAP for identity. Plan permission metadata at ingestion time, so each chunk carries the access attributes needed for filtering. Confirm the design with the security team and test it with users from several roles before launch.
What should a written quote for a vector search engagement include?
A useful quote lists scope, deliverables, assumptions and client inputs in one document. Ask for the corpus size and vector count assumed, the embedding approach, the cluster topology and hosting location, the identity integration, the testing approach (relevance, load and security), the handover format and the schedule with dependencies. Ask whether ongoing support, upgrades and reindexing are included or quoted separately, and what changes would alter the price. Most engagements are fixed-scope, so the agreed scope in writing is the basis for the figure.
How DeployOpen scopes and delivers OpenSearch vector search
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including OpenSearch vector search and RAG. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, so the retrieval design, access controls and operating model are settled before data is loaded.
How we scope
- Review your documents, embedding plan, query patterns and which users or applications will call the index.
- Confirm the OpenSearch version, hosting model, network boundaries and whether data may leave your environment.
- Agree in writing which index design, access roles, backup scope and handover items are included in the fixed scope.
How we build
- Deploy the OpenSearch cluster with dedicated cluster manager nodes, replicas on separate nodes and shard allocation awareness.
- Configure the Security plugin with your identity provider, TLS and roles, so retrieval queries respect the same access rules as source systems.
- Build and test hybrid retrieval and RAG query paths against your own documents, recording relevance and memory results for review.
How we hand over
- Deliver architecture notes, index mappings, embedding and ingestion pipeline documentation, and role and access configuration records.
- Document sizing assumptions, compression choices and the procedures for reindexing when the embedding model changes.
- Walk your platform, security and data teams through snapshot restore tests, upgrade steps and the evidence your compliance reviewers may request.
How we support
- Offer ongoing support, version upgrades and continuous testing as a retainer after handover.
- Plan minor-version and security patch intake against the OpenSearch maintenance policy for the version you run.
- Re-test retrieval quality, access controls and the RAG pipeline after significant data, model or configuration changes.

