1<?php
2
3namespace dokuwiki\plugin\aichat\Model;
4
5/**
6 * Defines an embedding model
7 */
8interface EmbeddingInterface extends ModelInterface
9{
10    /**
11     * Get the dimensions of the embedding vectors
12     */
13    public function getDimensions(): int;
14
15    /**
16     * Get the embedding vectors for a given text
17     *
18     * @param string $text
19     * @return float[]
20     * @throws \Exception
21     */
22    public function getEmbedding($text): array;
23}
24