vectorStore
The vectorStore router: 9 methods of the vector-store capability, with tier, scope, input and output.
Capability vector-store · scope system · mode singleton · source packages/types/src/capabilities/vector-store.cap.ts:316.
Every method is called at /trpc/vectorStore.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
declareIndex | mutation | admin | admin only | no |
upsert | mutation | admin | admin only | no |
query | query | admin | admin only | no |
getByIds | query | admin | admin only | no |
fetchByIds | query | admin | admin only | no |
scan | query | admin | admin only | no |
deleteByIds | mutation | admin | admin only | no |
deleteByFilter | mutation | admin | admin only | no |
stats | query | admin | admin only | no |
vectorStore.declareIndex
- Kind: mutation —
POST /trpc/vectorStore.declareIndex - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.declareIndexon your hub
Input
VectorDeclareIndexInputSchemaOutput
voidShapes: VectorDeclareIndexInputSchema
vectorStore.upsert
- Kind: mutation —
POST /trpc/vectorStore.upsert - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.upserton your hub
Input
VectorUpsertInputSchemaOutput
VectorUpsertResultSchemaShapes: VectorUpsertInputSchema · VectorUpsertResultSchema
vectorStore.query
- Kind: query —
GET /trpc/vectorStore.query - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.queryon your hub
Input
VectorQueryInputSchemaOutput
VectorQueryResultSchemaShapes: VectorQueryInputSchema · VectorQueryResultSchema
vectorStore.getByIds
- Kind: query —
GET /trpc/vectorStore.getByIds - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.getByIdson your hub
Input
VectorGetInputSchemaOutput
VectorGetResultSchemaShapes: VectorGetInputSchema · VectorGetResultSchema
vectorStore.fetchByIds
- Kind: query —
GET /trpc/vectorStore.fetchByIds - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.fetchByIdson your hub
Input
{ index: string; ids: string[] }Output
{ items: ({ id: string; vector: string; metadata: VectorMetadataSchema })[] }Shapes: VectorMetadataSchema
vectorStore.scan
- Kind: query —
GET /trpc/vectorStore.scan - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.scanon your hub
Input
{ index: string; cursor?: number = 0; limit: number }Output
{ items: ({ id: string; metadata: VectorMetadataSchema })[]; nextCursor: number | null }Shapes: VectorMetadataSchema
vectorStore.deleteByIds
- Kind: mutation —
POST /trpc/vectorStore.deleteByIds - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.deleteByIdson your hub
Input
VectorDeleteInputSchemaOutput
VectorDeleteResultSchemaShapes: VectorDeleteInputSchema · VectorDeleteResultSchema
vectorStore.deleteByFilter
- Kind: mutation —
POST /trpc/vectorStore.deleteByFilter - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.deleteByFilteron your hub
Input
VectorDeleteByFilterInputSchemaOutput
VectorDeleteResultSchemaShapes: VectorDeleteByFilterInputSchema · VectorDeleteResultSchema
vectorStore.stats
- Kind: query —
GET /trpc/vectorStore.stats - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=vectorStore.statson your hub
Input
VectorStatsInputSchemaOutput
VectorStatsResultSchema