Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize store #51

Merged
merged 11 commits into from
Sep 29, 2024
Merged

Initialize store #51

merged 11 commits into from
Sep 29, 2024

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?

.env Outdated Show resolved Hide resolved
@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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants