-
Notifications
You must be signed in to change notification settings - Fork 281
DOC-4544 added PHP vector query example #1431
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
Conversation
dwdougherty
left a comment
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.
Just a few things to look at. Otherwise, LGTM. Approving now so you don't get held up.
| generates embeddings from text: | ||
|
|
||
| ```php | ||
| $extractor = pipeline('embeddings', 'Xenova/all-MiniLM-L6-v2'); |
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.
Shouldn't this be Xenova/all-mpnet-base-v2?
| $extractor = pipeline('embeddings', 'Xenova/all-MiniLM-L6-v2'); | |
| $extractor = pipeline('embeddings', 'Xenova/all-mpnet-base-v2'); |
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.
@dwdougherty Actually, this is the only instance that's right! (It works in the tested PHP code.) I accidentally used the wrong model name in the text by taking it from another example that uses a different model :-( Fixed now, though - thanks for spotting the inconsistency.
Co-authored-by: David Dougherty <[email protected]>
|
@dwdougherty Thanks for the review! |
DOC-4544