Skip to content

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

Merged
merged 4 commits into from
Apr 15, 2025

Conversation

rustagir
Copy link
Collaborator

@rustagir rustagir commented Apr 11, 2025

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

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?
  • Are the page titles greater than 20 characters long and SEO relevant?

Copy link

netlify bot commented Apr 11, 2025

Deploy Preview for docs-csharp ready!

Name Link
🔨 Latest commit 57a41f5
🔍 Latest deploy log https://app.netlify.com/sites/docs-csharp/deploys/67fd0b1cc48d04000859b87c
😎 Deploy Preview https://deploy-preview-588--docs-csharp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rustagir rustagir requested a review from BorisDog April 11, 2025 16:03
Copy link
Collaborator

@mcmorisi mcmorisi left a 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!

Copy link
Collaborator

@BorisDog BorisDog left a 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`
Copy link
Collaborator

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.

Copy link
Collaborator Author

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
{

Copy link
Collaborator

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:
Copy link
Collaborator

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".

@rustagir rustagir requested a review from BorisDog April 14, 2025 13:20
Copy link
Collaborator

@BorisDog BorisDog left a comment

Choose a reason for hiding this comment

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

LGTM

@rustagir rustagir merged commit 611a739 into mongodb:master Apr 15, 2025
6 checks passed
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
rustagir added a commit that referenced this pull request Apr 15, 2025
* DOCSP-40227: memory serialization

* add note

* MM PR fixes 1

* BD tech review comments 1

(cherry picked from commit 611a739)
(cherry picked from commit 8360dd2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants