Lines Matching defs:chunks
9 * Defines a vector storage for page chunks and their embeddings
13 * chunks 1200, 1201, 1202, ...
53 * Called when the storage is (re)built and the existing chunks should be reused
57 * @param string $page The page the chunks belong to
64 * Delete all chunks associated with the given page
66 * @param string $page The page the chunks belong to
75 * @param Chunk[] $chunks
78 abstract public function addPageChunks($chunks);
81 * All chunks have been added, finalize the storage
100 * Get all chunks associated with the given page
102 * @param string $page The page the chunks belong to
109 * Get the chunks most similar to the given vector, using a nearest neighbor search
111 * The returned chunks should be sorted by similarity, most similar first.
113 * If possible in an efficient way, only chunks readable by the current user should be returned (ACL check).
114 * If not, the storage should return twice the $limit of chunks and the caller will filter out the readable ones.