We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 034c6e8 commit fed5cb5Copy full SHA for fed5cb5
docs/includes/schema-builder/galaxies_migration.php
@@ -36,12 +36,14 @@ public function up(): void
36
// start-create-vs-index
37
Schema::create('galaxies', function (Blueprint $collection) {
38
$collection->vectorSearchIndex([
39
- 'fields' => [[
40
- 'type' => 'vector',
41
- 'numDimensions' => 4,
42
- 'path' => 'vector4',
43
- 'similarity' => 'cosine'
44
- ]],
+ 'fields' => [
+ [
+ 'type' => 'vector',
+ 'numDimensions' => 4,
+ 'path' => 'vector4',
+ 'similarity' => 'cosine',
45
+ ],
46
47
], 'vs_index');
48
});
49
// end-create-vs-index
0 commit comments