-
Notifications
You must be signed in to change notification settings - Fork 24
DOCSP-40227: memory serialization #588
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
DOCSP-40227: memory serialization #588
Conversation
✅ Deploy Preview for docs-csharp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
LGTM with a nit!
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.
Few minor comments.
large numerical arrays. If your application uses | ||
{+vector-search+}, you might benefit from the performance | ||
improvements from using ``Memory`` and ``ReadOnlyMemory`` to model | ||
vector data. To learn more, see :ref:`csharp-supported-vector-types` |
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's probably worth mentioning the more significant optimization of using Binary Vector for vector search as well.
Or alternatively mention that this suggested optimization applied to Array representation of embeddings.
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.
I changed the wording here, but the linked page (atlas vector search) has a lot more info on the types/optimizations that are specific to vectors
|
||
public class Program | ||
{ | ||
|
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.
Remove empty line.
arrays. | ||
|
||
You can effect these performance improvements by storing the following | ||
primitive types in ``Memory<T>`` or ``ReadOnlyMemory<T>`` objects: |
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 should be "structs" instead of "objects".
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.
LGTM
* DOCSP-40227: memory serialization * add note * MM PR fixes 1 * BD tech review comments 1 (cherry picked from commit 611a739)
* DOCSP-40227: memory serialization * add note * MM PR fixes 1 * BD tech review comments 1 (cherry picked from commit 611a739)
* DOCSP-40227: memory serialization * add note * MM PR fixes 1 * BD tech review comments 1 (cherry picked from commit 611a739)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-40227
Staging Links
new serialization section
whats new
atlas vector search
Self-Review Checklist