Skip to content

Commit

Permalink
show used query when doing similarity queries
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Jul 22, 2024
1 parent ae09ced commit c2f5508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Embeddings.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ public function getSimilarChunks($query, $lang = '')
$this->timeSpent = round(microtime(true) - $time, 2);
if ($this->logger instanceof CLI) {
$this->logger->info(
'Fetched {count} similar chunks from store in {time} seconds',
['count' => count($chunks), 'time' => $this->timeSpent]
'Fetched {count} similar chunks from store in {time} seconds. Query: {query}',
['count' => count($chunks), 'time' => $this->timeSpent, 'query' => $query]
);
}

Expand Down

0 comments on commit c2f5508

Please sign in to comment.