Skip to content

Commit

Permalink
add the extra results
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 8, 2024
1 parent dc8b912 commit 0197e6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/LlmDriver/app/DistanceQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public function distance(
]);

$results = collect($neighborsCosine)
->merge($neighborsInnerProduct)
->merge($documentChunkResults)
->unique('id')
->take(10);
->merge($neighborsInnerProduct)
->merge($documentChunkResults)
->unique('id')
->take(10);

return $results;
}
Expand Down

0 comments on commit 0197e6a

Please sign in to comment.