Lines Matching refs:record
48 $record = $this->db->queryRecord('SELECT * FROM embeddings WHERE id = ?', [$chunkID]);
49 if (!$record) return null;
52 $record['page'],
53 $record['id'],
54 $record['chunk'],
55 json_decode((string) $record['embedding'], true, 512, JSON_THROW_ON_ERROR),
56 $record['lang'],
57 $record['created']
125 foreach ($result as $record) {
127 $record['page'],
128 $record['id'],
129 $record['chunk'],
130 json_decode((string) $record['embedding'], true, 512, JSON_THROW_ON_ERROR),
131 $record['lang'],
132 $record['created']
158 foreach ($result as $record) {
160 $record['page'],
161 $record['id'],
162 $record['chunk'],
163 json_decode((string) $record['embedding'], true, 512, JSON_THROW_ON_ERROR),
164 $record['lang'],
165 $record['created'],
166 $record['similarity']
287 foreach ($result as $record) {
288 $space->addPoint(json_decode((string) $record['embedding'], true, 512, JSON_THROW_ON_ERROR));
328 while ($record = $handle->fetch(\PDO::FETCH_ASSOC)) {
329 $vector = json_decode((string) $record['embedding'], true, 512, JSON_THROW_ON_ERROR);
330 $cluster = $this->getCluster($vector, $this->useLanguageClusters ? $record['lang'] : '');
332 $this->db->exec($query, [$cluster, $record['id']]);
335 ['id' => $record['id'], 'cluster' => $cluster]