}|\WP_Error */ public function status(); /** * Writes vectors, replacing any with the same ID. * * @param list, metadata?: array}> $vectors * @return true|\WP_Error */ public function upsert(array $vectors); /** * Removes vectors by ID. Unknown IDs are not an error. * * @param list $ids * @return true|\WP_Error */ public function delete(array $ids); /** * Nearest neighbours of a vector. * * @param list $vector * @param array $filter Exact-match metadata filter, e.g. ['post_type' => 'page']. * @return list}>|\WP_Error */ public function query(array $vector, int $topK = 10, array $filter = [], bool $withMetadata = true); /** * The stored values of these vectors, for features that start from a post's own vector * (related posts) instead of embedding text again. IDs the store does not hold are left out. * * @param list $ids * @return array>|\WP_Error */ public function vectors(array $ids); /** * Deletes the whole index/collection/table. * * @return true|\WP_Error */ public function dropIndex(); }