3 namespace BookStack\Search\Vectors\Services;
5 interface VectorQueryService
8 * Generate embedding vectors from the given chunk of text.
11 public function generateEmbeddings(string $text): array;
14 * Query the LLM service using the given user input, and
15 * relevant context text retrieved locally via a vector search.
16 * Returns the response output text from the LLM.
18 * @param string[] $context
20 public function query(string $input, array $context): string;