Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Sep 26, 2024

@OskarStark OskarStark self-assigned this Sep 26, 2024
@chr-hertel
Copy link
Member

idea is similar to messenger setup? i like 👍 - not sure where to use it atm tho

@OskarStark OskarStark added the enhancement New feature or request label Sep 26, 2024
Comment on lines 63 to 79
$this->getCollection()->createSearchIndex(
definition: [
'fields' => [
[
'numDimensions' => 1536,
'path' => $this->vectorFieldName,
'similarity' => 'euclidean',
'type' => 'vector',
],
],
],
options: [
'name' => $this->indexName,
'type' => 'vectorSearch',
],
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works now with mongodb/mongodb 1.20

@alcaeus any remarks?

@chr-hertel chr-hertel merged commit 27418f2 into main Sep 29, 2024
5 checks passed
@chr-hertel chr-hertel deleted the feature/setup branch September 29, 2024 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants