Skip to content

Commit

Permalink
JT small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Feb 7, 2025
1 parent a9193d8 commit 0d226c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/fundamentals/vector-search.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You must pass the following parameters to the ``vectorSearch()`` method:
- Name of the vector search index

* - ``path``
- ``array`` or ``string``
- ``string``
- Field that stores vector embeddings

* - ``queryVector``
Expand Down
6 changes: 2 additions & 4 deletions docs/includes/fundamentals/as-avs/AtlasSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ public function testSimpleSearch(): void
public function autocompleteSearchTest(): void
{
// start-auto-query
$movies = Movie::autocomplete('title', 'jak')
->get();
$movies = Movie::autocomplete('title', 'jak')->get();
// end-auto-query

$this->assertNotNull($movies);
Expand Down Expand Up @@ -145,8 +144,7 @@ public function vectorSearchTest(): void
$this->assertSame('C', $results->first()->title);
}

/** Generates random vectors using fixed seed to make tests
* deterministic */
/** Generates random vectors using fixed seed to make tests deterministic */
private function addVector(array $items): array
{
srand(1);
Expand Down

0 comments on commit 0d226c0

Please sign in to comment.