mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-05 00:22:33 +03:00
Vectors: Got basic LLM querying working using vector search context
This commit is contained in:
@ -9,4 +9,13 @@ interface VectorQueryService
|
||||
* @return float[]
|
||||
*/
|
||||
public function generateEmbeddings(string $text): array;
|
||||
|
||||
/**
|
||||
* Query the LLM service using the given user input, and
|
||||
* relevant context text retrieved locally via a vector search.
|
||||
* Returns the response output text from the LLM.
|
||||
*
|
||||
* @param string[] $context
|
||||
*/
|
||||
public function query(string $input, array $context): string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user