Created
May 22, 2025 23:48
-
-
Save hweller1/e89a329ef2016635ef7a0c3da75b57fc to your computer and use it in GitHub Desktop.
Example view definition for truncating MRL vectors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.createView( | |
| "512_embeddings", | |
| "wikipedia-22-12-en 2", | |
| [ | |
| { | |
| $addFields: { | |
| "512_embedding": { $slice: ["$embedding", 512] } | |
| } | |
| } | |
| ] | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment