-
Notifications
You must be signed in to change notification settings - Fork 7
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
Initialize store #51
Conversation
idea is similar to messenger setup? i like 👍 - not sure where to use it atm tho |
093a7d7
to
ca523ce
Compare
src/Store/MongoDB/Store.php
Outdated
$this->getCollection()->createSearchIndex( | ||
definition: [ | ||
'fields' => [ | ||
[ | ||
'numDimensions' => 1536, | ||
'path' => $this->vectorFieldName, | ||
'similarity' => 'euclidean', | ||
'type' => 'vector', | ||
], | ||
], | ||
], | ||
options: [ | ||
'name' => $this->indexName, | ||
'type' => 'vectorSearch', | ||
], | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alcaeus, this looks like mentioned in:
https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-type/#replace-the-following-values-and-save-the-file.
Any clue?
There was a problem hiding this comment.
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?
3853516
to
9cdddce
Compare
c4d233b
to
6c5599c
Compare
d9086fc
to
ba3432b
Compare
ba3432b
to
dcec926
Compare
3bddf06
to
55ec22f
Compare
Needs
Should be merged after