Skip to content

Commit 77d77f5

Browse files
committed
fix
1 parent 532172c commit 77d77f5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/includes/schema-builder/galaxies_migration.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public function up(): void
3636
// start-create-vs-index
3737
Schema::create('galaxies', function (Blueprint $collection) {
3838
$collection->vectorSearchIndex([
39-
'fields' => [[
40-
'type' => 'vector',
41-
'numDimensions' => 4,
42-
'path' => 'vector4',
43-
'similarity' => 'cosine'
44-
]],
39+
'fields' => [
40+
[
41+
'type' => 'vector',
42+
'numDimensions' => 4,
43+
'path' => 'vector4',
44+
'similarity' => 'cosine',
45+
],
46+
],
4547
], 'vs_index');
4648
});
4749
// end-create-vs-index

0 commit comments

Comments
 (0)