Skip to content

API Reference parrot.handlers.stores.handler

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.stores.handler

View source

Vector Store Handler — REST API for vector store lifecycle management.

Alias AbstractStore

Re-exported from parrot.stores.AbstractStore.

Attribute DEFAULT_IMAGE_PROMPT

Attribute DEFAULT_VIDEO_PROMPT

Alias Document

Re-exported from parrot.stores.models.Document.

Attribute IMAGE_EXTENSIONS

Alias JobManager

Re-exported from parrot.handlers.jobs.JobManager.

Alias SafeUploadMixin

Re-exported from parrot.handlers.uploads.SafeUploadMixin.

Alias SearchResult

Re-exported from parrot.models.stores.SearchResult.

Alias StoreConfig

Re-exported from parrot.models.stores.StoreConfig.

Alias TempFileManager

Re-exported from parrot.interfaces.file.tmp.TempFileManager.

Alias VECTOR_HANDLER_MAX_FILE_SIZE

Re-exported from parrot.conf.VECTOR_HANDLER_MAX_FILE_SIZE.

Attribute VIDEO_EXTENSIONS

Class VectorStoreHandler

REST API for vector store lifecycle management.

Method VectorStoreHandler.post_init

Initialise logger on handler construction.

post_init(*args, **kwargs)

Parameter Type Default Description
*args ()
**kwargs {}

Method VectorStoreHandler.setup

Register routes and lifecycle hooks.

setup(app: web.Application) -> None

Parameter Type Default Description
app web.Application The aiohttp Application instance.

Method VectorStoreHandler.get

Handle GET requests.

get() -> web.Response

Returns: web.Response — JSON response with requested data.

Method VectorStoreHandler.post

Create or prepare a vector store collection.

post() -> web.Response

Returns: web.Response — JSON response with creation status.

Method VectorStoreHandler.patch

Test search against a vector store collection.

patch() -> web.Response

Returns: web.Response — JSON response with query results.

Method VectorStoreHandler.put

Load data into a vector store collection.

Supports file uploads (multipart), inline JSON content, and URL lists. Long-running operations (images, videos, URLs) are dispatched as background jobs.

put() -> web.Response

Returns: web.Response — JSON response with job_id (background) or document count (immediate).

Alias VectorStoreHelper

Re-exported from parrot.handlers.stores.helpers.VectorStoreHelper.

Alias async_default_dsn

Re-exported from parrot.conf.async_default_dsn.

Alias supported_stores

Re-exported from parrot.stores.supported_stores.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally