Vector Stores page
The Vector Stores page manages the vector stores the gateway knows about. You can build a new store by uploading documents, register a store that already exists at a provider, change a store's name, description and metadata, run test searches, and see the indexes registered on the proxy. Open it at /ui/vector-stores. It sits under AI Gateway in the left nav, inside the Tools group, as Vector Stores.
The nav item has no role restriction, so every signed in role sees it, with two exceptions for users who are not admins. When the UI setting disable_vector_stores_for_internal_users is on, the item is hidden unless allow_vector_stores_for_team_admins is also on and the user is an admin of at least one team. When enabled_ui_pages_internal_users is set, the item shows only if vector-stores is in that list. The page has no extra guard of its own. On the backend the create, update and delete routes apply the same internal user restriction, the update and delete routes refuse config stores and check that the caller may use the store, and the proxy's route checks admit those writes only from proxy admins. No license feature is checked on this page.
The page is headed Vector Store Management with the line You can use vector stores to store and retrieve LLM embeddings. A refresh button at the top right reloads the store list and the saved credentials and shows Last Refreshed with the time.
The page has up to five tabs.
| Tab | Who sees it | Default |
|---|---|---|
| Create Vector Store | Proxy admins who are not view only. | Open first for those users. |
| Manage Vector Stores | Everyone. | Open first for everyone else. |
| Test Vector Store | Everyone. | |
| Indexes | The session role Admin (proxy admins). Admin Viewers do not see it. | |
| Access Defaults | Proxy admins who are not view only, the same as Create Vector Store. |
A real-world scenario
A support team wants answers grounded in their 40 page refund policy PDF. A proxy admin uploads the PDF on the Vector Stores page into a new store, runs a test query to see that the right passage comes back with a good score, and gives the store's id to the team for file search requests.
Steps
-
Open Vector Stores under Tools in the left nav, or go to
/ui/vector-stores. The Create Vector Store tab opens for proxy admins. -
Drop the PDF on the upload area, type a Vector Store Name, pick the Provider and fill its fields, and click Create Vector Store. Each file goes to the same route as:
curl -X POST http://localhost:4000/rag/ingest \-H "Authorization: Bearer $SPANWAY_MASTER_KEY" \-F file=@refund-policy.pdf -F 'request={"ingest_options": {"vector_store": {"custom_llm_provider": "openai"}}}' -
Open the Test Vector Store tab, pick the store under Select Vector Store, type a question and click Search. The same search with the API:
curl -X POST http://localhost:4000/v1/vector_stores/$VECTOR_STORE_ID/search \-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" -d '{"query": "How long do refunds take?"}'
Expected result
The store is listed on Manage Vector Stores, and the test search returns passages from the PDF with their Score.
Create Vector Store tab
This tab builds a new vector store from documents. Each file is sent to the proxy's RAG ingest route, which processes it and stores it in the chosen provider. Ingestion makes real embedding and storage calls at the provider, which cost money.
Step 1: Upload Documents
Drop files on the upload area or click it to pick them. You can add several at once. The tab accepts PDF, TXT and Markdown files, judged by the file type your browser reports, and each file must be smaller than 50MB. Word files are not offered, because the gateway's upload checks accept only PDF and plain text, so save them as PDF first. A file that fails either check is skipped with a message. The files you add appear in an Uploaded Documents table.
| Column | Meaning |
|---|---|
| Name | The file name and size. |
| Status | Ready before and after upload, Uploading while it is sent, or Error if it failed. |
| Actions | A menu with Copy document ID, which copies an ID made up in your browser for this list (not a provider file ID), and Remove, which takes the file off the list. |
Step 2: Configure Vector Store
| Field | Type | What it does |
|---|---|---|
| Vector Store Name | Text | Optional name shown in the dashboard. |
| Description | Text area | Optional description. |
| Provider | Select | Where the store is created. Amazon Bedrock is the default. Valkey is not offered here because ingestion does not support it. |
| Provider fields | Text | The extra fields the chosen provider needs, described in the provider fields table below. |
For Amazon S3 Vectors the tab shows its own section with a short setup note and these fields.
| Field | What it does |
|---|---|
| Vector Bucket Name | Required. The S3 vector bucket, created if it does not exist. It must be at least 3 characters. |
| Index Name | Optional. Generated when empty. If set it must be at least 3 characters. |
| AWS Region | Required, for example us-west-2. |
| Embedding Model | Required. Pick one of the proxy's embedding models. The vector dimension comes from this model. |
For the other providers each field is a plain text box, including fields that are drop downs in the Add New Vector Store dialog (such as Vertex Location, Use TLS and Embedding Model). Type the value, for example global or the exact model name. Their defaults are not filled in on this tab.
Create Vector Store is disabled until at least one document is listed. A missing required field shows Please provide followed by the field name. The files are ingested one by one. The first file creates the store and the rest are added to it. If a file fails, ingestion stops at that file, the store keeps the files that already went in, and you see Failed to create vector store with the error. On success a Vector Store Created Successfully box shows the new ID and the number of documents ingested, and the document list clears after a few seconds.
Manage Vector Stores tab
+ Add Vector Store opens the Add New Vector Store dialog. It is shown only to proxy admins who are not view only.
The table sorts by Created At newest first, paginates in the browser with 25, 50 or 100 rows per page, and shows No vector stores when there are none.
| Column | Meaning |
|---|---|
| Vector Store ID | The store ID. Click it to open the details view. Sortable. |
| Name | The name, or a dash. Sortable. |
| Description | The description, truncated. |
| Source | DB for a store saved in the database, Config for one defined in the config file. Sortable. |
| Files | Files ingested through the dashboard. One file shows its name, several show N files with the names in a tooltip. |
| Provider | The provider logo and name. |
| Created At and Updated At | Dates. Sortable. |
| Actions | A menu with Edit, Copy vector store ID and Delete. |
The row menu is shown to every role. For a config store Edit and Delete are disabled and the menu says the store is read only because it is defined in the config file.
Edit opens the details view in edit mode. Delete opens a Delete Vector Store dialog with the store ID. Click Delete to confirm or Cancel to keep it. The delete removes the store from the gateway's database and memory so the gateway stops using it. It does not delete the store or its data at the provider. It cannot be undone from the dashboard, but you can register the same provider store again.
Add New Vector Store dialog
This dialog registers a vector store that already exists at a provider. It does not upload documents.
| Field | Type | What it does |
|---|---|---|
| Provider | Select, required | The provider. Amazon Bedrock is the default. Changing it shows that provider's fields and, for some providers, a setup note. |
| Vector Store ID | Text, required | The store's ID at the provider. The placeholder changes with the provider, for example the FT index name for Valkey or the vector search index name for MongoDB. For Vertex AI Search with an Engine ID set, this is just the name you will use for the store in Spanway. |
| Provider fields | Varies | The extra fields the provider needs, described below. A missing required field shows Please input the or Please select the followed by the field name. |
| Vector Store Name | Text | Optional name shown in the dashboard. |
| Description | Text area | Optional description. |
| Existing Credentials | Search select | Optional saved provider credentials to use for this store. The options are the credentials saved on the proxy. |
| Metadata | Text area | Optional JSON metadata. It defaults to {}. Invalid JSON stops the save with Invalid JSON in metadata field. |
Create registers the store and Cancel closes the dialog and clears it.
Setup notes appear for PostgreSQL pgvector (Spanway Connector) (deploy the Spanway pgvector server, enable the pgvector extension, then enter the server's URL and key), Valkey (the server needs vector search, and the index and embedded documents must already exist), and Vertex AI Search (create a data store in a supported location, and use an engine ID for website, healthcare and connector based sources).
Provider fields
Password fields have a button to show or hide the value. Embedding Model lists the proxy's embedding models, so add the model on the Models + Endpoints page first if it is missing.
| Provider | Fields |
|---|---|
| Amazon Bedrock | None. |
| Amazon S3 Vectors | Vector Bucket Name (required), Index Name, AWS Region (required), Embedding Model (required). |
| PostgreSQL pgvector (Spanway Connector) | API Base (required, the server URL), API Key (required). |
| Vertex AI RAG Engine | None. Enter the corpus ID as the Vector Store ID. |
| Vertex AI Search | Vertex Project (required), Vertex Location (required, global, us or eu, default global), Collection ID (optional), Engine ID (optional). |
| OpenAI | API Key (required). |
| Azure OpenAI | API Key (required), API Base (required, your resource endpoint). |
| Milvus | API Key (required, a token or username:password), API Base (required), Embedding Model (required). |
| MongoDB (BETA) | Sidecar URL (required, HTTPS for a remote sidecar or HTTP on a loopback address), Sidecar API Key (required), Database (required), Collection (required), Embedding Model (required), Vector Field Name (default embedding), Text Field (default text, a dotted path is allowed), Candidates Considered. |
| Valkey | Valkey Host (required, host name without scheme or port), Valkey Port (default 6379), Valkey Password, Use TLS (false by default), Embedding Model (required), Text Field (default text), Vector Field Name (default embedding). |
For Milvus, MongoDB and Valkey the embedding model must be the one that created the vectors already in the store. A different model of the same size does not raise an error, it returns wrong results.
Vector store details view
Clicking a store ID opens the details view. Back to Vector Stores returns to the list and reloads it.
The header shows Vector Store ID: with the ID, a DB or Config badge, and the description or No description. A config store shows a Read only: defined in the config file box that says to change or remove it in the config file and restart the proxy.
The view has two tabs, Details and Test Vector Store.
Details tab
The tab lists ID, Name, Description, Provider, Metadata as formatted JSON, Created and Last Updated. Edit Vector Store is shown to the session role Admin for stores that are not from the config file. It appears both in the header and above the details.
The edit form has these fields.
| Field | Type | What it does |
|---|---|---|
| Vector Store ID | Text | Shown for reference and locked. |
| Vector Store Name | Text | The name. |
| Description | Text area | The description. |
| Provider | Select | The provider. The drop down offers Amazon Bedrock and the store's own provider. |
| Existing Credentials | Search select | Shown with the note Either select existing credentials OR enter provider credentials below. Save Changes stores the chosen saved credential on the store, and clearing it stops the store from using one. |
| Metadata | Text area | JSON metadata. Invalid JSON stops the save with Invalid JSON in metadata field. |
Save Changes saves the name, description, provider and metadata and returns to the details. Cancel leaves edit mode without saving.
Test Vector Store tab
This is the same tester as the page's Test Vector Store tab, fixed to this store.
Test Vector Store tab
Pick a store under Select Vector Store. The list shows each store's name and ID, and typing filters it. The first store is selected when the tab opens. With no stores the tab shows No vector stores available. Create one first to test it.
The tester sends each query to the gateway's vector store search route using your dashboard session. Each search is a real call to the provider and can cost money.
| Control | What it does |
|---|---|
| Query box | Type a query and press Enter or click Search. Shift+Enter adds a line. Search is disabled while the box is empty or a search runs. |
| Clear History | Shown once you have searched. Empties the results. |
Every search adds a pair of entries, your Query with its time and the Vector Store Results with the number of results. Each result shows its number, a preview of its text and its Score. Click a result to expand it and see each content part with its type, and a Metadata section with the File ID, Filename and Attributes when the provider returns them. A search with nothing found shows No results found. A failed search shows Search failed: with the error. The history lives only in the page.
Indexes tab
The tab lists the vector store indexes registered on the proxy through the /v1/indexes API. Its note says index passthrough works for Azure AI Search and Milvus today, and links to the index docs and to Spanway support for requesting more providers.
The table sorts by Created At newest first and shows No indexes registered yet when there are none.
| Column | Meaning |
|---|---|
| Index Name | The index name on the proxy. Sortable. |
| Vector Store | The vector store the index belongs to. When a store with that name is in the list, click it to open the store details. Sortable. |
| Provider Index | The index name at the provider. |
| Created By | The user who registered it, linked to the user's page. |
| Created At | Date. Sortable. |
Access Defaults tab
This tab decides what happens when a key, team or user asks for a vector store that nobody granted to them. Proxy admins who are not in view-only mode see it. It holds one switch.
| Control | What it does |
|---|---|
Deny vector stores by default (vector_store_deny_by_default) | Off by default. Turn it on so no one can search a document store that was not shared with them. When on, a key, team or user can only use a vector store listed in its access grants (the Vector Stores chosen on the key, team or user), and a key with no grant gets a 401 key_vector_store_access_denied error, so grant the stores your existing keys use before you turn it on. When off, every caller can use every vector store unless a grant narrows it. A proxy admin should change it. |
A row the config file sets is locked with "Set in the proxy config file. Change it there, the dashboard cannot override it." Save is enabled once a value changed and saves only the changed rows, then shows "Access defaults saved". View Documentation opens the settings reference.
Scenario: a company stores HR documents in one vector store and wants nobody to reach it unless their key was granted it. A proxy admin turns the switch on, and from then on only keys and teams that list that store can search it.
- Open Vector Stores and click the Access Defaults tab.
- Turn on Deny vector stores by default.
- Click Save.
Expected result: "Access defaults saved" appears, and a key without a grant now gets a permission error when it searches a vector store. The same change from the command line, with an admin key in SPANWAY_API_KEY:
curl -sS -X POST "http://localhost:4000/config/field/update" \
-H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
-d '{"field_name": "vector_store_deny_by_default", "field_value": true, "config_type": "general_settings"}'
Errors you may see when saving:
| Status | Message | Meaning and fix |
|---|---|---|
| 400 | Admin-only endpoint. Not allowed to access this. | Only a proxy admin can change gateway settings. Sign in as one. |
| 400 | A message that the key is set in the config file | The setting is owned by config.yaml. The row shows "Set in the proxy config file" and is locked. Change it in the file and restart. |
| 400 | DB not connected. This endpoint needs a database... | The gateway has no database, so dashboard changes cannot be stored. Connect one, or set the value in config.yaml. |
Each save writes an audit row for general_settings with the values before and after, when audit logs are on.
Empty, error and disabled states
| Where | What you see | What to do |
|---|---|---|
| No stores | No vector stores in the table. | Create or register a store. |
| List fails to load | Error fetching vector stores with the error. | Check the proxy logs and your role. |
| Store cannot be loaded | Vector store not found with a note that it may have been deleted. | Go back to the list. |
| Credentials fail to load | Error fetching credentials with the error. | Check the credentials on the proxy. |
| Indexes fail to load | Error fetching indexes with the error. | Check the proxy logs. |
| Create Vector Store disabled | No documents are listed, or a create is running. | Add at least one document. |
| No document uploaded | Please upload at least one document. | Add a file. |
| File rejected | A message that the file type is not supported, or that it must be smaller than 50MB. | Use a PDF, TXT or Markdown file under 50MB. |
| Edit and Delete disabled | The store comes from the config file. | Change it in the config file and restart the proxy. |
| Create, update or delete fails | Error creating vector store, Error updating vector store or Error deleting vector store with the error. | Check required fields, and that you are a proxy admin with access to the store. |
Differences by role and license
| Who | What changes |
|---|---|
| Admin (proxy admin) | Sees all five tabs, including Access Defaults, and every control. |
| Admin Viewer | The Create Vector Store, Indexes and Access Defaults tabs, + Add Vector Store and Edit Vector Store in the details view are hidden. The row menu is still shown, and the proxy refuses its changes. Reading the list and the details works. |
| Internal user and internal viewer | See Manage Vector Stores and Test Vector Store. The row menu is shown, but the proxy refuses changes. Test searches run with the user's dashboard session and are subject to the store's access rules. |
disable_vector_stores_for_internal_users | Hides the nav item for non admins, unless allow_vector_stores_for_team_admins is on and the user is a team admin. |
enabled_ui_pages_internal_users | When set, non admins see the nav item only if vector-stores is in the list. |
No license feature gates this page.
Errors
| What you see | What it means | Fix |
|---|---|---|
| Please upload at least one document | No file was added. | Add a PDF, TXT or Markdown file. |
| A message that the file must be smaller than 50MB | The file is too large. | Split the document. |
| Failed to create vector store with an error | A file failed to ingest, the store keeps the files that went in. | Fix the error, for example a missing provider field, and upload the rest. |
| Error fetching vector stores | The list failed to load. | Check the gateway log and your role. |
A search answers 401 with key_vector_store_access_denied | Vector stores are denied by default and the key has no grant. | Grant the store on the key or team. |
Audit and logs
Every change made on this page is written to the audit log with who made it and the value before and after: adding, editing and deleting a registration (Spanway_ManagedVectorStoresTable), creating a store from documents on the Create Vector Store tab, and changing Access Defaults. The gateway log lines for these actions, such as Error creating vector store and RAG Ingest failed, are listed on create a vector store and RAG ingest.