Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/
Atlas
/

Run Vector Search Queries

Atlas Vector Search queries take the form of an aggregation pipeline stage. For the $vectorSearch queries, Atlas Vector Search returns the results of your semantic search.

Note

Atlas Vector Search supports ANN search on clusters running MongoDB v6.0.11, v7.0.2, or later and ENN search on clusters running MongoDB v6.0.16, v7.0.10, v7.3.2, or later.

The $vectorSearch stage performs an ANN or ENN search on a vector in the specified field.

For ANN search, Atlas Vector Search finds vector embeddings in your data that are closest to the vector embedding in your query based on their proximity in multi-dimensional space and based on the number of neighbors that it considers. It uses the Hierarchical Navigable Small Worlds algorithm and finds the vector embeddings most similar to the vector embedding in your query without scanning every vector. Therefore, ANN search is ideal for querying large datasets without significant filtering.

Note

Optimal recall for ANN search is typically considered to be around 90-95% overlap in results with ENN search but with significantly lower latency. This provides a good balance between accuracy and performance. To achieve this with Atlas Vector Search, tune the numCandidates parameter at query time.

For ENN search, Atlas Vector Search exhaustively searches all the indexed vector embeddings by calculating the distance between all the embeddings and finds the exact nearest neighbor for the vector embedding in your query. This is computationally intensive and might negatively impact query latency. Therefore, we recommend ENN searches for the following use-cases:

  • You want to determine the recall and accuracy of your ANN query using the ideal, exact results for the ENN query.

  • You want to query less than 10000 documents without having to tune the number of nearest neighbors to consider.

  • Your want to include selective pre-filters in your query against collections where less than 5% of your data meets the given pre-filter.

If you enable automatic quantization, Atlas Vector Search uses only the full-fidelity vectors for ENN queries.

The field that you want to search must be indexed as Atlas Vector Search vector type inside a vectorSearch index type.

$vectorSearch

A $vectorSearch pipeline has the following prototype form:

{
"$vectorSearch": {
"exact": true | false,
"filter": {<filter-specification>},
"index": "<index-name>",
"limit": <number-of-results>,
"numCandidates": <number-of-candidates>,
"path": "<field-to-search>",
"queryVector": [<array-of-numbers>]
}
}

The $vectorSearch stage takes a document with the following fields:

Field
Type
Necessity
Description

exact

boolean

Optional

This is required if numCandidates is omitted.

Flag that specifies whether to run ENN or ANN search. Value can be one of the following:

  • false - to run ANN search

  • true - to run ENN search

If omitted, defaults to false.

Atlas Vector Search supports ANN search on clusters running MongoDB v6.0.11, v7.0.2, or later and ENN search on clusters running MongoDB v6.0.16, v7.0.10, v7.3.2, or later.

filter

document

Optional

MQL expression that compares an indexed field to use as a pre-filter. You can filter on boolean, date, objectId, numeric, string, and UUID values, including arrays of these types.

To learn which MQL operators Atlas Vector Search supports in your filter, see Atlas Vector Search Pre-Filter.

index

string

Required

Name of the Atlas Vector Search index to use.

Atlas Vector Search doesn't return results if you misspell the index name or if the specified index doesn't already exist on the cluster.

limit

number

Required

Number (of type int only) of documents to return in the results. This value can't exceed the value of numCandidates if you specify numCandidates.

numCandidates

number

Optional

This field is required if exact is false or omitted.

Number of nearest neighbors to use during the search. Value must be less than or equal to (<=) 10000. You can't specify a number less than the number of documents to return (limit).

We recommend that you specify a number at least 20 times higher than the number of documents to return (limit) to increase accuracy.

This overrequest pattern is the recommended way to trade off latency and recall in your ANN searches, and we recommend tuning this parameter based on your specific dataset size and query requirements.

To learn more about other variables that might impact this parameter, see numCandidates Selection.

path

string

Required

Indexed vector type field to search.

queryVector

array of numbers

Required

Array of numbers of float32, BSON BinData vectors with subtype float32, or BSON BinData vectors with subtype int1 or int8 type that represent the query vector.

To learn more about generating BSON binData vectors with subtype float32, int8, int1, see How to Ingest Pre-Quantized Vectors.

The array size must match the number of vector dimensions specified in the index definition for the field.

You must embed your query with the same model that you used to embed the data.

You can query your embeddings with full-fidelity vectors, as long as the vector subtype is the same. This is only possible with binData vectors with subtype float32. If you use any other subtype (int8 or int1), Atlas Vector Search doesn't return any results or errors.

You can run $vectorSearch queries by using the Atlas UI, mongosh, and any MongoDB driver.

You can also use Atlas Vector Search with local Atlas deployments that you create with the Atlas CLI. To learn more, see Create a Local Atlas Deployment.

$vectorSearch is supported only on Atlas clusters running the following MongoDB versions:

  • v6.0.11

  • v7.0.2 and later (including RCs).

$vectorSearch can't be used in view definition and the following pipeline stages:

You can pass the results of $vectorSearch to this stage.

$vectorSearch must be the first stage of any pipeline where it appears.

You must index the fields to search using the $vectorSearch stage inside a vectorSearch type index definition. You can index the following types of fields in an Atlas Vector Search vectorSearch type index definition:

  • Fields that contain vector embeddings as vector type.

  • Additional fields as the filter type to enable vector search on pre-filtered data.

To learn more about these Atlas Vector Search field types, see How to Index Fields for Vector Search.

Atlas Vector Search assigns a score, in a fixed range from 0 to 1 (where 0 indicates low similarity and 1 indicates high similarity), to every document that it returns.

The score is calculated according to the similarity measure that you specify in the index definition. For cosine and dotProduct similarities, Atlas Vector Search normalizes the score to ensure that the score is not negative.

For cosine, Atlas Vector Search uses the following algorithm to normalize the score:

score = (1 + cosine(v1,v2)) / 2

This algorithm normalizes the score by considering the similarity score of the document vector (v1) and the query vector (v2), which has the range [-1, 1]. Atlas Vector Search adds 1 to the similarity score to normalize the score to a range [0, 2] and then divides by 2 to ensure a value between 0 and 1.

For dotProduct, Atlas Vector Search uses the following algorithm to normalize the score:

score = (1 + dotProduct(v1,v2)) / 2

This algorithm normalizes the score by considering the similarity score of the document vector (v1) and the query vector (v2), which has the range [-1, 1]. Atlas Vector Search adds 1 to the similarity score to normalize the score to a range [0, 2] and then divides by 2 to ensure a value between 0 and 1.

For euclidean similarity, Atlas Vector Search uses the following algorithm to normalize the score to ensure a value between 0 and 1:

score = 1 / (1 + euclidean(v1,v2))

This algorithm normalizes the score by calculating the euclidean distance, which is the distance between the document vector (v1) and the query vector (v2), which has the range [0, ∞]. Atlas Vector Search then transforms the distance to a similarity score by adding 1 to the distance and then divides 1 by the result to ensure a value between 0 and 1.

Each returned document includes the score as metadata. To include each returned document's score along with the result set, use a $project stage in your aggregation pipeline.

To retrieve the score of your Atlas Vector Search query results, use vectorSearchScore as the value in the $meta expression. That is, after the $vectorSearch stage, in the $project stage, the score field takes the $meta expression. The expression requires the vectorSearchScore value to return the score of documents for the vector search.

Example

1db.<collection>.aggregate([
2 {
3 "$vectorSearch": {
4 <query-syntax>
5 }
6 },
7 {
8 "$project": {
9 "<field-to-include>": 1,
10 "<field-to-exclude>": 0,
11 "score": { "$meta": "vectorSearchScore" }
12 }
13 }
14])

Note

Pre-filtering your data doesn't affect the score that Atlas Vector Search returns using $vectorSearchScore for $vectorSearch queries.

The $vectorSearch filter option matches BSON boolean, date, objectId, numeric, string, and UUID values, including arrays of these types.

You must index the fields that you want to filter your data by as the filter type in a vectorSearch type index definition. Filtering your data is useful to narrow the scope of your semantic search and ensure that not all vectors are considered for comparison.

Atlas Vector Search supports the $vectorSearch filter option for the following MQL operators:

Type
MQL operator

Equals

Range

In set

Logical

Atlas Vector Search supports the short form of $eq. In the short form, you don't need to specify $eq in the query.

Example

For example, consider the following filter with $eq:

"filter": { "_id": { "$eq": ObjectId("5a9427648b0beebeb69537a5") }

You can run the preceding query using the short form of $eq in the following way:

"filter": { "_id": ObjectId("5a9427648b0beebeb69537a5") }

You can also specify an array of filters in a single query by using the $and operator.

Example

For example, consider the following pre-filter for documents with a genres field equal to Action and a year field with the value 1999, 2000, or 2001:

"filter": {
"$and": [
{ "genres": "Action" },
{ "year": { "$in": [ 1999, 2000, 2001 ] } }
]
}

For ANN search, we recommend that you specify a numCandidates number at least 20 times higher than the number of documents to return (limit) to increase accuracy. For example, if you set limit to return 5 results, consider setting numCandidates to 100 as a starting point. A higher number also reduces any discrepancies between your ANN and ENN query results. To learn more, see How to Measure the Accuracy of Your Query Results.

This overrequest pattern is the recommended way to trade off latency and recall in your ANN searches. However, we recommend tuning this parameter based on your specific dataset size and query requirements. To ensure that you get accurate results, consider the following variables:

  • Index Size: Larger collections typically require higher numCandidates values to maintain recall. A collection with millions of vectors might need significantly more candidates than one with thousands of vectors.

  • Limit Value: Because numCandidates is highly correlated with the index size, low limit values require proportionally higher numCandidates values to maintain recall.

  • Vector Quantization: Quantized vectors reduce storage at the cost of accuracy. Using quantized vectors (int8 or int1 subtypes) might require higher numCandidates values compared to full precision float32 vectors to maintain similar recall.

We recommend dedicated Search Nodes to isolate vector search query processing. You might see improved query performance on the dedicated Search Nodes. Note that the high-CPU systems might provide more performance improvement. When Atlas Vector Search runs on search nodes, Atlas Vector Search parallelizes query execution across segments of data.

Parallelization of query processing improves the response time in many cases, such as queries on large datasets. Using intra-query parallelism during Atlas Vector Search query processing utilizes more resources, but improves latency for each individual query.

Note

Atlas Vector Search doesn't guarantee that each query will run concurrently. For example, when too many concurrent queries are queued, Atlas Vector Search might fall back to single-threaded execution.

You might see inconsistent results for the same successive queries. To mitigate this, increase the value of numCandidates in your $vectorSearch queries.

The following queries search the sample sample_mflix.embedded_movies collection using the $vectorSearch stage. The queries search the plot_embedding_voyage_3_large field, which contains embeddings created using the voyage-3-large embedding model from Voyage AI.


➤ Use the Select your language drop-down menu to set the language of the examples in this page.


Before you run these examples, perform the following actions:

Note

If you use mongosh, pasting the queryVector from the sample code into your terminal might take a while depending on your machine.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

  1. Save the following embeddings in a file named query-embeddings.js:

    TIME_TRAVEL_EMBEDDING=[-0.034731735,0.008558298,-0.0153717,-0.029912498,0.011549547,0.010261648,-0.011964999,-0.023265276,0.010303194,-0.006896493,-0.00054528,0.003926015,-0.025757983,0.027419789,0.001199616,-0.036227357,-0.005297005,0.021935832,0.010303194,-0.019193852,0.025093261,-0.040049512,-0.033900831,-0.011466458,-0.01827986,-0.0153717,0.023265276,0.007727395,0.000114249,0.005317777,-0.043871664,-0.02127111,-0.019609304,0.016368784,-0.004756918,0.003552109,0.006522586,-0.005400868,-0.015620971,-0.034565553,-0.018695312,-0.023099095,0.050851244,-0.034731735,0.004819236,0.022268193,-0.095719993,0.05517194,-0.046198189,-0.036393538,0.007187308,-0.02459472,-0.036725901,0.009472291,0.019027673,0.020938748,-0.011051006,0.027087428,0.04586583,-0.022600554,-0.05517194,0.044204023,0.01213118,0.047859997,-0.03938479,0.002928932,0.002056484,0.019443123,-0.028583053,0.013543714,0.022932915,0.011632638,0.004923099,0.000389486,0.020024756,-0.024096178,-0.022766734,0.011217186,-0.003198975,0.007104218,-0.047195274,-0.013377533,0.013294443,0.024096178,-0.056501385,-0.026755067,-0.008433662,-0.001911076,0.007976666,-0.008101301,-0.014042255,0.008641388,-0.02176965,0.010012378,-0.000607598,-0.024927082,0.024927082,-0.018612221,-0.001184036,0.005567048,0.001324251,-0.019526213,-0.023597637,0.060489718,-0.010178559,-0.019609304,0.004112968,-0.011217186,-0.031574301,-0.008766023,0.005483958,-0.061819162,-0.023431456,-0.040714234,0.015039339,0.026422706,0.016202603,0.004653055,0.041046593,-0.018030589,0.040381871,-0.002638116,0.013045172,0.004216831,0.005650138,0.027419789,0.003926015,-0.028749233,0.004798463,-0.030244859,0.063813329,0.007145763,-0.017448956,0.025591804,-0.045201108,0.010718645,0.002804297,0.014291527,0.04586583,-0.015205519,-0.021603471,-0.035230275,0.00760276,0.033236109,0.016534964,-0.043206941,-0.003115885,-0.026256526,0.005940954,0.016534964,0.024262359,-0.001630647,0.028084511,-0.012795902,0.007270399,0.001381376,-0.009763107,-0.006896493,0.008433662,-0.019360034,0.000386889,0.030411039,0.025591804,0.010469374,0.037722982,-0.001147684,-0.005400868,0.052845411,-0.052513052,0.00768585,-0.004299921,0.00922302,0.011881908,0.012962082,-0.068798743,0.003593654,0.020938748,-0.013792985,-0.034565553,-0.007519669,-0.04021569,-0.020689478,0.006273315,0.046862911,0.006107135,0.002638116,-0.013792985,-0.005400868,-0.020274026,0.007644305,-0.010801735,0.026422706,0.043871664,0.003780607,0.010261648,-0.064145692,0.011881908,-0.009056839,0.009347656,-0.02459472,0.026422706,0.033236109,0.041212775,0.019027673,-0.00315743,0.004424557,0.020689478,-0.0153717,-0.015205519,-0.034897912,0.020274026,0.016867325,0.040714234,-0.022766734,-0.010967916,0.026256526,0.007062673,-0.015953332,-0.007727395,0.031574301,-0.002887387,-0.00614868,0.004569965,0.019027673,0.012878992,0.011798819,0.004258377,-0.019193852,-0.021437289,-0.021603471,0.000301202,-0.051183607,-0.004985416,-0.030078677,0.012629721,0.065142773,-0.031740483,-0.021104928,-0.03938479,-0.003365156,-0.016036423,0.036393538,0.009804652,-0.018612221,0.060489718,-0.003697517,0.000547876,0.063480966,0.02758597,0.010053922,-0.003655972,-0.001485239,0.018362951,0.021104928,-0.003905243,0.019443123,-0.002658889,-0.00380138,-0.013626805,0.035894997,0.035396457,-0.005691683,0.002762751,0.012878992,-0.009596926,-0.009970833,-0.015953332,0.022434372,0.00614868,-0.021188019,0.001557943,-0.020190936,0.009763107,0.017448956,0.006730312,0.005567048,0.019692395,-0.00218112,-0.016867325,0.006854947,0.007976666,0.019193852,0.040880412,0.007353489,-0.02127111,-0.031906664,-0.026755067,-0.017947499,0.040381871,0.042209856,0.00913993,-0.0307434,-0.017781317,-0.015039339,0.03057722,0.017532047,0.0187784,-0.060822077,0.002928932,-0.026422706,-0.005899409,0.039717149,0.026588887,-0.000971118,0.004923099,-0.013626805,0.0187784,-0.031408124,-0.000695881,0.050851244,-0.014457707,-0.007311944,-0.001293092,-0.002139574,-0.019276943,0.00290816,0.019360034,-0.017781317,0.002160347,0.016618054,-0.006522586,0.011798819,0.029247776,-0.02775215,0.010344739,-0.018362951,-0.036725901,-0.015870241,0.015704062,-0.012463541,0.02459472,-0.024096178,0.001152877,-0.031408124,0.025425622,0.027087428,0.00922302,0.034565553,0.015704062,-0.020689478,-0.00517237,-0.014706978,-0.001589101,0.026090344,0.014956249,0.011715728,0.004299921,-0.00913993,0.022434372,-0.03705826,0.048524719,-0.030411039,0.008433662,0.017033506,-0.000511525,-0.031408124,0.005940954,-0.012962082,-0.031574301,0.017448956,0.010178559,-0.011383367,-0.020107845,-0.005151597,0.006647222,0.013128263,0.007145763,0.008059756,-0.045201108,-0.004943871,0.015787151,-0.045201108,-0.020772567,-0.020274026,0.028250692,-0.024262359,-0.004424557,0.009804652,0.000472576,-0.005691683,0.001443693,-0.013294443,0.001412535,0.013211353,-0.01213118,-0.002118802,0.017781317,-0.007353489,-0.031075761,-0.004923099,0.011383367,-0.004486875,-0.010178559,0.016618054,0.014457707,0.023763817,-0.02459472,-0.00388447,0.012546631,-0.007519669,0.015704062,-0.014291527,0.009680017,-0.035562634,0.023763817,0.053510133,-0.0555043,-0.003572882,0.022102011,0.021603471,-0.017282777,-0.001474852,-0.043539301,0.007810486,-0.025757983,-0.005400868,0.029912498,-0.00760276,0.014125346,0.030909581,-0.03340229,-0.009680017,0.018030589,0.008849114,0.03057722,0.019775484,0.014125346,0.031906664,-0.03057722,-0.027087428,-0.023597637,-0.022434372,-0.012878992,0.016285693,-0.021603471,-0.029746316,0.029746316,0.020357117,0.006314861,-0.001158071,0.028749233,-0.045201108,0.011383367,0.011134096,-0.021437289,-0.035728816,0.001827986,0.008267482,-0.057498466,0.01213118,-0.01213118,-0.040548053,0.010718645,0.004798463,-0.004881553,-0.019526213,-0.008558298,0.0059825,-0.000262254,-0.017615138,0.005193142,0.019692395,-0.00198378,-0.002845842,0.012546631,0.006107135,-0.008225936,-0.008890659,0.015870241,0.00517237,0.002596571,-0.010427829,-0.019110762,0.024262359,0.012048089,-0.032405205,0.006522586,0.013211353,0.013211353,-0.038221523,-0.007727395,-0.008267482,-0.019276943,0.001474852,0.031408124,-0.035562634,0.017532047,-0.023431456,-0.015454791,-0.011383367,0.016534964,-0.02176965,0.008682934,0.027253609,0.020190936,-0.0247609,-0.007311944,0.009555381,-0.01852913,-0.011632638,0.011549547,0.027419789,-0.034067012,-0.01229736,0.0307434,0.003946788,0.0046946,0.037722982,0.03057722,-0.010427829,0.002284982,0.033236109,0.030078677,-0.013377533,0.007395034,-0.012048089,0.040714234,-0.028749233,-0.000102565,-0.0059825,-0.041046593,0.017698228,-0.006356406,0.003178203,0.009056839,0.023099095,0.00606559,0.011881908,-0.02127111,-0.001126912,-0.027087428,0.011134096,0.001204809,-0.017033506,0.011051006,-0.014374617,0.017864408,0.023431456,-0.002077257,-0.026755067,-0.043871664,0.025757983,-0.006190225,0.001152877,0.011798819,-0.024262359,0.006564131,-0.070128188,-0.004362239,0.012962082,-0.013626805,-0.001402148,-0.012214269,0.011217186,-0.015953332,0.015787151,0.011134096,0.027253609,0.024262359,-0.048192356,0.009970833,0.018944582,-0.00517237,0.021935832,0.02775215,0.003406701,-0.010884825,0.075113602,-0.015953332,0.007727395,0.026755067,-0.006190225,-0.012712811,0.013377533,0.005940954,-0.008309027,0.02459472,0.002316141,-0.022434372,-0.012712811,0.03057722,-0.015787151,0.026755067,-0.001069787,0.03988333,-0.003697517,0.039550968,-0.019027673,-0.0059825,-0.00031029,-0.012546631,-0.003614427,0.007478124,0.005525503,0.032571387,-0.011798819,-0.011466458,-0.00606559,-0.011798819,0.018446039,0.007976666,0.018944582,-0.02176965,0.026588887,-0.006273315,-0.012463541,-0.007395034,0.012048089,-0.029247776,0.015454791,-0.007145763,0.006481041,-0.015620971,-0.00388447,-0.025757983,-0.001651419,-0.032903746,-0.005068507,0.03938479,0.003926015,0.004715373,0.022600554,-0.012546631,0.022932915,0.007810486,0.040714234,0.019941665,0.013543714,0.003406701,0.010884825,-0.03988333,0.042209856,-0.022766734,0.027419789,-0.029580137,0.043206941,0.022932915,0.021104928,-0.056833744,0.005193142,0.036061179,-0.012878992,0.008516753,-0.02758597,-0.030244859,-0.011798819,0.001111332,-0.014125346,-0.014125346,0.019027673,0.029081594,0.018861491,0.013626805,0.06846638,0.023099095,0.041378956,0.001599488,-0.028749233,0.017781317,0.016285693,0.021603471,-0.018113678,0.011300277,-0.032239024,0.022434372,-0.02459472,-0.013626805,0.005483958,0.013460624,-0.031574301,-0.015620971,0.016451873,0.014790068,-0.008849114,0.011134096,0.00461151,0.015122429,0.036227357,0.00206687,0.000877641,0.022102011,-0.028250692,0.022600554,-0.026422706,0.004029878,-0.032072846,0.017116595,0.010884825,0.019609304,0.00614868,0.005733229,0.016119512,0.002866614,-0.014540797,0.012463541,-0.003905243,0.003759835,-0.000485559,-0.022766734,-0.016285693,0.037722982,0.009513836,0.001506011,0.011964999,0.004029878,0.019941665,-0.000965924,0.002129188,0.015205519,0.071125269,0.022932915,0.005940954,-0.00044661,0.010220103,-0.03423319,-0.016285693,-0.016867325,-0.000659529,-0.008018211,-0.011383367,0.000016634,0.004071423,-0.029413955,0.019941665,-0.00913993,-0.024096178,0.010635555,0.010594009,0.001547556,0.036227357,-0.030078677,0.020772567,0.022268193,-0.014125346,0.008766023,-0.012962082,-0.007187308,0.017033506,-0.007187308,-0.015205519,-0.005608593,0.044536386,-0.001235968,0.007852031,0.001599488,0.005857864,-0.005940954,-0.010510919,-0.005567048,0.006730312,0.016285693,-0.010801735,-0.024428539,0.015122429,-0.02176965,0.01528861,-0.007436579,0.00226421,-0.004715373,0.004507647,0.004341467,0.005525503,-0.031075761,-0.005899409,0.037556801,0.014873158,-0.000342747,0.009970833,-0.019443123,0.023597637,-0.012048089,-0.025259443,0.006024044,-0.01827986,0.010012378,0.016784234,0.013211353,-0.005400868,-0.024428539,-0.02176965,-0.035230275,0.009347656,0.028583053,-0.015704062,-0.017781317,0.00226421,0.001199616,-0.003385928,0.008267482,0.002326528,0.022434372,-0.020190936,-0.015787151,0.000789358,0.031241942,0.011300277,0.001506011,-0.023265276,-0.010967916,0.009056839,0.011300277,-0.030244859,0.007478124,0.001111332,-0.035894997,0.0153717,0.002700434,0.021104928,0.010884825,-0.003344383,0.00768585,0.010386284,0.00452842,-0.014706978,0.028084511,0.013377533,0.014873158,0.046862911,-0.015454791,0.021188019,0.013959166,0.012629721,0.025924165,-0.018695312,-0.00922302,-0.0093892,0.007727395,0.036892079,0.007228854,-0.01229736,0.029247776,-0.004943871,-0.027253609,-0.008433662,0.043206941,0.002825069,0.028583053,-0.023431456,0.034897912,-0.041545134,-0.016534964,0.003053567,-0.012712811,0.002741979,-0.007187308,-0.025093261,-0.045201108,-0.004424557,-0.016618054,-0.008890659,0.008018211,-0.05184833,-0.019526213,-0.013377533,-0.010469374,0.030244859,-0.005068507,0.051183607,0.005483958,-0.006024044,0.035064094,-0.011134096,0.014956249,0.002284982,0.001724123,-0.01229736,0.012629721,0.010261648,0.014540797,0.048857078,-0.029580137,-0.024927082,-0.008350573,-0.03988333,0.000939959,0.013543714,0.013626805,-0.021437289,-0.012962082,0.006771857,0.013709894,-0.0059825,0.035396457,-0.006439496,-0.029580137,0.0046946,0.019609304,-0.007270399,0.014291527,-0.015620971,0.00118923,-0.00760276,-0.017199686,0.023265276,0.026588887,-0.030078677,-0.016701145,-0.025757983,0.004964644,0.026588887,0.043206941,0.011051006,-0.009846197,0.028915415,0.031574301,0.023763817,0.009264565,-0.008433662,-0.035064094,-0.000579035,-0.0247609,0.014125346,0.016618054,0.028749233,-0.052513052,-0.016867325,-0.01238045,0.002741979,0.013709894,0.010718645,0.013626805,0.009596926,-0.004403784,-0.02758597,-0.000945152,0.000420645,0.003759835,0.012546631,-0.011881908,0.008392117,0.012795902,0.005483958,-0.009763107,0.006397951,-0.010801735,0.012795902,-0.03938479,0.005733229,0.005733229,-0.000433627,0.015454791,0.002357686,-0.006564131,0.030244859,-0.024428539,0.016036423,0.014291527,-0.004964644,0.029413955,0.040381871,0.012629721,-0.033568468,-0.026422706,-0.037889164,-0.034399372,-0.03423319,0.021935832,0.004133741,-0.014623888,-0.013543714,-0.05517194,0.004736145,0.006314861,0.00006037,0.006356406,0.003323611,-0.010344739,0.007062673,0.005899409,-0.00623177,-0.001973394,-0.0555043,0.011881908,0.001350217,-0.033069927,-0.026921248,0.022268193,0.028583053,-0.021021837,0.010884825,0.019692395,-0.005442413,0.031574301,-0.014956249,0.01238045,-0.006356406,0.006273315,-0.003095113,-0.014540797,-0.02176965,0.005006189,-0.002658889,0.042542219,-0.02176965,0.017199686,-0.016701145,-0.001599488,0.016950415,-0.021188019,0.017864408,0.023763817,-0.000669915,0.025093261,0.021104928,0.008807569,0.037390623,-0.025591804,-0.003178203,-0.001319058,0.020523297,0.005255459,0.019276943,-0.00226421,0.00760276,-0.057166107,-0.006896493,-0.034067012,0.043871664,0.038221523,0.008101301,0.03988333,0.015870241,0.000955538,-0.004299921,-0.002928932,-0.002118802,-0.020523297,-0.001168457,-0.011134096,-0.000685495,0.003323611,0.011549547,0.034565553,0.029247776,-0.029746316,0.005213914,0.019110762,-0.003302838,0.026422706,0.028915415,-0.036227357,0.033236109,0.038387705,-0.035230275,0.004071423,-0.021935832,0.002928932,0.000976311,0.000527104,-0.006854947,-0.003822153,-0.001199616,0.019858574,-0.002762751,0.039052427,-0.008641388,0.032239024,-0.002295369,0.035396457,0.044536386,-0.029413955,0.025093261,-0.03423319,-0.016867325,-0.008849114,0.008433662,-0.004486875,0.017033506,0.006730312,-0.008599843,-0.008225936,-0.024428539,0.006564131,-0.007561215,-0.032072846,-0.019941665,0.035396457,0.019276943,0.010261648,0.005857864,0.032239024,-0.044204023,-0.018944582,0.002409618,0.032903746,0.05517194,-0.03655972,0.007976666,0.030909581,-0.023929998,0.016368784,0.01528861,-0.00768585,0.02176965,0.013626805,-0.02459472,0.04021569,-0.032737568,0.006854947,-0.011383367,0.014873158,-0.02176965,0.00243039,0.0093892,0.0093892,-0.029580137,0.019858574,0.01827986,0.024428539,0.017864408,-0.028250692,-0.001111332,0.056169022,0.007478124,-0.010718645,0.041046593,-0.015704062,0.034731735,0.002523867,-0.032571387,0.004341467,-0.023597637,-0.011881908,-0.035562634,0.006688767,0.007810486,-0.012712811,0.022600554,0.03057722,0.022600554,0.010552464,0.0307434,-0.009638472,0.02176965,-0.018030589,0.024262359,-0.036227357,-0.020772567,0.001641033,-0.022932915,-0.014623888,0.018362951,0.002575798,0.006190225,-0.011051006,0.021021837,0.019110762,0.02127111,-0.028583053,-0.052180689,-0.014291527,-0.010552464,0.036393538,0.042542219,-0.04586583,-0.001869531,0.008350573,-0.008516753,-0.020772567,0.000294711,0.015704062,-0.014457707,-0.020772567,0.008766023,-0.026588887,-0.004736145,-0.028084511,-0.007519669,0.010552464,-0.016534964,0.006190225,0.012962082,-0.016618054,0.012546631,0.02459472,0.022932915,0.020440206,-0.027918331,-0.008059756,0.020689478,-0.014623888,-0.011466458,-0.006896493,-0.020024756,-0.031408124,0.021603471,0.007270399,-0.03057722,0.008350573,-0.021437289,0.00072704,-0.043871664,0.006314861,-0.017199686,0.02176965,0.024262359,-0.020357117,-0.000542683,-0.005213914,0.001963008,-0.00064395,-0.022434372,0.022102011,-0.006688767,-0.028583053,0.002191506,-0.005047734,0.002368073,0.014956249,0.023929998,-0.003302838,-0.032239024,0.022268193,-0.013377533,-0.010801735,0.003676744,0.009015295,-0.039550968,0.010884825,-0.033568468,0.013709894,-0.029413955,-0.006356406,-0.020274026,0.023597637,0.030909581,0.02176965,0.016285693,0.045533467,-0.024096178,-0.030909581,-0.026422706,0.002783524,-0.010594009,0.004362239,-0.070792913,0.009472291,-0.022102011,0.011134096,-0.017448956,-0.011549547,-0.056833744,0.00082571,0.026588887,-0.013709894,0.002575798,0.02176965,-0.000568649,-0.007270399,0.004279149,-0.042874578,-0.026588887,0.016784234,0.036725901,-0.028915415,-0.009513836,0.017448956,0.002035712,-0.007228854,0.011383367,0.011134096,0.028915415,0.0153717,-0.027087428,0.043871664,-0.005089279,0.006314861,0.014291527,-0.003240521,0.025924165,-0.001230775,-0.015454791,-0.012629721,0.031740483,-0.039717149,-0.031075761,0.006605676,-0.008641388,-0.032239024,0.037722982,-0.03705826,-0.024096178,0.001911076,0.018196769,-0.007353489,-0.011300277,-0.029081594,0.004590738,-0.018030589,-0.026588887,0.010261648,0.038221523,0.008392117,-0.01213118,0.018362951,-0.034731735,-0.017781317,-0.011632638,0.005255459,0.000851675,0.014208436,-0.000039922,-0.000228498,0.014790068,0.00913993,0.0004544,-0.011798819,-0.020440206,0.005899409,0.008350573,0.006314861,0.040548053,0.003427474,-0.010801735,0.008599843,0.002586185,-0.041212775,-0.016368784,0.020024756,0.000965924,-0.021021837,-0.008475208,0.0307434,0.00760276,0.003614427,0.003489791,-0.025924165,0.000799744,0.013460624,-0.020440206,0.048857078,0.004320694,-0.048857078,0.015039339,-0.029580137,0.025924165,0.018861491,-0.014706978,0.000576439,-0.031241942,0.0307434,0.0153717,0.014706978,0.028084511,-0.01238045,-0.031241942,0.018196769,-0.034897912,0.008142847,0.010718645,0.00922302,0.047859997,-0.00072704,-0.010427829,0.007104218,0.026256526,0.012214269,-0.013377533,-0.05184833,0.005276232,0.021935832,-0.007021128,0.009804652,0.007893575,0.024096178,-0.002357686,0.033900831,-0.031740483,0.034565553,-0.036892079,-0.015454791,0.030411039,0.010552464,-0.022268193,-0.001391762,-0.008184392,-0.008558298,0.008475208,-0.009929287,0.010427829,0.041378956,-0.009555381,-0.008724478,-0.039052427,0.034731735,-0.014291527,0.023099095,0.029081594,0.007519669,0.010967916,-0.008142847,0.006190225,-0.031075761,0.033734649,-0.001672192,0.047859997,-0.022434372,-0.007395034,0.01213118,0.056169022,0.002762751,-0.029413955,-0.000763392,-0.015787151,0.010801735,0.008142847,0.029912498,-0.0018176,0.033236109,-0.046198189,-0.002492708,-0.006730312,0.008807569,-0.03655972,0.009430746,-0.053842496,-0.060489718,0.046862911,0.002783524,-0.0187784,0.000571246,0.00760276,0.002482322,0.001319058,-0.014291527,0.001464466,-0.011632638,-0.012463541,-0.004902326,0.000841289,0.006688767,0.030244859,0.018944582,0.000532297,-0.015620971,0.007104218,0.005608593,0.002035712,-0.023763817,0.003032795,0.010594009,-0.023597637,-0.042376038,-0.005255459,0.001199616,-0.0247609,-0.007893575,-0.011632638,0.013045172,-0.005691683,-0.007104218,0.027419789,-0.004320694,-0.005525503,-0.026090344,0.031408124,-0.012795902,-0.007062673,0.000939959,0.000030185,0.004175286,0.014291527,0.033236109,-0.038720068,0.074116521,-0.019692395,0.001589101,0.013792985,-0.056169022,-0.028749233,-0.001599488,0.004175286,0.014790068,0.00162026,-0.007519669,-0.041378956,0.016534964,-0.003572882,-0.002575798,-0.019526213,-0.00922302,-0.033900831,-0.042043675,-0.014208436,0.010178559,0.017698228,0.032239024,0.00913993,0.009264565,-0.012463541,-0.005857864,-0.015870241,0.004486875,0.018861491,-0.000176567,-0.029912498,0.016784234,0.012546631,0.051183607,0.023597637,0.032903746,0.0153717,-0.013377533,-0.000016634,-0.061486799,-0.034565553,0.016119512,0.00380138,-0.003863698,0.004362239,-0.017532047,-0.002762751,0.000102565,-0.021437289,0.029247776,-0.010718645,-0.015870241,-0.016285693,0.010220103,-0.000373906,0.012962082,0.010137013,-0.007228854,0.02127111,-0.029247776,0.018113678,0.009181475,0.002233051,0.014374617,-0.00396756,0.010801735,0.007644305,0.020855658,0.014790068,0.032737568,-0.037390623,0.003032795,0.010801735,-0.01553788,-0.014790068,0.019526213,-0.017947499,-0.007893575,-0.011964999,-0.00614868,-0.005857864,-0.032072846,-0.025924165,0.001163264,-0.013294443,-0.01553788,0.016701145,-0.013460624,-0.001111332,0.00760276,0.01553788,-0.033734649,0.048192356,-0.003282066,0.031906664,0.002845842,0.003240521,0.017116595,-0.01827986,0.006896493,-0.00760276,-0.009680017,-0.02459472,-0.020689478,-0.053510133,0.00614868,-0.010552464,-0.032405205,-0.0307434,0.025093261,0.003635199,-0.008101301,-0.00606559,-0.007436579,0.00606559,-0.012962082,0.026921248,0.009098385,0.046530552,-0.011632638,0.032571387,-0.033900831,0.009846197,0.002866614,0.032903746,0.008973749,0.012712811,0.040049512,0.013626805,-0.026256526,-0.031408124,0.036227357,0.011964999,-0.006024044,-0.001848759,0.015704062,-0.021188019,-0.035064094,-0.013377533,-0.009721561,-0.01553788,0.008766023,0.005400868,0.004507647,-0.018362951,-0.026588887,-0.00913993,-0.025591804,0.035894997,0.021935832,-0.031906664,-0.000602404,0.026422706,-0.006397951,0.006647222,0.0093892,0.020606387,0.00913993,0.015620971,-0.024096178,0.00063616,-0.006564131,0.01238045,-0.013709894,0.000563456,-0.009887742,0.016618054,-0.003323611,0.000451803,0.001609874,0.008682934,0.025259443,0.020024756,-0.027253609,0.010884825,0.028250692,-0.054839578,0.033568468,-0.004902326,0.003053567,0.020274026,-0.015704062,-0.00614868,-0.063813329,0.002482322,0.009763107,-0.001609874,-0.012214269,0.020107845,0.001921462,0.018695312,-0.004923099,0.007270399,-0.023763817,0.005234687,0.003406701,0.002565412,0.007104218,0.000841289,0.016202603,0.01827986,-0.031075761,-0.035562634,-0.025259443,-0.007021128,0.000641353,-0.033069927,0.010718645,0.005650138,0.024927082,-0.002658889,0.00380138,0.009929287,-0.004258377,-0.039717149,-0.022434372,0.025425622,0.00198378,0.006356406,0.017615138,-0.032072846,0.046862911,-0.026921248,0.005940954,0.021603471,-0.002253824,0.002825069,-0.030411039,-0.003115885,0.023597637,-0.004320694,-0.007852031,0.018030589,-0.008724478,-0.005733229,0.032903746,0.013876075,0.015454791,-0.023597637,0.005151597,-0.035396457,0.02176965,-0.012463541,0.025591804,0.014540797,-0.027918331,0.004154514,0.008724478,0.016036423,-0.015870241,0.005400868,-0.017365867,-0.044868745,-0.000485559,0.020357117,-0.00760276,-0.023265276,-0.012048089,0.008433662,0.018362951,-0.006979583,0.0307434,0.008392117,0.027087428,-0.019360034,0.016119512,0.02127111,0.010801735,0.00299125,0.002949705,0.012463541,-0.000025966,0.015953332,0.029413955,0.020024756,0.003780607,0.022102011,-0.031740483,0.01553788,0.010386284,0.028749233,-0.010884825,0.008682934,-0.003531337,-0.05517194,-0.019360034,-0.009347656,-0.002025325,0.003261293,-0.025425622,-0.01553788,-0.000251867,0.014291527,0.012546631,0.035728816,-0.007062673,-0.006605676,0.000384293,-0.005047734,-0.032571387,-0.021188019,-0.02127111,-0.016036423,0.008475208,-0.004009106,0.014291527,-0.008101301,0.004424557,-0.038221523,-0.019360034,0.015039339,-0.015454791,-0.029580137,0.035728816,0.004466102,-0.000778971,-0.005068507,-0.017781317,0.00477769,0.001838372,0.030244859,0.01213118,-0.022932915,-0.005359322,0.037390623,0.005899409,0.002046098,0.037889164,0.016701145,0.010303194,0.02127111,-0.009513836,-0.022268193,-0.005650138,-0.00388447,0.016534964,-0.023265276,-0.00054528,0.004819236,0.004715373,-0.001178843,-0.051183607,-0.00614868,-0.010552464,-0.002741979,-0.009181475,0.023597637,0.019193852,0.017199686,-0.036393538,-0.00243039,-0.015870241,-0.014706978,-0.00145408,0.016368784,-0.011632638,-0.014623888,-0.01229736,-0.01553788,0.040880412,0.023929998,-0.014623888,0.002648502,0.031906664,-0.033734649,-0.026755067,0.002783524,0.005359322,0.009970833,0.001412535,0.016950415,0.016285693,-0.006730312,-0.02459472,0.050851244,-0.001827986,-0.020855658,0.020938748,0.004071423,-0.021603471,-0.007852031,-0.023929998,-0.029912498,-0.003365156,0.017365867,-0.010427829,-0.011715728,0.014956249,0.011383367,0.032405205,-0.028583053,-0.017448956,0.018446039,0.017615138,0.035728816,-0.010095468,-0.00254464,0.010012378,0.028250692,-0.020855658,-0.002305755,-0.001002276,-0.014125346,-0.007021128,-0.028583053,-0.045533467,-0.02758597,-0.020440206,0.001350217,0.010053922,0.020689478,-0.017615138,0.026422706,0.040880412,0.012463541,-0.010718645,-0.014706978,0.068134025,0.038720068,0.047859997,-0.012546631,0.015704062,-0.002087643,-0.010303194,0.014790068,0.018612221,0.007395034,-0.014790068,-0.017864408,-0.005068507,-0.054507218,0.004902326,-0.004050651,0.021603471,0.019775484,-0.024262359,-0.012795902,0.021935832,-0.004009106,-0.039717149,0.037556801,-0.016701145,-0.025757983,0.005483958,-0.005110051,-0.021935832,-0.003406701,0.010594009,0.015787151,-0.049854163,0.007727395,-0.008392117,-0.017199686,0.009970833,-0.008849114,-0.013876075,-0.0059825,-0.015870241,-0.007104218,0.028250692,-0.029081594,0.026921248,0.00299125,-0.017781317,0.042542219,0.018196769,0.052845411,-0.004819236,-0.014125346,0.02459472,-0.011715728,0.015787151,-0.005774774,0.004902326,-0.004964644,-0.02758597,-0.013959166,-0.033568468,-0.027918331,-0.017698228,0.003489791,-0.020024756,-0.021603471,0.019360034,0.028084511,-0.002503094,-0.018861491,-0.002295369,0.050851244,-0.020689478,-0.000459593,-0.026090344,0.002783524,-0.005899409,-0.026921248,-0.0093892,-0.004112968,0.031574301,0.003926015,-0.032903746,-0.046198189,-0.019027673,-0.00913993,0.030411039,-0.019443123,0.001963008,-0.005193142,0.010884825,-0.02127111,-0.025259443,0.032737568,0.00089322,0.003282066,0.001713737,-0.006439496,0.016867325,-0.031574301,0.031075761,-0.009970833,0.022600554,-0.023597637,-0.014956249,0.004009106,0.00198378,0.026588887,-0.023431456,-0.023763817,-0.013294443,-0.029746316,0.001381376,-0.042874578,-0.00913993,0.014873158,0.016202603,0.012878992,-0.006024044,0.009638472,0.010552464,-0.017033506,-0.027087428,0.044536386,-0.038055345,0.001329444,-0.019609304,0.023597637,-0.043206941,0.040049512,0.017615138,0.046862911,0.02127111,0.013294443,-0.039550968,-0.018861491,-0.019609304,-0.033734649,0.00623177,-0.017199686,0.041212775,-0.017781317,-0.024262359,0.054507218,-0.009721561,0.005816319,-0.00206687,-0.008766023,0.017365867,-0.000737426,0.018362951,-0.023597637,-0.019110762,0.021935832,0.041545134,-0.020357117,-0.017615138,0.044868745,-0.018030589,-0.032405205,-0.050186522,-0.014540797,0.005213914,-0.006688767,0.047527634,0.040714234];
  2. Load the file into mongosh to use the embeddings in your query:

    load(/<path-to-file>/query-embeddings.js');
  3. Run the following query:

    1db.embedded_movies.aggregate([
    2 {
    3 "$vectorSearch": {
    4 "index": "vector_index",
    5 "path": "plot_embedding_voyage_3_large",
    6 "queryVector": TIME_TRAVEL_EMBEDDING,
    7 "numCandidates": 150,
    8 "limit": 10,
    9 "quantization": "scalar"
    10 }
    11 },
    12 {
    13 "$project": {
    14 "_id": 0,
    15 "plot": 1,
    16 "title": 1,
    17 "score": { $meta: "vectorSearchScore" }
    18 }
    19 }
    20])
    1[
    2 {
    3 plot: 'At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.',
    4 title: 'About Time',
    5 score: 0.7710106372833252
    6 },
    7 {
    8 plot: 'A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.',
    9 title: 'Retroactive',
    10 score: 0.760047972202301
    11 },
    12 {
    13 plot: 'A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...',
    14 title: 'A.P.E.X.',
    15 score: 0.7576861381530762
    16 },
    17 {
    18 plot: 'An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.',
    19 title: 'Timecop',
    20 score: 0.7576561570167542
    21 },
    22 {
    23 plot: 'After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.',
    24 title: 'Back to the Future Part II',
    25 score: 0.7521393895149231
    26 },
    27 {
    28 plot: 'A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.',
    29 title: 'Thrill Seekers',
    30 score: 0.7509932518005371
    31 },
    32 {
    33 plot: 'Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...',
    34 title: 'Timerider: The Adventure of Lyle Swann',
    35 score: 0.7502642869949341
    36 },
    37 {
    38 plot: 'Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.',
    39 title: 'The Time Machine',
    40 score: 0.7502503395080566
    41 },
    42 {
    43 plot: 'A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.',
    44 title: "The Time Traveler's Wife",
    45 score: 0.749496340751648
    46 },
    47 {
    48 plot: 'A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.',
    49 title: 'The Final Countdown',
    50 score: 0.7469133734703064
    51 }
    52]

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

  1. Save the following embeddings in a file named query-embeddings.js:

    KIDS_ADVENTURE_EMBEDDING=[-0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558];
  2. Load the file into mongosh to use the embeddings in your query:

    load('/<path-to-file>/query-embeddings.js');
  3. Run the following query:

    1db.embedded_movies.aggregate([
    2 {
    3 "$vectorSearch": {
    4 "index": "vector_index",
    5 "path": "plot_embedding_voyage_3_large",
    6 "filter": {
    7 "$and": [
    8 {
    9 "year": { "$gt": 1955 }
    10 },
    11 {
    12 "year": { "$lt": 1975 }
    13 }
    14 ]
    15 },
    16 "queryVector": KIDS_ADVENTURE_EMBEDDING,
    17 "numCandidates": 150,
    18 "limit": 10
    19 }
    20 },
    21 {
    22 "$project": {
    23 "_id": 0,
    24 "title": 1,
    25 "plot": 1,
    26 "year": 1,
    27 "score": { $meta: "vectorSearchScore" }
    28 }
    29 }
    30])
    1[
    2 {
    3 plot: 'A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.',
    4 title: 'Chitty Chitty Bang Bang',
    5 year: 1968,
    6 score: 0.7489712834358215
    7 },
    8 {
    9 plot: 'A pilot, stranded in the desert, meets a little boy who is a prince on a planet.',
    10 title: 'The Little Prince',
    11 year: 1974,
    12 score: 0.7346078753471375
    13 },
    14 {
    15 plot: 'In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.',
    16 title: 'In Search of the Castaways',
    17 year: 1962,
    18 score: 0.7281590104103088
    19 },
    20 {
    21 plot: 'An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.',
    22 title: 'Bedknobs and Broomsticks',
    23 year: 1971,
    24 score: 0.720349133014679
    25 },
    26 {
    27 plot: "A young boys' coming of age tale set in a strange, carnivalesque village becomes the recreation of a memory that the director has twenty years later.",
    28 title: 'Pastoral Hide and Seek',
    29 year: 1974,
    30 score: 0.7195663452148438
    31 },
    32 {
    33 plot: 'In this magical tale about the boy who refuses to grow up, Peter Pan and his mischievous fairy sidekick Tinkerbell visit the nursery of Wendy, Michael, and John Darling. With a sprinkling ...',
    34 title: 'Peter Pan',
    35 year: 1960,
    36 score: 0.7195032238960266
    37 },
    38 {
    39 plot: 'When his cattle drivers abandon him for the gold fields, rancher Wil Andersen is forced to take on a collection of young boys as his drivers in order to get his herd to market in time to ...',
    40 title: 'The Cowboys',
    41 year: 1972,
    42 score: 0.717952311038971
    43 },
    44 {
    45 plot: 'When a princess is shrunken by an evil wizard, Sinbad must undertake a quest to an island of monsters to cure her and prevent a war.',
    46 title: 'The 7th Voyage of Sinbad',
    47 year: 1958,
    48 score: 0.7148033380508423
    49 },
    50 {
    51 plot: 'A red balloon with a life of its own follows a little boy around the streets of Paris.',
    52 title: 'The Red Balloon',
    53 year: 1956,
    54 score: 0.7147064805030823
    55 },
    56 {
    57 plot: 'This True Life Fantasy follows and shows how the life of a female squirrel, Perri, in the forest is filled with danger and fraught with peril. When not fleeing her natural enemy, the Marten...',
    58 title: 'Perri',
    59 year: 1957,
    60 score: 0.712087094783783
    61 }
    62]

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

1using MongoDB.Bson;
2using MongoDB.Bson.Serialization.Attributes;
3using MongoDB.Bson.Serialization.Conventions;
4using MongoDB.Driver;
5
6public class vectorSearchBasicQuery
7{
8 // define connection to your Atlas cluster
9 private const string MongoConnectionString = "<connection-string>";
10
11 public static void Main(string[] args){
12 var camelCaseConvention = new ConventionPack { new CamelCaseElementNameConvention() };
13 ConventionRegistry.Register("CamelCase", camelCaseConvention, type => true);
14
15 // connect to your Atlas cluster
16 var mongoClient = new MongoClient(MongoConnectionString);
17
18 // define namespace
19 var moviesDatabase = mongoClient.GetDatabase("sample_mflix");
20 var moviesCollection = moviesDatabase.GetCollection<EmbeddedMovie>("embedded_movies");
21
22 // define vector embeddings to search
23 var vector = new[] {-0.034731735,0.008558298,-0.0153717,-0.029912498,0.011549547,0.010261648,-0.011964999,-0.023265276,0.010303194,-0.006896493,-0.00054528,0.003926015,-0.025757983,0.027419789,0.001199616,-0.036227357,-0.005297005,0.021935832,0.010303194,-0.019193852,0.025093261,-0.040049512,-0.033900831,-0.011466458,-0.01827986,-0.0153717,0.023265276,0.007727395,0.000114249,0.005317777,-0.043871664,-0.02127111,-0.019609304,0.016368784,-0.004756918,0.003552109,0.006522586,-0.005400868,-0.015620971,-0.034565553,-0.018695312,-0.023099095,0.050851244,-0.034731735,0.004819236,0.022268193,-0.095719993,0.05517194,-0.046198189,-0.036393538,0.007187308,-0.02459472,-0.036725901,0.009472291,0.019027673,0.020938748,-0.011051006,0.027087428,0.04586583,-0.022600554,-0.05517194,0.044204023,0.01213118,0.047859997,-0.03938479,0.002928932,0.002056484,0.019443123,-0.028583053,0.013543714,0.022932915,0.011632638,0.004923099,0.000389486,0.020024756,-0.024096178,-0.022766734,0.011217186,-0.003198975,0.007104218,-0.047195274,-0.013377533,0.013294443,0.024096178,-0.056501385,-0.026755067,-0.008433662,-0.001911076,0.007976666,-0.008101301,-0.014042255,0.008641388,-0.02176965,0.010012378,-0.000607598,-0.024927082,0.024927082,-0.018612221,-0.001184036,0.005567048,0.001324251,-0.019526213,-0.023597637,0.060489718,-0.010178559,-0.019609304,0.004112968,-0.011217186,-0.031574301,-0.008766023,0.005483958,-0.061819162,-0.023431456,-0.040714234,0.015039339,0.026422706,0.016202603,0.004653055,0.041046593,-0.018030589,0.040381871,-0.002638116,0.013045172,0.004216831,0.005650138,0.027419789,0.003926015,-0.028749233,0.004798463,-0.030244859,0.063813329,0.007145763,-0.017448956,0.025591804,-0.045201108,0.010718645,0.002804297,0.014291527,0.04586583,-0.015205519,-0.021603471,-0.035230275,0.00760276,0.033236109,0.016534964,-0.043206941,-0.003115885,-0.026256526,0.005940954,0.016534964,0.024262359,-0.001630647,0.028084511,-0.012795902,0.007270399,0.001381376,-0.009763107,-0.006896493,0.008433662,-0.019360034,0.000386889,0.030411039,0.025591804,0.010469374,0.037722982,-0.001147684,-0.005400868,0.052845411,-0.052513052,0.00768585,-0.004299921,0.00922302,0.011881908,0.012962082,-0.068798743,0.003593654,0.020938748,-0.013792985,-0.034565553,-0.007519669,-0.04021569,-0.020689478,0.006273315,0.046862911,0.006107135,0.002638116,-0.013792985,-0.005400868,-0.020274026,0.007644305,-0.010801735,0.026422706,0.043871664,0.003780607,0.010261648,-0.064145692,0.011881908,-0.009056839,0.009347656,-0.02459472,0.026422706,0.033236109,0.041212775,0.019027673,-0.00315743,0.004424557,0.020689478,-0.0153717,-0.015205519,-0.034897912,0.020274026,0.016867325,0.040714234,-0.022766734,-0.010967916,0.026256526,0.007062673,-0.015953332,-0.007727395,0.031574301,-0.002887387,-0.00614868,0.004569965,0.019027673,0.012878992,0.011798819,0.004258377,-0.019193852,-0.021437289,-0.021603471,0.000301202,-0.051183607,-0.004985416,-0.030078677,0.012629721,0.065142773,-0.031740483,-0.021104928,-0.03938479,-0.003365156,-0.016036423,0.036393538,0.009804652,-0.018612221,0.060489718,-0.003697517,0.000547876,0.063480966,0.02758597,0.010053922,-0.003655972,-0.001485239,0.018362951,0.021104928,-0.003905243,0.019443123,-0.002658889,-0.00380138,-0.013626805,0.035894997,0.035396457,-0.005691683,0.002762751,0.012878992,-0.009596926,-0.009970833,-0.015953332,0.022434372,0.00614868,-0.021188019,0.001557943,-0.020190936,0.009763107,0.017448956,0.006730312,0.005567048,0.019692395,-0.00218112,-0.016867325,0.006854947,0.007976666,0.019193852,0.040880412,0.007353489,-0.02127111,-0.031906664,-0.026755067,-0.017947499,0.040381871,0.042209856,0.00913993,-0.0307434,-0.017781317,-0.015039339,0.03057722,0.017532047,0.0187784,-0.060822077,0.002928932,-0.026422706,-0.005899409,0.039717149,0.026588887,-0.000971118,0.004923099,-0.013626805,0.0187784,-0.031408124,-0.000695881,0.050851244,-0.014457707,-0.007311944,-0.001293092,-0.002139574,-0.019276943,0.00290816,0.019360034,-0.017781317,0.002160347,0.016618054,-0.006522586,0.011798819,0.029247776,-0.02775215,0.010344739,-0.018362951,-0.036725901,-0.015870241,0.015704062,-0.012463541,0.02459472,-0.024096178,0.001152877,-0.031408124,0.025425622,0.027087428,0.00922302,0.034565553,0.015704062,-0.020689478,-0.00517237,-0.014706978,-0.001589101,0.026090344,0.014956249,0.011715728,0.004299921,-0.00913993,0.022434372,-0.03705826,0.048524719,-0.030411039,0.008433662,0.017033506,-0.000511525,-0.031408124,0.005940954,-0.012962082,-0.031574301,0.017448956,0.010178559,-0.011383367,-0.020107845,-0.005151597,0.006647222,0.013128263,0.007145763,0.008059756,-0.045201108,-0.004943871,0.015787151,-0.045201108,-0.020772567,-0.020274026,0.028250692,-0.024262359,-0.004424557,0.009804652,0.000472576,-0.005691683,0.001443693,-0.013294443,0.001412535,0.013211353,-0.01213118,-0.002118802,0.017781317,-0.007353489,-0.031075761,-0.004923099,0.011383367,-0.004486875,-0.010178559,0.016618054,0.014457707,0.023763817,-0.02459472,-0.00388447,0.012546631,-0.007519669,0.015704062,-0.014291527,0.009680017,-0.035562634,0.023763817,0.053510133,-0.0555043,-0.003572882,0.022102011,0.021603471,-0.017282777,-0.001474852,-0.043539301,0.007810486,-0.025757983,-0.005400868,0.029912498,-0.00760276,0.014125346,0.030909581,-0.03340229,-0.009680017,0.018030589,0.008849114,0.03057722,0.019775484,0.014125346,0.031906664,-0.03057722,-0.027087428,-0.023597637,-0.022434372,-0.012878992,0.016285693,-0.021603471,-0.029746316,0.029746316,0.020357117,0.006314861,-0.001158071,0.028749233,-0.045201108,0.011383367,0.011134096,-0.021437289,-0.035728816,0.001827986,0.008267482,-0.057498466,0.01213118,-0.01213118,-0.040548053,0.010718645,0.004798463,-0.004881553,-0.019526213,-0.008558298,0.0059825,-0.000262254,-0.017615138,0.005193142,0.019692395,-0.00198378,-0.002845842,0.012546631,0.006107135,-0.008225936,-0.008890659,0.015870241,0.00517237,0.002596571,-0.010427829,-0.019110762,0.024262359,0.012048089,-0.032405205,0.006522586,0.013211353,0.013211353,-0.038221523,-0.007727395,-0.008267482,-0.019276943,0.001474852,0.031408124,-0.035562634,0.017532047,-0.023431456,-0.015454791,-0.011383367,0.016534964,-0.02176965,0.008682934,0.027253609,0.020190936,-0.0247609,-0.007311944,0.009555381,-0.01852913,-0.011632638,0.011549547,0.027419789,-0.034067012,-0.01229736,0.0307434,0.003946788,0.0046946,0.037722982,0.03057722,-0.010427829,0.002284982,0.033236109,0.030078677,-0.013377533,0.007395034,-0.012048089,0.040714234,-0.028749233,-0.000102565,-0.0059825,-0.041046593,0.017698228,-0.006356406,0.003178203,0.009056839,0.023099095,0.00606559,0.011881908,-0.02127111,-0.001126912,-0.027087428,0.011134096,0.001204809,-0.017033506,0.011051006,-0.014374617,0.017864408,0.023431456,-0.002077257,-0.026755067,-0.043871664,0.025757983,-0.006190225,0.001152877,0.011798819,-0.024262359,0.006564131,-0.070128188,-0.004362239,0.012962082,-0.013626805,-0.001402148,-0.012214269,0.011217186,-0.015953332,0.015787151,0.011134096,0.027253609,0.024262359,-0.048192356,0.009970833,0.018944582,-0.00517237,0.021935832,0.02775215,0.003406701,-0.010884825,0.075113602,-0.015953332,0.007727395,0.026755067,-0.006190225,-0.012712811,0.013377533,0.005940954,-0.008309027,0.02459472,0.002316141,-0.022434372,-0.012712811,0.03057722,-0.015787151,0.026755067,-0.001069787,0.03988333,-0.003697517,0.039550968,-0.019027673,-0.0059825,-0.00031029,-0.012546631,-0.003614427,0.007478124,0.005525503,0.032571387,-0.011798819,-0.011466458,-0.00606559,-0.011798819,0.018446039,0.007976666,0.018944582,-0.02176965,0.026588887,-0.006273315,-0.012463541,-0.007395034,0.012048089,-0.029247776,0.015454791,-0.007145763,0.006481041,-0.015620971,-0.00388447,-0.025757983,-0.001651419,-0.032903746,-0.005068507,0.03938479,0.003926015,0.004715373,0.022600554,-0.012546631,0.022932915,0.007810486,0.040714234,0.019941665,0.013543714,0.003406701,0.010884825,-0.03988333,0.042209856,-0.022766734,0.027419789,-0.029580137,0.043206941,0.022932915,0.021104928,-0.056833744,0.005193142,0.036061179,-0.012878992,0.008516753,-0.02758597,-0.030244859,-0.011798819,0.001111332,-0.014125346,-0.014125346,0.019027673,0.029081594,0.018861491,0.013626805,0.06846638,0.023099095,0.041378956,0.001599488,-0.028749233,0.017781317,0.016285693,0.021603471,-0.018113678,0.011300277,-0.032239024,0.022434372,-0.02459472,-0.013626805,0.005483958,0.013460624,-0.031574301,-0.015620971,0.016451873,0.014790068,-0.008849114,0.011134096,0.00461151,0.015122429,0.036227357,0.00206687,0.000877641,0.022102011,-0.028250692,0.022600554,-0.026422706,0.004029878,-0.032072846,0.017116595,0.010884825,0.019609304,0.00614868,0.005733229,0.016119512,0.002866614,-0.014540797,0.012463541,-0.003905243,0.003759835,-0.000485559,-0.022766734,-0.016285693,0.037722982,0.009513836,0.001506011,0.011964999,0.004029878,0.019941665,-0.000965924,0.002129188,0.015205519,0.071125269,0.022932915,0.005940954,-0.00044661,0.010220103,-0.03423319,-0.016285693,-0.016867325,-0.000659529,-0.008018211,-0.011383367,0.000016634,0.004071423,-0.029413955,0.019941665,-0.00913993,-0.024096178,0.010635555,0.010594009,0.001547556,0.036227357,-0.030078677,0.020772567,0.022268193,-0.014125346,0.008766023,-0.012962082,-0.007187308,0.017033506,-0.007187308,-0.015205519,-0.005608593,0.044536386,-0.001235968,0.007852031,0.001599488,0.005857864,-0.005940954,-0.010510919,-0.005567048,0.006730312,0.016285693,-0.010801735,-0.024428539,0.015122429,-0.02176965,0.01528861,-0.007436579,0.00226421,-0.004715373,0.004507647,0.004341467,0.005525503,-0.031075761,-0.005899409,0.037556801,0.014873158,-0.000342747,0.009970833,-0.019443123,0.023597637,-0.012048089,-0.025259443,0.006024044,-0.01827986,0.010012378,0.016784234,0.013211353,-0.005400868,-0.024428539,-0.02176965,-0.035230275,0.009347656,0.028583053,-0.015704062,-0.017781317,0.00226421,0.001199616,-0.003385928,0.008267482,0.002326528,0.022434372,-0.020190936,-0.015787151,0.000789358,0.031241942,0.011300277,0.001506011,-0.023265276,-0.010967916,0.009056839,0.011300277,-0.030244859,0.007478124,0.001111332,-0.035894997,0.0153717,0.002700434,0.021104928,0.010884825,-0.003344383,0.00768585,0.010386284,0.00452842,-0.014706978,0.028084511,0.013377533,0.014873158,0.046862911,-0.015454791,0.021188019,0.013959166,0.012629721,0.025924165,-0.018695312,-0.00922302,-0.0093892,0.007727395,0.036892079,0.007228854,-0.01229736,0.029247776,-0.004943871,-0.027253609,-0.008433662,0.043206941,0.002825069,0.028583053,-0.023431456,0.034897912,-0.041545134,-0.016534964,0.003053567,-0.012712811,0.002741979,-0.007187308,-0.025093261,-0.045201108,-0.004424557,-0.016618054,-0.008890659,0.008018211,-0.05184833,-0.019526213,-0.013377533,-0.010469374,0.030244859,-0.005068507,0.051183607,0.005483958,-0.006024044,0.035064094,-0.011134096,0.014956249,0.002284982,0.001724123,-0.01229736,0.012629721,0.010261648,0.014540797,0.048857078,-0.029580137,-0.024927082,-0.008350573,-0.03988333,0.000939959,0.013543714,0.013626805,-0.021437289,-0.012962082,0.006771857,0.013709894,-0.0059825,0.035396457,-0.006439496,-0.029580137,0.0046946,0.019609304,-0.007270399,0.014291527,-0.015620971,0.00118923,-0.00760276,-0.017199686,0.023265276,0.026588887,-0.030078677,-0.016701145,-0.025757983,0.004964644,0.026588887,0.043206941,0.011051006,-0.009846197,0.028915415,0.031574301,0.023763817,0.009264565,-0.008433662,-0.035064094,-0.000579035,-0.0247609,0.014125346,0.016618054,0.028749233,-0.052513052,-0.016867325,-0.01238045,0.002741979,0.013709894,0.010718645,0.013626805,0.009596926,-0.004403784,-0.02758597,-0.000945152,0.000420645,0.003759835,0.012546631,-0.011881908,0.008392117,0.012795902,0.005483958,-0.009763107,0.006397951,-0.010801735,0.012795902,-0.03938479,0.005733229,0.005733229,-0.000433627,0.015454791,0.002357686,-0.006564131,0.030244859,-0.024428539,0.016036423,0.014291527,-0.004964644,0.029413955,0.040381871,0.012629721,-0.033568468,-0.026422706,-0.037889164,-0.034399372,-0.03423319,0.021935832,0.004133741,-0.014623888,-0.013543714,-0.05517194,0.004736145,0.006314861,0.00006037,0.006356406,0.003323611,-0.010344739,0.007062673,0.005899409,-0.00623177,-0.001973394,-0.0555043,0.011881908,0.001350217,-0.033069927,-0.026921248,0.022268193,0.028583053,-0.021021837,0.010884825,0.019692395,-0.005442413,0.031574301,-0.014956249,0.01238045,-0.006356406,0.006273315,-0.003095113,-0.014540797,-0.02176965,0.005006189,-0.002658889,0.042542219,-0.02176965,0.017199686,-0.016701145,-0.001599488,0.016950415,-0.021188019,0.017864408,0.023763817,-0.000669915,0.025093261,0.021104928,0.008807569,0.037390623,-0.025591804,-0.003178203,-0.001319058,0.020523297,0.005255459,0.019276943,-0.00226421,0.00760276,-0.057166107,-0.006896493,-0.034067012,0.043871664,0.038221523,0.008101301,0.03988333,0.015870241,0.000955538,-0.004299921,-0.002928932,-0.002118802,-0.020523297,-0.001168457,-0.011134096,-0.000685495,0.003323611,0.011549547,0.034565553,0.029247776,-0.029746316,0.005213914,0.019110762,-0.003302838,0.026422706,0.028915415,-0.036227357,0.033236109,0.038387705,-0.035230275,0.004071423,-0.021935832,0.002928932,0.000976311,0.000527104,-0.006854947,-0.003822153,-0.001199616,0.019858574,-0.002762751,0.039052427,-0.008641388,0.032239024,-0.002295369,0.035396457,0.044536386,-0.029413955,0.025093261,-0.03423319,-0.016867325,-0.008849114,0.008433662,-0.004486875,0.017033506,0.006730312,-0.008599843,-0.008225936,-0.024428539,0.006564131,-0.007561215,-0.032072846,-0.019941665,0.035396457,0.019276943,0.010261648,0.005857864,0.032239024,-0.044204023,-0.018944582,0.002409618,0.032903746,0.05517194,-0.03655972,0.007976666,0.030909581,-0.023929998,0.016368784,0.01528861,-0.00768585,0.02176965,0.013626805,-0.02459472,0.04021569,-0.032737568,0.006854947,-0.011383367,0.014873158,-0.02176965,0.00243039,0.0093892,0.0093892,-0.029580137,0.019858574,0.01827986,0.024428539,0.017864408,-0.028250692,-0.001111332,0.056169022,0.007478124,-0.010718645,0.041046593,-0.015704062,0.034731735,0.002523867,-0.032571387,0.004341467,-0.023597637,-0.011881908,-0.035562634,0.006688767,0.007810486,-0.012712811,0.022600554,0.03057722,0.022600554,0.010552464,0.0307434,-0.009638472,0.02176965,-0.018030589,0.024262359,-0.036227357,-0.020772567,0.001641033,-0.022932915,-0.014623888,0.018362951,0.002575798,0.006190225,-0.011051006,0.021021837,0.019110762,0.02127111,-0.028583053,-0.052180689,-0.014291527,-0.010552464,0.036393538,0.042542219,-0.04586583,-0.001869531,0.008350573,-0.008516753,-0.020772567,0.000294711,0.015704062,-0.014457707,-0.020772567,0.008766023,-0.026588887,-0.004736145,-0.028084511,-0.007519669,0.010552464,-0.016534964,0.006190225,0.012962082,-0.016618054,0.012546631,0.02459472,0.022932915,0.020440206,-0.027918331,-0.008059756,0.020689478,-0.014623888,-0.011466458,-0.006896493,-0.020024756,-0.031408124,0.021603471,0.007270399,-0.03057722,0.008350573,-0.021437289,0.00072704,-0.043871664,0.006314861,-0.017199686,0.02176965,0.024262359,-0.020357117,-0.000542683,-0.005213914,0.001963008,-0.00064395,-0.022434372,0.022102011,-0.006688767,-0.028583053,0.002191506,-0.005047734,0.002368073,0.014956249,0.023929998,-0.003302838,-0.032239024,0.022268193,-0.013377533,-0.010801735,0.003676744,0.009015295,-0.039550968,0.010884825,-0.033568468,0.013709894,-0.029413955,-0.006356406,-0.020274026,0.023597637,0.030909581,0.02176965,0.016285693,0.045533467,-0.024096178,-0.030909581,-0.026422706,0.002783524,-0.010594009,0.004362239,-0.070792913,0.009472291,-0.022102011,0.011134096,-0.017448956,-0.011549547,-0.056833744,0.00082571,0.026588887,-0.013709894,0.002575798,0.02176965,-0.000568649,-0.007270399,0.004279149,-0.042874578,-0.026588887,0.016784234,0.036725901,-0.028915415,-0.009513836,0.017448956,0.002035712,-0.007228854,0.011383367,0.011134096,0.028915415,0.0153717,-0.027087428,0.043871664,-0.005089279,0.006314861,0.014291527,-0.003240521,0.025924165,-0.001230775,-0.015454791,-0.012629721,0.031740483,-0.039717149,-0.031075761,0.006605676,-0.008641388,-0.032239024,0.037722982,-0.03705826,-0.024096178,0.001911076,0.018196769,-0.007353489,-0.011300277,-0.029081594,0.004590738,-0.018030589,-0.026588887,0.010261648,0.038221523,0.008392117,-0.01213118,0.018362951,-0.034731735,-0.017781317,-0.011632638,0.005255459,0.000851675,0.014208436,-0.000039922,-0.000228498,0.014790068,0.00913993,0.0004544,-0.011798819,-0.020440206,0.005899409,0.008350573,0.006314861,0.040548053,0.003427474,-0.010801735,0.008599843,0.002586185,-0.041212775,-0.016368784,0.020024756,0.000965924,-0.021021837,-0.008475208,0.0307434,0.00760276,0.003614427,0.003489791,-0.025924165,0.000799744,0.013460624,-0.020440206,0.048857078,0.004320694,-0.048857078,0.015039339,-0.029580137,0.025924165,0.018861491,-0.014706978,0.000576439,-0.031241942,0.0307434,0.0153717,0.014706978,0.028084511,-0.01238045,-0.031241942,0.018196769,-0.034897912,0.008142847,0.010718645,0.00922302,0.047859997,-0.00072704,-0.010427829,0.007104218,0.026256526,0.012214269,-0.013377533,-0.05184833,0.005276232,0.021935832,-0.007021128,0.009804652,0.007893575,0.024096178,-0.002357686,0.033900831,-0.031740483,0.034565553,-0.036892079,-0.015454791,0.030411039,0.010552464,-0.022268193,-0.001391762,-0.008184392,-0.008558298,0.008475208,-0.009929287,0.010427829,0.041378956,-0.009555381,-0.008724478,-0.039052427,0.034731735,-0.014291527,0.023099095,0.029081594,0.007519669,0.010967916,-0.008142847,0.006190225,-0.031075761,0.033734649,-0.001672192,0.047859997,-0.022434372,-0.007395034,0.01213118,0.056169022,0.002762751,-0.029413955,-0.000763392,-0.015787151,0.010801735,0.008142847,0.029912498,-0.0018176,0.033236109,-0.046198189,-0.002492708,-0.006730312,0.008807569,-0.03655972,0.009430746,-0.053842496,-0.060489718,0.046862911,0.002783524,-0.0187784,0.000571246,0.00760276,0.002482322,0.001319058,-0.014291527,0.001464466,-0.011632638,-0.012463541,-0.004902326,0.000841289,0.006688767,0.030244859,0.018944582,0.000532297,-0.015620971,0.007104218,0.005608593,0.002035712,-0.023763817,0.003032795,0.010594009,-0.023597637,-0.042376038,-0.005255459,0.001199616,-0.0247609,-0.007893575,-0.011632638,0.013045172,-0.005691683,-0.007104218,0.027419789,-0.004320694,-0.005525503,-0.026090344,0.031408124,-0.012795902,-0.007062673,0.000939959,0.000030185,0.004175286,0.014291527,0.033236109,-0.038720068,0.074116521,-0.019692395,0.001589101,0.013792985,-0.056169022,-0.028749233,-0.001599488,0.004175286,0.014790068,0.00162026,-0.007519669,-0.041378956,0.016534964,-0.003572882,-0.002575798,-0.019526213,-0.00922302,-0.033900831,-0.042043675,-0.014208436,0.010178559,0.017698228,0.032239024,0.00913993,0.009264565,-0.012463541,-0.005857864,-0.015870241,0.004486875,0.018861491,-0.000176567,-0.029912498,0.016784234,0.012546631,0.051183607,0.023597637,0.032903746,0.0153717,-0.013377533,-0.000016634,-0.061486799,-0.034565553,0.016119512,0.00380138,-0.003863698,0.004362239,-0.017532047,-0.002762751,0.000102565,-0.021437289,0.029247776,-0.010718645,-0.015870241,-0.016285693,0.010220103,-0.000373906,0.012962082,0.010137013,-0.007228854,0.02127111,-0.029247776,0.018113678,0.009181475,0.002233051,0.014374617,-0.00396756,0.010801735,0.007644305,0.020855658,0.014790068,0.032737568,-0.037390623,0.003032795,0.010801735,-0.01553788,-0.014790068,0.019526213,-0.017947499,-0.007893575,-0.011964999,-0.00614868,-0.005857864,-0.032072846,-0.025924165,0.001163264,-0.013294443,-0.01553788,0.016701145,-0.013460624,-0.001111332,0.00760276,0.01553788,-0.033734649,0.048192356,-0.003282066,0.031906664,0.002845842,0.003240521,0.017116595,-0.01827986,0.006896493,-0.00760276,-0.009680017,-0.02459472,-0.020689478,-0.053510133,0.00614868,-0.010552464,-0.032405205,-0.0307434,0.025093261,0.003635199,-0.008101301,-0.00606559,-0.007436579,0.00606559,-0.012962082,0.026921248,0.009098385,0.046530552,-0.011632638,0.032571387,-0.033900831,0.009846197,0.002866614,0.032903746,0.008973749,0.012712811,0.040049512,0.013626805,-0.026256526,-0.031408124,0.036227357,0.011964999,-0.006024044,-0.001848759,0.015704062,-0.021188019,-0.035064094,-0.013377533,-0.009721561,-0.01553788,0.008766023,0.005400868,0.004507647,-0.018362951,-0.026588887,-0.00913993,-0.025591804,0.035894997,0.021935832,-0.031906664,-0.000602404,0.026422706,-0.006397951,0.006647222,0.0093892,0.020606387,0.00913993,0.015620971,-0.024096178,0.00063616,-0.006564131,0.01238045,-0.013709894,0.000563456,-0.009887742,0.016618054,-0.003323611,0.000451803,0.001609874,0.008682934,0.025259443,0.020024756,-0.027253609,0.010884825,0.028250692,-0.054839578,0.033568468,-0.004902326,0.003053567,0.020274026,-0.015704062,-0.00614868,-0.063813329,0.002482322,0.009763107,-0.001609874,-0.012214269,0.020107845,0.001921462,0.018695312,-0.004923099,0.007270399,-0.023763817,0.005234687,0.003406701,0.002565412,0.007104218,0.000841289,0.016202603,0.01827986,-0.031075761,-0.035562634,-0.025259443,-0.007021128,0.000641353,-0.033069927,0.010718645,0.005650138,0.024927082,-0.002658889,0.00380138,0.009929287,-0.004258377,-0.039717149,-0.022434372,0.025425622,0.00198378,0.006356406,0.017615138,-0.032072846,0.046862911,-0.026921248,0.005940954,0.021603471,-0.002253824,0.002825069,-0.030411039,-0.003115885,0.023597637,-0.004320694,-0.007852031,0.018030589,-0.008724478,-0.005733229,0.032903746,0.013876075,0.015454791,-0.023597637,0.005151597,-0.035396457,0.02176965,-0.012463541,0.025591804,0.014540797,-0.027918331,0.004154514,0.008724478,0.016036423,-0.015870241,0.005400868,-0.017365867,-0.044868745,-0.000485559,0.020357117,-0.00760276,-0.023265276,-0.012048089,0.008433662,0.018362951,-0.006979583,0.0307434,0.008392117,0.027087428,-0.019360034,0.016119512,0.02127111,0.010801735,0.00299125,0.002949705,0.012463541,-0.000025966,0.015953332,0.029413955,0.020024756,0.003780607,0.022102011,-0.031740483,0.01553788,0.010386284,0.028749233,-0.010884825,0.008682934,-0.003531337,-0.05517194,-0.019360034,-0.009347656,-0.002025325,0.003261293,-0.025425622,-0.01553788,-0.000251867,0.014291527,0.012546631,0.035728816,-0.007062673,-0.006605676,0.000384293,-0.005047734,-0.032571387,-0.021188019,-0.02127111,-0.016036423,0.008475208,-0.004009106,0.014291527,-0.008101301,0.004424557,-0.038221523,-0.019360034,0.015039339,-0.015454791,-0.029580137,0.035728816,0.004466102,-0.000778971,-0.005068507,-0.017781317,0.00477769,0.001838372,0.030244859,0.01213118,-0.022932915,-0.005359322,0.037390623,0.005899409,0.002046098,0.037889164,0.016701145,0.010303194,0.02127111,-0.009513836,-0.022268193,-0.005650138,-0.00388447,0.016534964,-0.023265276,-0.00054528,0.004819236,0.004715373,-0.001178843,-0.051183607,-0.00614868,-0.010552464,-0.002741979,-0.009181475,0.023597637,0.019193852,0.017199686,-0.036393538,-0.00243039,-0.015870241,-0.014706978,-0.00145408,0.016368784,-0.011632638,-0.014623888,-0.01229736,-0.01553788,0.040880412,0.023929998,-0.014623888,0.002648502,0.031906664,-0.033734649,-0.026755067,0.002783524,0.005359322,0.009970833,0.001412535,0.016950415,0.016285693,-0.006730312,-0.02459472,0.050851244,-0.001827986,-0.020855658,0.020938748,0.004071423,-0.021603471,-0.007852031,-0.023929998,-0.029912498,-0.003365156,0.017365867,-0.010427829,-0.011715728,0.014956249,0.011383367,0.032405205,-0.028583053,-0.017448956,0.018446039,0.017615138,0.035728816,-0.010095468,-0.00254464,0.010012378,0.028250692,-0.020855658,-0.002305755,-0.001002276,-0.014125346,-0.007021128,-0.028583053,-0.045533467,-0.02758597,-0.020440206,0.001350217,0.010053922,0.020689478,-0.017615138,0.026422706,0.040880412,0.012463541,-0.010718645,-0.014706978,0.068134025,0.038720068,0.047859997,-0.012546631,0.015704062,-0.002087643,-0.010303194,0.014790068,0.018612221,0.007395034,-0.014790068,-0.017864408,-0.005068507,-0.054507218,0.004902326,-0.004050651,0.021603471,0.019775484,-0.024262359,-0.012795902,0.021935832,-0.004009106,-0.039717149,0.037556801,-0.016701145,-0.025757983,0.005483958,-0.005110051,-0.021935832,-0.003406701,0.010594009,0.015787151,-0.049854163,0.007727395,-0.008392117,-0.017199686,0.009970833,-0.008849114,-0.013876075,-0.0059825,-0.015870241,-0.007104218,0.028250692,-0.029081594,0.026921248,0.00299125,-0.017781317,0.042542219,0.018196769,0.052845411,-0.004819236,-0.014125346,0.02459472,-0.011715728,0.015787151,-0.005774774,0.004902326,-0.004964644,-0.02758597,-0.013959166,-0.033568468,-0.027918331,-0.017698228,0.003489791,-0.020024756,-0.021603471,0.019360034,0.028084511,-0.002503094,-0.018861491,-0.002295369,0.050851244,-0.020689478,-0.000459593,-0.026090344,0.002783524,-0.005899409,-0.026921248,-0.0093892,-0.004112968,0.031574301,0.003926015,-0.032903746,-0.046198189,-0.019027673,-0.00913993,0.030411039,-0.019443123,0.001963008,-0.005193142,0.010884825,-0.02127111,-0.025259443,0.032737568,0.00089322,0.003282066,0.001713737,-0.006439496,0.016867325,-0.031574301,0.031075761,-0.009970833,0.022600554,-0.023597637,-0.014956249,0.004009106,0.00198378,0.026588887,-0.023431456,-0.023763817,-0.013294443,-0.029746316,0.001381376,-0.042874578,-0.00913993,0.014873158,0.016202603,0.012878992,-0.006024044,0.009638472,0.010552464,-0.017033506,-0.027087428,0.044536386,-0.038055345,0.001329444,-0.019609304,0.023597637,-0.043206941,0.040049512,0.017615138,0.046862911,0.02127111,0.013294443,-0.039550968,-0.018861491,-0.019609304,-0.033734649,0.00623177,-0.017199686,0.041212775,-0.017781317,-0.024262359,0.054507218,-0.009721561,0.005816319,-0.00206687,-0.008766023,0.017365867,-0.000737426,0.018362951,-0.023597637,-0.019110762,0.021935832,0.041545134,-0.020357117,-0.017615138,0.044868745,-0.018030589,-0.032405205,-0.050186522,-0.014540797,0.005213914,-0.006688767,0.047527634,0.040714234};
24 var options = new VectorSearchOptions<EmbeddedMovie>() {
25 IndexName = "vector_index",
26 NumberOfCandidates = 150
27 };
28
29 // run query
30 var results = moviesCollection.Aggregate()
31 .VectorSearch(movie => movie.Embedding, vector, 10, options)
32 .Project(Builders<EmbeddedMovie>.Projection
33 .Include(movie => movie.Title)
34 .Include(movie => movie.Plot)
35 .Exclude(movie => movie.Id)
36 .MetaVectorSearchScore(movie => movie.Score))
37 .ToList();
38
39 // print results
40 foreach (var movie in results)
41 {
42 Console.WriteLine(movie.ToJson());
43 }
44 }
45}
46
47[BsonIgnoreExtraElements]
48public class EmbeddedMovie
49{
50 [BsonIgnoreIfDefault]
51 public ObjectId Id { get; set; }
52 public string? Title { get; set; }
53 public string? Plot { get; set; }
54 [BsonElement("plot_embedding_voyage_3_large")]
55 public double[]? Embedding { get; set; }
56 public double Score { get; set; }
57}
1{ "plot" : "At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.", "title" : "About Time", "score" : 0.7710106372833252 }
2{ "plot" : "A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.", "title" : "Retroactive", "score" : 0.76004797220230103 }
3{ "plot" : "A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...", "title" : "A.P.E.X.", "score" : 0.75768613815307617 }
4{ "plot" : "An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.", "title" : "Timecop", "score" : 0.75765615701675415 }
5{ "plot" : "After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.", "title" : "Back to the Future Part II", "score" : 0.7521393895149231 }
6{ "plot" : "A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.", "title" : "Thrill Seekers", "score" : 0.75099325180053711 }
7{ "plot" : "Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...", "title" : "Timerider: The Adventure of Lyle Swann", "score" : 0.75026428699493408 }
8{ "plot" : "Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.", "title" : "The Time Machine", "score" : 0.75025033950805664 }
9{ "plot" : "A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.", "title" : "The Time Traveler's Wife", "score" : 0.74949634075164795 }
10{ "plot" : "A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.", "title" : "The Final Countdown", "score" : 0.7469133734703064 }

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

1using System.Reflection.Emit;
2using MongoDB.Bson;
3using MongoDB.Bson.Serialization.Attributes;
4using MongoDB.Bson.Serialization.Conventions;
5using MongoDB.Driver;
6using MongoDB.Driver.Search;
7
8public class vectorSearchFilterQuery
9{
10 // define connection to your Atlas cluster
11 private const string MongoConnectionString = "<connection-string>";
12
13 public static void Main(string[] args){
14 var camelCaseConvention = new ConventionPack { new CamelCaseElementNameConvention() };
15 ConventionRegistry.Register("CamelCase", camelCaseConvention, type => true);
16
17 // connect to your Atlas cluster
18 var mongoClient = new MongoClient(MongoConnectionString);
19
20 // define namespace
21 var moviesDatabase = mongoClient.GetDatabase("sample_mflix");
22 var moviesCollection = moviesDatabase.GetCollection<EmbeddedMovie>("embedded_movies");
23
24 // define vector embeddings to search
25 var vector = new[] {-0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558};
26 // define filter
27 var yearGtFilter = Builders<EmbeddedMovie>.Filter.Gt("year", 1955);
28 var yearLtFilter = Builders<EmbeddedMovie>.Filter.Lt("year", 1975);
29 // define options
30 var options = new VectorSearchOptions<EmbeddedMovie>() {
31 Filter = Builders<EmbeddedMovie>.Filter.And(yearGtFilter, yearLtFilter),
32 IndexName = "vector_index",
33 NumberOfCandidates = 150
34 };
35
36 // run query
37 var results = moviesCollection.Aggregate()
38 .VectorSearch(m => m.Embedding, vector, 10, options)
39 .Project(Builders<EmbeddedMovie>.Projection
40 .Include(m => m.Title)
41 .Include(movie => movie.Plot)
42 .Include(movie => movie.Year)
43 .MetaVectorSearchScore(m => m.Score))
44 .ToList();
45
46 // print results
47 foreach (var movie in results)
48 {
49 Console.WriteLine(movie.ToJson());
50 }
51 }
52}
53
54[BsonIgnoreExtraElements]
55public class EmbeddedMovie
56{
57 [BsonIgnoreIfDefault]
58 public string Title { get; set; }
59 public string Plot { get; set; }
60 public int Year { get; set; }
61 [BsonElement("plot_embedding_voyage_3_large")]
62 public double[] Embedding { get; set; }
63 public double Score { get; set; }
64}
1{ "_id" : { "$oid" : "573a1396f29313caabce34d3" }, "plot" : "A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.", "title" : "Chitty Chitty Bang Bang", "year" : 1968, "score" : 0.74897128343582153 }
2{ "_id" : { "$oid" : "573a1396f29313caabce5648" }, "plot" : "A pilot, stranded in the desert, meets a little boy who is a prince on a planet.", "title" : "The Little Prince", "year" : 1974, "score" : 0.73460787534713745 }
3{ "_id" : { "$oid" : "573a1395f29313caabce1b8d" }, "plot" : "In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.", "title" : "In Search of the Castaways", "year" : 1962, "score" : 0.72815901041030884 }
4{ "_id" : { "$oid" : "573a1396f29313caabce43e1" }, "plot" : "An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.", "title" : "Bedknobs and Broomsticks", "year" : 1971, "score" : 0.72034913301467896 }
5{ "_id" : { "$oid" : "573a1396f29313caabce54e6" }, "plot" : "A young boys' coming of age tale set in a strange, carnivalesque village becomes the recreation of a memory that the director has twenty years later.", "title" : "Pastoral Hide and Seek", "year" : 1974, "score" : 0.71956634521484375 }
6{ "_id" : { "$oid" : "573a1395f29313caabce143b" }, "plot" : "In this magical tale about the boy who refuses to grow up, Peter Pan and his mischievous fairy sidekick Tinkerbell visit the nursery of Wendy, Michael, and John Darling. With a sprinkling ...", "title" : "Peter Pan", "year" : 1960, "score" : 0.71950322389602661 }
7{ "_id" : { "$oid" : "573a1396f29313caabce49bf" }, "plot" : "When his cattle drivers abandon him for the gold fields, rancher Wil Andersen is forced to take on a collection of young boys as his drivers in order to get his herd to market in time to ...", "title" : "The Cowboys", "year" : 1972, "score" : 0.71795231103897095 }
8{ "_id" : { "$oid" : "573a1394f29313caabce0951" }, "plot" : "When a princess is shrunken by an evil wizard, Sinbad must undertake a quest to an island of monsters to cure her and prevent a war.", "title" : "The 7th Voyage of Sinbad", "year" : 1958, "score" : 0.71480333805084229 }
9{ "_id" : { "$oid" : "573a1394f29313caabce000d" }, "plot" : "A red balloon with a life of its own follows a little boy around the streets of Paris.", "title" : "The Red Balloon", "year" : 1956, "score" : 0.71470648050308228 }
10{ "_id" : { "$oid" : "573a1394f29313caabce074d" }, "plot" : "This True Life Fantasy follows and shows how the life of a female squirrel, Perri, in the forest is filled with danger and fraught with peril. When not fleeing her natural enemy, the Marten...", "title" : "Perri", "year" : 1957, "score" : 0.71208715438842773 }

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

1package main
2
3import (
4 "context"
5 "fmt"
6 "log"
7
8 "go.mongodb.org/mongo-driver/v2/bson"
9 "go.mongodb.org/mongo-driver/v2/mongo"
10 "go.mongodb.org/mongo-driver/v2/mongo/options"
11)
12
13func main() {
14 ctx := context.Background()
15
16 // Replace the placeholder with your Atlas connection string
17 const uri = "<connection-string>"
18
19 // Connect to your Atlas cluster
20 clientOptions := options.Client().ApplyURI(uri)
21 client, err := mongo.Connect(clientOptions)
22 if err != nil {
23 log.Fatalf("failed to connect to the server: %v", err)
24 }
25 defer func() { _ = client.Disconnect(ctx) }()
26
27 // Set the namespace
28 coll := client.Database("sample_mflix").Collection("embedded_movies")
29
30 queryVector := [2048]float64{
31 -0.034731735,0.008558298,-0.0153717,-0.029912498,0.011549547,0.010261648,-0.011964999,-0.023265276,0.010303194,-0.006896493,-0.00054528,0.003926015,-0.025757983,0.027419789,0.001199616,-0.036227357,-0.005297005,0.021935832,0.010303194,-0.019193852,0.025093261,-0.040049512,-0.033900831,-0.011466458,-0.01827986,-0.0153717,0.023265276,0.007727395,0.000114249,0.005317777,-0.043871664,-0.02127111,-0.019609304,0.016368784,-0.004756918,0.003552109,0.006522586,-0.005400868,-0.015620971,-0.034565553,-0.018695312,-0.023099095,0.050851244,-0.034731735,0.004819236,0.022268193,-0.095719993,0.05517194,-0.046198189,-0.036393538,0.007187308,-0.02459472,-0.036725901,0.009472291,0.019027673,0.020938748,-0.011051006,0.027087428,0.04586583,-0.022600554,-0.05517194,0.044204023,0.01213118,0.047859997,-0.03938479,0.002928932,0.002056484,0.019443123,-0.028583053,0.013543714,0.022932915,0.011632638,0.004923099,0.000389486,0.020024756,-0.024096178,-0.022766734,0.011217186,-0.003198975,0.007104218,-0.047195274,-0.013377533,0.013294443,0.024096178,-0.056501385,-0.026755067,-0.008433662,-0.001911076,0.007976666,-0.008101301,-0.014042255,0.008641388,-0.02176965,0.010012378,-0.000607598,-0.024927082,0.024927082,-0.018612221,-0.001184036,0.005567048,0.001324251,-0.019526213,-0.023597637,0.060489718,-0.010178559,-0.019609304,0.004112968,-0.011217186,-0.031574301,-0.008766023,0.005483958,-0.061819162,-0.023431456,-0.040714234,0.015039339,0.026422706,0.016202603,0.004653055,0.041046593,-0.018030589,0.040381871,-0.002638116,0.013045172,0.004216831,0.005650138,0.027419789,0.003926015,-0.028749233,0.004798463,-0.030244859,0.063813329,0.007145763,-0.017448956,0.025591804,-0.045201108,0.010718645,0.002804297,0.014291527,0.04586583,-0.015205519,-0.021603471,-0.035230275,0.00760276,0.033236109,0.016534964,-0.043206941,-0.003115885,-0.026256526,0.005940954,0.016534964,0.024262359,-0.001630647,0.028084511,-0.012795902,0.007270399,0.001381376,-0.009763107,-0.006896493,0.008433662,-0.019360034,0.000386889,0.030411039,0.025591804,0.010469374,0.037722982,-0.001147684,-0.005400868,0.052845411,-0.052513052,0.00768585,-0.004299921,0.00922302,0.011881908,0.012962082,-0.068798743,0.003593654,0.020938748,-0.013792985,-0.034565553,-0.007519669,-0.04021569,-0.020689478,0.006273315,0.046862911,0.006107135,0.002638116,-0.013792985,-0.005400868,-0.020274026,0.007644305,-0.010801735,0.026422706,0.043871664,0.003780607,0.010261648,-0.064145692,0.011881908,-0.009056839,0.009347656,-0.02459472,0.026422706,0.033236109,0.041212775,0.019027673,-0.00315743,0.004424557,0.020689478,-0.0153717,-0.015205519,-0.034897912,0.020274026,0.016867325,0.040714234,-0.022766734,-0.010967916,0.026256526,0.007062673,-0.015953332,-0.007727395,0.031574301,-0.002887387,-0.00614868,0.004569965,0.019027673,0.012878992,0.011798819,0.004258377,-0.019193852,-0.021437289,-0.021603471,0.000301202,-0.051183607,-0.004985416,-0.030078677,0.012629721,0.065142773,-0.031740483,-0.021104928,-0.03938479,-0.003365156,-0.016036423,0.036393538,0.009804652,-0.018612221,0.060489718,-0.003697517,0.000547876,0.063480966,0.02758597,0.010053922,-0.003655972,-0.001485239,0.018362951,0.021104928,-0.003905243,0.019443123,-0.002658889,-0.00380138,-0.013626805,0.035894997,0.035396457,-0.005691683,0.002762751,0.012878992,-0.009596926,-0.009970833,-0.015953332,0.022434372,0.00614868,-0.021188019,0.001557943,-0.020190936,0.009763107,0.017448956,0.006730312,0.005567048,0.019692395,-0.00218112,-0.016867325,0.006854947,0.007976666,0.019193852,0.040880412,0.007353489,-0.02127111,-0.031906664,-0.026755067,-0.017947499,0.040381871,0.042209856,0.00913993,-0.0307434,-0.017781317,-0.015039339,0.03057722,0.017532047,0.0187784,-0.060822077,0.002928932,-0.026422706,-0.005899409,0.039717149,0.026588887,-0.000971118,0.004923099,-0.013626805,0.0187784,-0.031408124,-0.000695881,0.050851244,-0.014457707,-0.007311944,-0.001293092,-0.002139574,-0.019276943,0.00290816,0.019360034,-0.017781317,0.002160347,0.016618054,-0.006522586,0.011798819,0.029247776,-0.02775215,0.010344739,-0.018362951,-0.036725901,-0.015870241,0.015704062,-0.012463541,0.02459472,-0.024096178,0.001152877,-0.031408124,0.025425622,0.027087428,0.00922302,0.034565553,0.015704062,-0.020689478,-0.00517237,-0.014706978,-0.001589101,0.026090344,0.014956249,0.011715728,0.004299921,-0.00913993,0.022434372,-0.03705826,0.048524719,-0.030411039,0.008433662,0.017033506,-0.000511525,-0.031408124,0.005940954,-0.012962082,-0.031574301,0.017448956,0.010178559,-0.011383367,-0.020107845,-0.005151597,0.006647222,0.013128263,0.007145763,0.008059756,-0.045201108,-0.004943871,0.015787151,-0.045201108,-0.020772567,-0.020274026,0.028250692,-0.024262359,-0.004424557,0.009804652,0.000472576,-0.005691683,0.001443693,-0.013294443,0.001412535,0.013211353,-0.01213118,-0.002118802,0.017781317,-0.007353489,-0.031075761,-0.004923099,0.011383367,-0.004486875,-0.010178559,0.016618054,0.014457707,0.023763817,-0.02459472,-0.00388447,0.012546631,-0.007519669,0.015704062,-0.014291527,0.009680017,-0.035562634,0.023763817,0.053510133,-0.0555043,-0.003572882,0.022102011,0.021603471,-0.017282777,-0.001474852,-0.043539301,0.007810486,-0.025757983,-0.005400868,0.029912498,-0.00760276,0.014125346,0.030909581,-0.03340229,-0.009680017,0.018030589,0.008849114,0.03057722,0.019775484,0.014125346,0.031906664,-0.03057722,-0.027087428,-0.023597637,-0.022434372,-0.012878992,0.016285693,-0.021603471,-0.029746316,0.029746316,0.020357117,0.006314861,-0.001158071,0.028749233,-0.045201108,0.011383367,0.011134096,-0.021437289,-0.035728816,0.001827986,0.008267482,-0.057498466,0.01213118,-0.01213118,-0.040548053,0.010718645,0.004798463,-0.004881553,-0.019526213,-0.008558298,0.0059825,-0.000262254,-0.017615138,0.005193142,0.019692395,-0.00198378,-0.002845842,0.012546631,0.006107135,-0.008225936,-0.008890659,0.015870241,0.00517237,0.002596571,-0.010427829,-0.019110762,0.024262359,0.012048089,-0.032405205,0.006522586,0.013211353,0.013211353,-0.038221523,-0.007727395,-0.008267482,-0.019276943,0.001474852,0.031408124,-0.035562634,0.017532047,-0.023431456,-0.015454791,-0.011383367,0.016534964,-0.02176965,0.008682934,0.027253609,0.020190936,-0.0247609,-0.007311944,0.009555381,-0.01852913,-0.011632638,0.011549547,0.027419789,-0.034067012,-0.01229736,0.0307434,0.003946788,0.0046946,0.037722982,0.03057722,-0.010427829,0.002284982,0.033236109,0.030078677,-0.013377533,0.007395034,-0.012048089,0.040714234,-0.028749233,-0.000102565,-0.0059825,-0.041046593,0.017698228,-0.006356406,0.003178203,0.009056839,0.023099095,0.00606559,0.011881908,-0.02127111,-0.001126912,-0.027087428,0.011134096,0.001204809,-0.017033506,0.011051006,-0.014374617,0.017864408,0.023431456,-0.002077257,-0.026755067,-0.043871664,0.025757983,-0.006190225,0.001152877,0.011798819,-0.024262359,0.006564131,-0.070128188,-0.004362239,0.012962082,-0.013626805,-0.001402148,-0.012214269,0.011217186,-0.015953332,0.015787151,0.011134096,0.027253609,0.024262359,-0.048192356,0.009970833,0.018944582,-0.00517237,0.021935832,0.02775215,0.003406701,-0.010884825,0.075113602,-0.015953332,0.007727395,0.026755067,-0.006190225,-0.012712811,0.013377533,0.005940954,-0.008309027,0.02459472,0.002316141,-0.022434372,-0.012712811,0.03057722,-0.015787151,0.026755067,-0.001069787,0.03988333,-0.003697517,0.039550968,-0.019027673,-0.0059825,-0.00031029,-0.012546631,-0.003614427,0.007478124,0.005525503,0.032571387,-0.011798819,-0.011466458,-0.00606559,-0.011798819,0.018446039,0.007976666,0.018944582,-0.02176965,0.026588887,-0.006273315,-0.012463541,-0.007395034,0.012048089,-0.029247776,0.015454791,-0.007145763,0.006481041,-0.015620971,-0.00388447,-0.025757983,-0.001651419,-0.032903746,-0.005068507,0.03938479,0.003926015,0.004715373,0.022600554,-0.012546631,0.022932915,0.007810486,0.040714234,0.019941665,0.013543714,0.003406701,0.010884825,-0.03988333,0.042209856,-0.022766734,0.027419789,-0.029580137,0.043206941,0.022932915,0.021104928,-0.056833744,0.005193142,0.036061179,-0.012878992,0.008516753,-0.02758597,-0.030244859,-0.011798819,0.001111332,-0.014125346,-0.014125346,0.019027673,0.029081594,0.018861491,0.013626805,0.06846638,0.023099095,0.041378956,0.001599488,-0.028749233,0.017781317,0.016285693,0.021603471,-0.018113678,0.011300277,-0.032239024,0.022434372,-0.02459472,-0.013626805,0.005483958,0.013460624,-0.031574301,-0.015620971,0.016451873,0.014790068,-0.008849114,0.011134096,0.00461151,0.015122429,0.036227357,0.00206687,0.000877641,0.022102011,-0.028250692,0.022600554,-0.026422706,0.004029878,-0.032072846,0.017116595,0.010884825,0.019609304,0.00614868,0.005733229,0.016119512,0.002866614,-0.014540797,0.012463541,-0.003905243,0.003759835,-0.000485559,-0.022766734,-0.016285693,0.037722982,0.009513836,0.001506011,0.011964999,0.004029878,0.019941665,-0.000965924,0.002129188,0.015205519,0.071125269,0.022932915,0.005940954,-0.00044661,0.010220103,-0.03423319,-0.016285693,-0.016867325,-0.000659529,-0.008018211,-0.011383367,0.000016634,0.004071423,-0.029413955,0.019941665,-0.00913993,-0.024096178,0.010635555,0.010594009,0.001547556,0.036227357,-0.030078677,0.020772567,0.022268193,-0.014125346,0.008766023,-0.012962082,-0.007187308,0.017033506,-0.007187308,-0.015205519,-0.005608593,0.044536386,-0.001235968,0.007852031,0.001599488,0.005857864,-0.005940954,-0.010510919,-0.005567048,0.006730312,0.016285693,-0.010801735,-0.024428539,0.015122429,-0.02176965,0.01528861,-0.007436579,0.00226421,-0.004715373,0.004507647,0.004341467,0.005525503,-0.031075761,-0.005899409,0.037556801,0.014873158,-0.000342747,0.009970833,-0.019443123,0.023597637,-0.012048089,-0.025259443,0.006024044,-0.01827986,0.010012378,0.016784234,0.013211353,-0.005400868,-0.024428539,-0.02176965,-0.035230275,0.009347656,0.028583053,-0.015704062,-0.017781317,0.00226421,0.001199616,-0.003385928,0.008267482,0.002326528,0.022434372,-0.020190936,-0.015787151,0.000789358,0.031241942,0.011300277,0.001506011,-0.023265276,-0.010967916,0.009056839,0.011300277,-0.030244859,0.007478124,0.001111332,-0.035894997,0.0153717,0.002700434,0.021104928,0.010884825,-0.003344383,0.00768585,0.010386284,0.00452842,-0.014706978,0.028084511,0.013377533,0.014873158,0.046862911,-0.015454791,0.021188019,0.013959166,0.012629721,0.025924165,-0.018695312,-0.00922302,-0.0093892,0.007727395,0.036892079,0.007228854,-0.01229736,0.029247776,-0.004943871,-0.027253609,-0.008433662,0.043206941,0.002825069,0.028583053,-0.023431456,0.034897912,-0.041545134,-0.016534964,0.003053567,-0.012712811,0.002741979,-0.007187308,-0.025093261,-0.045201108,-0.004424557,-0.016618054,-0.008890659,0.008018211,-0.05184833,-0.019526213,-0.013377533,-0.010469374,0.030244859,-0.005068507,0.051183607,0.005483958,-0.006024044,0.035064094,-0.011134096,0.014956249,0.002284982,0.001724123,-0.01229736,0.012629721,0.010261648,0.014540797,0.048857078,-0.029580137,-0.024927082,-0.008350573,-0.03988333,0.000939959,0.013543714,0.013626805,-0.021437289,-0.012962082,0.006771857,0.013709894,-0.0059825,0.035396457,-0.006439496,-0.029580137,0.0046946,0.019609304,-0.007270399,0.014291527,-0.015620971,0.00118923,-0.00760276,-0.017199686,0.023265276,0.026588887,-0.030078677,-0.016701145,-0.025757983,0.004964644,0.026588887,0.043206941,0.011051006,-0.009846197,0.028915415,0.031574301,0.023763817,0.009264565,-0.008433662,-0.035064094,-0.000579035,-0.0247609,0.014125346,0.016618054,0.028749233,-0.052513052,-0.016867325,-0.01238045,0.002741979,0.013709894,0.010718645,0.013626805,0.009596926,-0.004403784,-0.02758597,-0.000945152,0.000420645,0.003759835,0.012546631,-0.011881908,0.008392117,0.012795902,0.005483958,-0.009763107,0.006397951,-0.010801735,0.012795902,-0.03938479,0.005733229,0.005733229,-0.000433627,0.015454791,0.002357686,-0.006564131,0.030244859,-0.024428539,0.016036423,0.014291527,-0.004964644,0.029413955,0.040381871,0.012629721,-0.033568468,-0.026422706,-0.037889164,-0.034399372,-0.03423319,0.021935832,0.004133741,-0.014623888,-0.013543714,-0.05517194,0.004736145,0.006314861,0.00006037,0.006356406,0.003323611,-0.010344739,0.007062673,0.005899409,-0.00623177,-0.001973394,-0.0555043,0.011881908,0.001350217,-0.033069927,-0.026921248,0.022268193,0.028583053,-0.021021837,0.010884825,0.019692395,-0.005442413,0.031574301,-0.014956249,0.01238045,-0.006356406,0.006273315,-0.003095113,-0.014540797,-0.02176965,0.005006189,-0.002658889,0.042542219,-0.02176965,0.017199686,-0.016701145,-0.001599488,0.016950415,-0.021188019,0.017864408,0.023763817,-0.000669915,0.025093261,0.021104928,0.008807569,0.037390623,-0.025591804,-0.003178203,-0.001319058,0.020523297,0.005255459,0.019276943,-0.00226421,0.00760276,-0.057166107,-0.006896493,-0.034067012,0.043871664,0.038221523,0.008101301,0.03988333,0.015870241,0.000955538,-0.004299921,-0.002928932,-0.002118802,-0.020523297,-0.001168457,-0.011134096,-0.000685495,0.003323611,0.011549547,0.034565553,0.029247776,-0.029746316,0.005213914,0.019110762,-0.003302838,0.026422706,0.028915415,-0.036227357,0.033236109,0.038387705,-0.035230275,0.004071423,-0.021935832,0.002928932,0.000976311,0.000527104,-0.006854947,-0.003822153,-0.001199616,0.019858574,-0.002762751,0.039052427,-0.008641388,0.032239024,-0.002295369,0.035396457,0.044536386,-0.029413955,0.025093261,-0.03423319,-0.016867325,-0.008849114,0.008433662,-0.004486875,0.017033506,0.006730312,-0.008599843,-0.008225936,-0.024428539,0.006564131,-0.007561215,-0.032072846,-0.019941665,0.035396457,0.019276943,0.010261648,0.005857864,0.032239024,-0.044204023,-0.018944582,0.002409618,0.032903746,0.05517194,-0.03655972,0.007976666,0.030909581,-0.023929998,0.016368784,0.01528861,-0.00768585,0.02176965,0.013626805,-0.02459472,0.04021569,-0.032737568,0.006854947,-0.011383367,0.014873158,-0.02176965,0.00243039,0.0093892,0.0093892,-0.029580137,0.019858574,0.01827986,0.024428539,0.017864408,-0.028250692,-0.001111332,0.056169022,0.007478124,-0.010718645,0.041046593,-0.015704062,0.034731735,0.002523867,-0.032571387,0.004341467,-0.023597637,-0.011881908,-0.035562634,0.006688767,0.007810486,-0.012712811,0.022600554,0.03057722,0.022600554,0.010552464,0.0307434,-0.009638472,0.02176965,-0.018030589,0.024262359,-0.036227357,-0.020772567,0.001641033,-0.022932915,-0.014623888,0.018362951,0.002575798,0.006190225,-0.011051006,0.021021837,0.019110762,0.02127111,-0.028583053,-0.052180689,-0.014291527,-0.010552464,0.036393538,0.042542219,-0.04586583,-0.001869531,0.008350573,-0.008516753,-0.020772567,0.000294711,0.015704062,-0.014457707,-0.020772567,0.008766023,-0.026588887,-0.004736145,-0.028084511,-0.007519669,0.010552464,-0.016534964,0.006190225,0.012962082,-0.016618054,0.012546631,0.02459472,0.022932915,0.020440206,-0.027918331,-0.008059756,0.020689478,-0.014623888,-0.011466458,-0.006896493,-0.020024756,-0.031408124,0.021603471,0.007270399,-0.03057722,0.008350573,-0.021437289,0.00072704,-0.043871664,0.006314861,-0.017199686,0.02176965,0.024262359,-0.020357117,-0.000542683,-0.005213914,0.001963008,-0.00064395,-0.022434372,0.022102011,-0.006688767,-0.028583053,0.002191506,-0.005047734,0.002368073,0.014956249,0.023929998,-0.003302838,-0.032239024,0.022268193,-0.013377533,-0.010801735,0.003676744,0.009015295,-0.039550968,0.010884825,-0.033568468,0.013709894,-0.029413955,-0.006356406,-0.020274026,0.023597637,0.030909581,0.02176965,0.016285693,0.045533467,-0.024096178,-0.030909581,-0.026422706,0.002783524,-0.010594009,0.004362239,-0.070792913,0.009472291,-0.022102011,0.011134096,-0.017448956,-0.011549547,-0.056833744,0.00082571,0.026588887,-0.013709894,0.002575798,0.02176965,-0.000568649,-0.007270399,0.004279149,-0.042874578,-0.026588887,0.016784234,0.036725901,-0.028915415,-0.009513836,0.017448956,0.002035712,-0.007228854,0.011383367,0.011134096,0.028915415,0.0153717,-0.027087428,0.043871664,-0.005089279,0.006314861,0.014291527,-0.003240521,0.025924165,-0.001230775,-0.015454791,-0.012629721,0.031740483,-0.039717149,-0.031075761,0.006605676,-0.008641388,-0.032239024,0.037722982,-0.03705826,-0.024096178,0.001911076,0.018196769,-0.007353489,-0.011300277,-0.029081594,0.004590738,-0.018030589,-0.026588887,0.010261648,0.038221523,0.008392117,-0.01213118,0.018362951,-0.034731735,-0.017781317,-0.011632638,0.005255459,0.000851675,0.014208436,-0.000039922,-0.000228498,0.014790068,0.00913993,0.0004544,-0.011798819,-0.020440206,0.005899409,0.008350573,0.006314861,0.040548053,0.003427474,-0.010801735,0.008599843,0.002586185,-0.041212775,-0.016368784,0.020024756,0.000965924,-0.021021837,-0.008475208,0.0307434,0.00760276,0.003614427,0.003489791,-0.025924165,0.000799744,0.013460624,-0.020440206,0.048857078,0.004320694,-0.048857078,0.015039339,-0.029580137,0.025924165,0.018861491,-0.014706978,0.000576439,-0.031241942,0.0307434,0.0153717,0.014706978,0.028084511,-0.01238045,-0.031241942,0.018196769,-0.034897912,0.008142847,0.010718645,0.00922302,0.047859997,-0.00072704,-0.010427829,0.007104218,0.026256526,0.012214269,-0.013377533,-0.05184833,0.005276232,0.021935832,-0.007021128,0.009804652,0.007893575,0.024096178,-0.002357686,0.033900831,-0.031740483,0.034565553,-0.036892079,-0.015454791,0.030411039,0.010552464,-0.022268193,-0.001391762,-0.008184392,-0.008558298,0.008475208,-0.009929287,0.010427829,0.041378956,-0.009555381,-0.008724478,-0.039052427,0.034731735,-0.014291527,0.023099095,0.029081594,0.007519669,0.010967916,-0.008142847,0.006190225,-0.031075761,0.033734649,-0.001672192,0.047859997,-0.022434372,-0.007395034,0.01213118,0.056169022,0.002762751,-0.029413955,-0.000763392,-0.015787151,0.010801735,0.008142847,0.029912498,-0.0018176,0.033236109,-0.046198189,-0.002492708,-0.006730312,0.008807569,-0.03655972,0.009430746,-0.053842496,-0.060489718,0.046862911,0.002783524,-0.0187784,0.000571246,0.00760276,0.002482322,0.001319058,-0.014291527,0.001464466,-0.011632638,-0.012463541,-0.004902326,0.000841289,0.006688767,0.030244859,0.018944582,0.000532297,-0.015620971,0.007104218,0.005608593,0.002035712,-0.023763817,0.003032795,0.010594009,-0.023597637,-0.042376038,-0.005255459,0.001199616,-0.0247609,-0.007893575,-0.011632638,0.013045172,-0.005691683,-0.007104218,0.027419789,-0.004320694,-0.005525503,-0.026090344,0.031408124,-0.012795902,-0.007062673,0.000939959,0.000030185,0.004175286,0.014291527,0.033236109,-0.038720068,0.074116521,-0.019692395,0.001589101,0.013792985,-0.056169022,-0.028749233,-0.001599488,0.004175286,0.014790068,0.00162026,-0.007519669,-0.041378956,0.016534964,-0.003572882,-0.002575798,-0.019526213,-0.00922302,-0.033900831,-0.042043675,-0.014208436,0.010178559,0.017698228,0.032239024,0.00913993,0.009264565,-0.012463541,-0.005857864,-0.015870241,0.004486875,0.018861491,-0.000176567,-0.029912498,0.016784234,0.012546631,0.051183607,0.023597637,0.032903746,0.0153717,-0.013377533,-0.000016634,-0.061486799,-0.034565553,0.016119512,0.00380138,-0.003863698,0.004362239,-0.017532047,-0.002762751,0.000102565,-0.021437289,0.029247776,-0.010718645,-0.015870241,-0.016285693,0.010220103,-0.000373906,0.012962082,0.010137013,-0.007228854,0.02127111,-0.029247776,0.018113678,0.009181475,0.002233051,0.014374617,-0.00396756,0.010801735,0.007644305,0.020855658,0.014790068,0.032737568,-0.037390623,0.003032795,0.010801735,-0.01553788,-0.014790068,0.019526213,-0.017947499,-0.007893575,-0.011964999,-0.00614868,-0.005857864,-0.032072846,-0.025924165,0.001163264,-0.013294443,-0.01553788,0.016701145,-0.013460624,-0.001111332,0.00760276,0.01553788,-0.033734649,0.048192356,-0.003282066,0.031906664,0.002845842,0.003240521,0.017116595,-0.01827986,0.006896493,-0.00760276,-0.009680017,-0.02459472,-0.020689478,-0.053510133,0.00614868,-0.010552464,-0.032405205,-0.0307434,0.025093261,0.003635199,-0.008101301,-0.00606559,-0.007436579,0.00606559,-0.012962082,0.026921248,0.009098385,0.046530552,-0.011632638,0.032571387,-0.033900831,0.009846197,0.002866614,0.032903746,0.008973749,0.012712811,0.040049512,0.013626805,-0.026256526,-0.031408124,0.036227357,0.011964999,-0.006024044,-0.001848759,0.015704062,-0.021188019,-0.035064094,-0.013377533,-0.009721561,-0.01553788,0.008766023,0.005400868,0.004507647,-0.018362951,-0.026588887,-0.00913993,-0.025591804,0.035894997,0.021935832,-0.031906664,-0.000602404,0.026422706,-0.006397951,0.006647222,0.0093892,0.020606387,0.00913993,0.015620971,-0.024096178,0.00063616,-0.006564131,0.01238045,-0.013709894,0.000563456,-0.009887742,0.016618054,-0.003323611,0.000451803,0.001609874,0.008682934,0.025259443,0.020024756,-0.027253609,0.010884825,0.028250692,-0.054839578,0.033568468,-0.004902326,0.003053567,0.020274026,-0.015704062,-0.00614868,-0.063813329,0.002482322,0.009763107,-0.001609874,-0.012214269,0.020107845,0.001921462,0.018695312,-0.004923099,0.007270399,-0.023763817,0.005234687,0.003406701,0.002565412,0.007104218,0.000841289,0.016202603,0.01827986,-0.031075761,-0.035562634,-0.025259443,-0.007021128,0.000641353,-0.033069927,0.010718645,0.005650138,0.024927082,-0.002658889,0.00380138,0.009929287,-0.004258377,-0.039717149,-0.022434372,0.025425622,0.00198378,0.006356406,0.017615138,-0.032072846,0.046862911,-0.026921248,0.005940954,0.021603471,-0.002253824,0.002825069,-0.030411039,-0.003115885,0.023597637,-0.004320694,-0.007852031,0.018030589,-0.008724478,-0.005733229,0.032903746,0.013876075,0.015454791,-0.023597637,0.005151597,-0.035396457,0.02176965,-0.012463541,0.025591804,0.014540797,-0.027918331,0.004154514,0.008724478,0.016036423,-0.015870241,0.005400868,-0.017365867,-0.044868745,-0.000485559,0.020357117,-0.00760276,-0.023265276,-0.012048089,0.008433662,0.018362951,-0.006979583,0.0307434,0.008392117,0.027087428,-0.019360034,0.016119512,0.02127111,0.010801735,0.00299125,0.002949705,0.012463541,-0.000025966,0.015953332,0.029413955,0.020024756,0.003780607,0.022102011,-0.031740483,0.01553788,0.010386284,0.028749233,-0.010884825,0.008682934,-0.003531337,-0.05517194,-0.019360034,-0.009347656,-0.002025325,0.003261293,-0.025425622,-0.01553788,-0.000251867,0.014291527,0.012546631,0.035728816,-0.007062673,-0.006605676,0.000384293,-0.005047734,-0.032571387,-0.021188019,-0.02127111,-0.016036423,0.008475208,-0.004009106,0.014291527,-0.008101301,0.004424557,-0.038221523,-0.019360034,0.015039339,-0.015454791,-0.029580137,0.035728816,0.004466102,-0.000778971,-0.005068507,-0.017781317,0.00477769,0.001838372,0.030244859,0.01213118,-0.022932915,-0.005359322,0.037390623,0.005899409,0.002046098,0.037889164,0.016701145,0.010303194,0.02127111,-0.009513836,-0.022268193,-0.005650138,-0.00388447,0.016534964,-0.023265276,-0.00054528,0.004819236,0.004715373,-0.001178843,-0.051183607,-0.00614868,-0.010552464,-0.002741979,-0.009181475,0.023597637,0.019193852,0.017199686,-0.036393538,-0.00243039,-0.015870241,-0.014706978,-0.00145408,0.016368784,-0.011632638,-0.014623888,-0.01229736,-0.01553788,0.040880412,0.023929998,-0.014623888,0.002648502,0.031906664,-0.033734649,-0.026755067,0.002783524,0.005359322,0.009970833,0.001412535,0.016950415,0.016285693,-0.006730312,-0.02459472,0.050851244,-0.001827986,-0.020855658,0.020938748,0.004071423,-0.021603471,-0.007852031,-0.023929998,-0.029912498,-0.003365156,0.017365867,-0.010427829,-0.011715728,0.014956249,0.011383367,0.032405205,-0.028583053,-0.017448956,0.018446039,0.017615138,0.035728816,-0.010095468,-0.00254464,0.010012378,0.028250692,-0.020855658,-0.002305755,-0.001002276,-0.014125346,-0.007021128,-0.028583053,-0.045533467,-0.02758597,-0.020440206,0.001350217,0.010053922,0.020689478,-0.017615138,0.026422706,0.040880412,0.012463541,-0.010718645,-0.014706978,0.068134025,0.038720068,0.047859997,-0.012546631,0.015704062,-0.002087643,-0.010303194,0.014790068,0.018612221,0.007395034,-0.014790068,-0.017864408,-0.005068507,-0.054507218,0.004902326,-0.004050651,0.021603471,0.019775484,-0.024262359,-0.012795902,0.021935832,-0.004009106,-0.039717149,0.037556801,-0.016701145,-0.025757983,0.005483958,-0.005110051,-0.021935832,-0.003406701,0.010594009,0.015787151,-0.049854163,0.007727395,-0.008392117,-0.017199686,0.009970833,-0.008849114,-0.013876075,-0.0059825,-0.015870241,-0.007104218,0.028250692,-0.029081594,0.026921248,0.00299125,-0.017781317,0.042542219,0.018196769,0.052845411,-0.004819236,-0.014125346,0.02459472,-0.011715728,0.015787151,-0.005774774,0.004902326,-0.004964644,-0.02758597,-0.013959166,-0.033568468,-0.027918331,-0.017698228,0.003489791,-0.020024756,-0.021603471,0.019360034,0.028084511,-0.002503094,-0.018861491,-0.002295369,0.050851244,-0.020689478,-0.000459593,-0.026090344,0.002783524,-0.005899409,-0.026921248,-0.0093892,-0.004112968,0.031574301,0.003926015,-0.032903746,-0.046198189,-0.019027673,-0.00913993,0.030411039,-0.019443123,0.001963008,-0.005193142,0.010884825,-0.02127111,-0.025259443,0.032737568,0.00089322,0.003282066,0.001713737,-0.006439496,0.016867325,-0.031574301,0.031075761,-0.009970833,0.022600554,-0.023597637,-0.014956249,0.004009106,0.00198378,0.026588887,-0.023431456,-0.023763817,-0.013294443,-0.029746316,0.001381376,-0.042874578,-0.00913993,0.014873158,0.016202603,0.012878992,-0.006024044,0.009638472,0.010552464,-0.017033506,-0.027087428,0.044536386,-0.038055345,0.001329444,-0.019609304,0.023597637,-0.043206941,0.040049512,0.017615138,0.046862911,0.02127111,0.013294443,-0.039550968,-0.018861491,-0.019609304,-0.033734649,0.00623177,-0.017199686,0.041212775,-0.017781317,-0.024262359,0.054507218,-0.009721561,0.005816319,-0.00206687,-0.008766023,0.017365867,-0.000737426,0.018362951,-0.023597637,-0.019110762,0.021935832,0.041545134,-0.020357117,-0.017615138,0.044868745,-0.018030589,-0.032405205,-0.050186522,-0.014540797,0.005213914,-0.006688767,0.047527634,0.040714234,
32 }
33
34 vectorSearchStage := bson.D{
35 {"$vectorSearch", bson.D{
36 {"index", "vector_index"},
37 {"path", "plot_embedding_voyage_3_large"},
38 {"queryVector", queryVector},
39 {"numCandidates", 150},
40 {"limit", 10},
41 }}}
42
43 projectStage := bson.D{
44 {"$project", bson.D{
45 {"_id", 0},
46 {"plot", 1},
47 {"title", 1},
48 {"score", bson.D{{"$meta", "vectorSearchScore"}}},
49 }}}
50
51 cursor, err := coll.Aggregate(ctx, mongo.Pipeline{vectorSearchStage, projectStage})
52 if err != nil {
53 log.Fatalf("failed to retrieve data from the server: %v", err)
54 }
55 // Display the results
56 type ProjectedMovieResult struct {
57 Title string `bson:"title"`
58 Plot string `bson:"plot"`
59 Score float64 `bson:"score"`
60 }
61
62 var results []ProjectedMovieResult
63 if err = cursor.All(ctx, &results); err != nil {
64 log.Fatalf("failed to unmarshal retrieved docs to ProjectedMovieResult objects: %v", err)
65 }
66 for _, result := range results {
67 fmt.Printf("Title: %v \nPlot: %v \nScore: %v \n\n", result.Title, result.Plot, result.Score)
68 }
69}
1Title: About Time
2Plot: At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.
3Score: 0.7710106372833252
4
5Title: Retroactive
6Plot: A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.
7Score: 0.760047972202301
8
9Title: A.P.E.X.
10Plot: A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...
11Score: 0.7576861381530762
12
13Title: Timecop
14Plot: An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.
15Score: 0.7576561570167542
16
17Title: Back to the Future Part II
18Plot: After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.
19Score: 0.7521393895149231
20
21Title: Thrill Seekers
22Plot: A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.
23Score: 0.7509932518005371
24
25Title: Timerider: The Adventure of Lyle Swann
26Plot: Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...
27Score: 0.7502642869949341
28
29Title: The Time Machine
30Plot: Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.
31Score: 0.7502503395080566
32
33Title: The Time Traveler's Wife
34Plot: A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.
35Score: 0.749496340751648
36
37Title: The Final Countdown
38Plot: A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.
39Score: 0.7469133734703064

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

1package main
2
3import (
4 "context"
5 "fmt"
6 "log"
7
8 "go.mongodb.org/mongo-driver/v2/bson"
9 "go.mongodb.org/mongo-driver/v2/mongo"
10 "go.mongodb.org/mongo-driver/v2/mongo/options"
11)
12
13func main() {
14 ctx := context.Background()
15
16 // Replace the placeholder with your Atlas connection string
17 const uri = "<connection-string>"
18
19 // Connect to your Atlas cluster
20 clientOptions := options.Client().ApplyURI(uri)
21 client, err := mongo.Connect(clientOptions)
22 if err != nil {
23 log.Fatalf("failed to connect to the server: %v", err)
24 }
25 defer func() { _ = client.Disconnect(ctx) }()
26
27 // Set the namespace
28 coll := client.Database("sample_mflix").Collection("embedded_movies")
29
30 queryVector := [2048]float64{
31 -0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558,
32 }
33
34 vectorSearchStage := bson.D{
35 {"$vectorSearch", bson.D{
36 {"index", "vector_index"},
37 {"path", "plot_embedding_voyage_3_large"},
38 {"filter", bson.D{{
39 "$and", bson.A{
40 bson.D{{"year", bson.D{{"$gt", 1955}}}},
41 bson.D{{"year", bson.D{{"$lt", 1975}}}},
42 },
43 }}},
44 {"queryVector", queryVector},
45 {"numCandidates", 150},
46 {"limit", 10},
47 }}}
48
49 projectStage := bson.D{
50 {"$project", bson.D{
51 {"_id", 0},
52 {"plot", 1},
53 {"title", 1},
54 {"year", 1},
55 {"score", bson.D{{"$meta", "vectorSearchScore"}}},
56 }}}
57
58 cursor, err := coll.Aggregate(ctx, mongo.Pipeline{vectorSearchStage, projectStage})
59 if err != nil {
60 log.Fatalf("failed to retrieve data from the server: %v", err)
61 }
62 // display the results
63 type ProjectedMovieResult struct {
64 Title string `bson:"title"`
65 Plot string `bson:"plot"`
66 Year int32 `bson:"year"`
67 Score float64 `bson:"score"`
68 }
69
70 var results []ProjectedMovieResult
71 if err = cursor.All(ctx, &results); err != nil {
72 log.Fatalf("failed to unmarshal retrieved docs to ProjectedMovieResult objects: %v", err)
73 }
74 for _, result := range results {
75 fmt.Printf("Title: %v \nPlot: %v \nYear: %v \nScore: %v \n\n", result.Title, result.Plot, result.Year, result.Score)
76 }
77}
1Title: Chitty Chitty Bang Bang
2Plot: A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.
3Year: 1968
4Score: 0.7489712834358215
5
6Title: The Little Prince
7Plot: A pilot, stranded in the desert, meets a little boy who is a prince on a planet.
8Year: 1974
9Score: 0.7346078753471375
10
11Title: In Search of the Castaways
12Plot: In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.
13Year: 1962
14Score: 0.7281590104103088
15
16Title: Bedknobs and Broomsticks
17Plot: An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.
18Year: 1971
19Score: 0.720349133014679
20
21Title: Pastoral Hide and Seek
22Plot: A young boys' coming of age tale set in a strange, carnivalesque village becomes the recreation of a memory that the director has twenty years later.
23Year: 1974
24Score: 0.7195663452148438
25
26Title: Peter Pan
27Plot: In this magical tale about the boy who refuses to grow up, Peter Pan and his mischievous fairy sidekick Tinkerbell visit the nursery of Wendy, Michael, and John Darling. With a sprinkling ...
28Year: 1960
29Score: 0.7195032238960266
30
31Title: The Cowboys
32Plot: When his cattle drivers abandon him for the gold fields, rancher Wil Andersen is forced to take on a collection of young boys as his drivers in order to get his herd to market in time to ...
33Year: 1972
34Score: 0.717952311038971
35
36Title: The 7th Voyage of Sinbad
37Plot: When a princess is shrunken by an evil wizard, Sinbad must undertake a quest to an island of monsters to cure her and prevent a war.
38Year: 1958
39Score: 0.7148033380508423
40
41Title: The Red Balloon
42Plot: A red balloon with a life of its own follows a little boy around the streets of Paris.
43Year: 1956
44Score: 0.7147064805030823
45
46Title: Perri
47Plot: This True Life Fantasy follows and shows how the life of a female squirrel, Perri, in the forest is filled with danger and fraught with peril. When not fleeing her natural enemy, the Marten...
48Year: 1957
49Score: 0.7120871543884277

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

1import com.mongodb.client.MongoClient;
2import com.mongodb.client.MongoClients;
3import com.mongodb.client.MongoCollection;
4import com.mongodb.client.MongoDatabase;
5import com.mongodb.client.model.search.FieldSearchPath;
6import org.bson.Document;
7import org.bson.conversions.Bson;
8
9import java.util.List;
10
11import static com.mongodb.client.model.Aggregates.project;
12import static com.mongodb.client.model.Aggregates.vectorSearch;
13import static com.mongodb.client.model.Projections.fields;
14import static com.mongodb.client.model.Projections.include;
15import static com.mongodb.client.model.Projections.exclude;
16import static com.mongodb.client.model.Projections.metaVectorSearchScore;
17import static com.mongodb.client.model.search.SearchPath.fieldPath;
18import static com.mongodb.client.model.search.VectorSearchOptions.approximateVectorSearchOptions;
19import static java.util.Arrays.asList;
20
21public class BasicQuery {
22 public static void main( String[] args ) {
23 // specify connection
24 String uri = "<connection-string>";
25
26 // establish connection and set namespace
27 try (MongoClient mongoClient = MongoClients.create(uri)) {
28 MongoDatabase database = mongoClient.getDatabase("sample_mflix");
29 MongoCollection<Document> collection = database.getCollection("embedded_movies");
30
31
32 // define $vectorSearch query options
33 List<Double> queryVector = (asList(-0.034731735d,0.008558298d,-0.0153717d,-0.029912498d,0.011549547d,0.010261648d,-0.011964999d,-0.023265276d,0.010303194d,-0.006896493d,-0.00054528d,0.003926015d,-0.025757983d,0.027419789d,0.001199616d,-0.036227357d,-0.005297005d,0.021935832d,0.010303194d,-0.019193852d,0.025093261d,-0.040049512d,-0.033900831d,-0.011466458d,-0.01827986d,-0.0153717d,0.023265276d,0.007727395d,0.000114249d,0.005317777d,-0.043871664d,-0.02127111d,-0.019609304d,0.016368784d,-0.004756918d,0.003552109d,0.006522586d,-0.005400868d,-0.015620971d,-0.034565553d,-0.018695312d,-0.023099095d,0.050851244d,-0.034731735d,0.004819236d,0.022268193d,-0.095719993d,0.05517194d,-0.046198189d,-0.036393538d,0.007187308d,-0.02459472d,-0.036725901d,0.009472291d,0.019027673d,0.020938748d,-0.011051006d,0.027087428d,0.04586583d,-0.022600554d,-0.05517194d,0.044204023d,0.01213118d,0.047859997d,-0.03938479d,0.002928932d,0.002056484d,0.019443123d,-0.028583053d,0.013543714d,0.022932915d,0.011632638d,0.004923099d,0.000389486d,0.020024756d,-0.024096178d,-0.022766734d,0.011217186d,-0.003198975d,0.007104218d,-0.047195274d,-0.013377533d,0.013294443d,0.024096178d,-0.056501385d,-0.026755067d,-0.008433662d,-0.001911076d,0.007976666d,-0.008101301d,-0.014042255d,0.008641388d,-0.02176965d,0.010012378d,-0.000607598d,-0.024927082d,0.024927082d,-0.018612221d,-0.001184036d,0.005567048d,0.001324251d,-0.019526213d,-0.023597637d,0.060489718d,-0.010178559d,-0.019609304d,0.004112968d,-0.011217186d,-0.031574301d,-0.008766023d,0.005483958d,-0.061819162d,-0.023431456d,-0.040714234d,0.015039339d,0.026422706d,0.016202603d,0.004653055d,0.041046593d,-0.018030589d,0.040381871d,-0.002638116d,0.013045172d,0.004216831d,0.005650138d,0.027419789d,0.003926015d,-0.028749233d,0.004798463d,-0.030244859d,0.063813329d,0.007145763d,-0.017448956d,0.025591804d,-0.045201108d,0.010718645d,0.002804297d,0.014291527d,0.04586583d,-0.015205519d,-0.021603471d,-0.035230275d,0.00760276d,0.033236109d,0.016534964d,-0.043206941d,-0.003115885d,-0.026256526d,0.005940954d,0.016534964d,0.024262359d,-0.001630647d,0.028084511d,-0.012795902d,0.007270399d,0.001381376d,-0.009763107d,-0.006896493d,0.008433662d,-0.019360034d,0.000386889d,0.030411039d,0.025591804d,0.010469374d,0.037722982d,-0.001147684d,-0.005400868d,0.052845411d,-0.052513052d,0.00768585d,-0.004299921d,0.00922302d,0.011881908d,0.012962082d,-0.068798743d,0.003593654d,0.020938748d,-0.013792985d,-0.034565553d,-0.007519669d,-0.04021569d,-0.020689478d,0.006273315d,0.046862911d,0.006107135d,0.002638116d,-0.013792985d,-0.005400868d,-0.020274026d,0.007644305d,-0.010801735d,0.026422706d,0.043871664d,0.003780607d,0.010261648d,-0.064145692d,0.011881908d,-0.009056839d,0.009347656d,-0.02459472d,0.026422706d,0.033236109d,0.041212775d,0.019027673d,-0.00315743d,0.004424557d,0.020689478d,-0.0153717d,-0.015205519d,-0.034897912d,0.020274026d,0.016867325d,0.040714234d,-0.022766734d,-0.010967916d,0.026256526d,0.007062673d,-0.015953332d,-0.007727395d,0.031574301d,-0.002887387d,-0.00614868d,0.004569965d,0.019027673d,0.012878992d,0.011798819d,0.004258377d,-0.019193852d,-0.021437289d,-0.021603471d,0.000301202d,-0.051183607d,-0.004985416d,-0.030078677d,0.012629721d,0.065142773d,-0.031740483d,-0.021104928d,-0.03938479d,-0.003365156d,-0.016036423d,0.036393538d,0.009804652d,-0.018612221d,0.060489718d,-0.003697517d,0.000547876d,0.063480966d,0.02758597d,0.010053922d,-0.003655972d,-0.001485239d,0.018362951d,0.021104928d,-0.003905243d,0.019443123d,-0.002658889d,-0.00380138d,-0.013626805d,0.035894997d,0.035396457d,-0.005691683d,0.002762751d,0.012878992d,-0.009596926d,-0.009970833d,-0.015953332d,0.022434372d,0.00614868d,-0.021188019d,0.001557943d,-0.020190936d,0.009763107d,0.017448956d,0.006730312d,0.005567048d,0.019692395d,-0.00218112d,-0.016867325d,0.006854947d,0.007976666d,0.019193852d,0.040880412d,0.007353489d,-0.02127111d,-0.031906664d,-0.026755067d,-0.017947499d,0.040381871d,0.042209856d,0.00913993d,-0.0307434d,-0.017781317d,-0.015039339d,0.03057722d,0.017532047d,0.0187784d,-0.060822077d,0.002928932d,-0.026422706d,-0.005899409d,0.039717149d,0.026588887d,-0.000971118d,0.004923099d,-0.013626805d,0.0187784d,-0.031408124d,-0.000695881d,0.050851244d,-0.014457707d,-0.007311944d,-0.001293092d,-0.002139574d,-0.019276943d,0.00290816d,0.019360034d,-0.017781317d,0.002160347d,0.016618054d,-0.006522586d,0.011798819d,0.029247776d,-0.02775215d,0.010344739d,-0.018362951d,-0.036725901d,-0.015870241d,0.015704062d,-0.012463541d,0.02459472d,-0.024096178d,0.001152877d,-0.031408124d,0.025425622d,0.027087428d,0.00922302d,0.034565553d,0.015704062d,-0.020689478d,-0.00517237d,-0.014706978d,-0.001589101d,0.026090344d,0.014956249d,0.011715728d,0.004299921d,-0.00913993d,0.022434372d,-0.03705826d,0.048524719d,-0.030411039d,0.008433662d,0.017033506d,-0.000511525d,-0.031408124d,0.005940954d,-0.012962082d,-0.031574301d,0.017448956d,0.010178559d,-0.011383367d,-0.020107845d,-0.005151597d,0.006647222d,0.013128263d,0.007145763d,0.008059756d,-0.045201108d,-0.004943871d,0.015787151d,-0.045201108d,-0.020772567d,-0.020274026d,0.028250692d,-0.024262359d,-0.004424557d,0.009804652d,0.000472576d,-0.005691683d,0.001443693d,-0.013294443d,0.001412535d,0.013211353d,-0.01213118d,-0.002118802d,0.017781317d,-0.007353489d,-0.031075761d,-0.004923099d,0.011383367d,-0.004486875d,-0.010178559d,0.016618054d,0.014457707d,0.023763817d,-0.02459472d,-0.00388447d,0.012546631d,-0.007519669d,0.015704062d,-0.014291527d,0.009680017d,-0.035562634d,0.023763817d,0.053510133d,-0.0555043d,-0.003572882d,0.022102011d,0.021603471d,-0.017282777d,-0.001474852d,-0.043539301d,0.007810486d,-0.025757983d,-0.005400868d,0.029912498d,-0.00760276d,0.014125346d,0.030909581d,-0.03340229d,-0.009680017d,0.018030589d,0.008849114d,0.03057722d,0.019775484d,0.014125346d,0.031906664d,-0.03057722d,-0.027087428d,-0.023597637d,-0.022434372d,-0.012878992d,0.016285693d,-0.021603471d,-0.029746316d,0.029746316d,0.020357117d,0.006314861d,-0.001158071d,0.028749233d,-0.045201108d,0.011383367d,0.011134096d,-0.021437289d,-0.035728816d,0.001827986d,0.008267482d,-0.057498466d,0.01213118d,-0.01213118d,-0.040548053d,0.010718645d,0.004798463d,-0.004881553d,-0.019526213d,-0.008558298d,0.0059825d,-0.000262254d,-0.017615138d,0.005193142d,0.019692395d,-0.00198378d,-0.002845842d,0.012546631d,0.006107135d,-0.008225936d,-0.008890659d,0.015870241d,0.00517237d,0.002596571d,-0.010427829d,-0.019110762d,0.024262359d,0.012048089d,-0.032405205d,0.006522586d,0.013211353d,0.013211353d,-0.038221523d,-0.007727395d,-0.008267482d,-0.019276943d,0.001474852d,0.031408124d,-0.035562634d,0.017532047d,-0.023431456d,-0.015454791d,-0.011383367d,0.016534964d,-0.02176965d,0.008682934d,0.027253609d,0.020190936d,-0.0247609d,-0.007311944d,0.009555381d,-0.01852913d,-0.011632638d,0.011549547d,0.027419789d,-0.034067012d,-0.01229736d,0.0307434d,0.003946788d,0.0046946d,0.037722982d,0.03057722d,-0.010427829d,0.002284982d,0.033236109d,0.030078677d,-0.013377533d,0.007395034d,-0.012048089d,0.040714234d,-0.028749233d,-0.000102565d,-0.0059825d,-0.041046593d,0.017698228d,-0.006356406d,0.003178203d,0.009056839d,0.023099095d,0.00606559d,0.011881908d,-0.02127111d,-0.001126912d,-0.027087428d,0.011134096d,0.001204809d,-0.017033506d,0.011051006d,-0.014374617d,0.017864408d,0.023431456d,-0.002077257d,-0.026755067d,-0.043871664d,0.025757983d,-0.006190225d,0.001152877d,0.011798819d,-0.024262359d,0.006564131d,-0.070128188d,-0.004362239d,0.012962082d,-0.013626805d,-0.001402148d,-0.012214269d,0.011217186d,-0.015953332d,0.015787151d,0.011134096d,0.027253609d,0.024262359d,-0.048192356d,0.009970833d,0.018944582d,-0.00517237d,0.021935832d,0.02775215d,0.003406701d,-0.010884825d,0.075113602d,-0.015953332d,0.007727395d,0.026755067d,-0.006190225d,-0.012712811d,0.013377533d,0.005940954d,-0.008309027d,0.02459472d,0.002316141d,-0.022434372d,-0.012712811d,0.03057722d,-0.015787151d,0.026755067d,-0.001069787d,0.03988333d,-0.003697517d,0.039550968d,-0.019027673d,-0.0059825d,-0.00031029d,-0.012546631d,-0.003614427d,0.007478124d,0.005525503d,0.032571387d,-0.011798819d,-0.011466458d,-0.00606559d,-0.011798819d,0.018446039d,0.007976666d,0.018944582d,-0.02176965d,0.026588887d,-0.006273315d,-0.012463541d,-0.007395034d,0.012048089d,-0.029247776d,0.015454791d,-0.007145763d,0.006481041d,-0.015620971d,-0.00388447d,-0.025757983d,-0.001651419d,-0.032903746d,-0.005068507d,0.03938479d,0.003926015d,0.004715373d,0.022600554d,-0.012546631d,0.022932915d,0.007810486d,0.040714234d,0.019941665d,0.013543714d,0.003406701d,0.010884825d,-0.03988333d,0.042209856d,-0.022766734d,0.027419789d,-0.029580137d,0.043206941d,0.022932915d,0.021104928d,-0.056833744d,0.005193142d,0.036061179d,-0.012878992d,0.008516753d,-0.02758597d,-0.030244859d,-0.011798819d,0.001111332d,-0.014125346d,-0.014125346d,0.019027673d,0.029081594d,0.018861491d,0.013626805d,0.06846638d,0.023099095d,0.041378956d,0.001599488d,-0.028749233d,0.017781317d,0.016285693d,0.021603471d,-0.018113678d,0.011300277d,-0.032239024d,0.022434372d,-0.02459472d,-0.013626805d,0.005483958d,0.013460624d,-0.031574301d,-0.015620971d,0.016451873d,0.014790068d,-0.008849114d,0.011134096d,0.00461151d,0.015122429d,0.036227357d,0.00206687d,0.000877641d,0.022102011d,-0.028250692d,0.022600554d,-0.026422706d,0.004029878d,-0.032072846d,0.017116595d,0.010884825d,0.019609304d,0.00614868d,0.005733229d,0.016119512d,0.002866614d,-0.014540797d,0.012463541d,-0.003905243d,0.003759835d,-0.000485559d,-0.022766734d,-0.016285693d,0.037722982d,0.009513836d,0.001506011d,0.011964999d,0.004029878d,0.019941665d,-0.000965924d,0.002129188d,0.015205519d,0.071125269d,0.022932915d,0.005940954d,-0.00044661d,0.010220103d,-0.03423319d,-0.016285693d,-0.016867325d,-0.000659529d,-0.008018211d,-0.011383367d,0.000016634d,0.004071423d,-0.029413955d,0.019941665d,-0.00913993d,-0.024096178d,0.010635555d,0.010594009d,0.001547556d,0.036227357d,-0.030078677d,0.020772567d,0.022268193d,-0.014125346d,0.008766023d,-0.012962082d,-0.007187308d,0.017033506d,-0.007187308d,-0.015205519d,-0.005608593d,0.044536386d,-0.001235968d,0.007852031d,0.001599488d,0.005857864d,-0.005940954d,-0.010510919d,-0.005567048d,0.006730312d,0.016285693d,-0.010801735d,-0.024428539d,0.015122429d,-0.02176965d,0.01528861d,-0.007436579d,0.00226421d,-0.004715373d,0.004507647d,0.004341467d,0.005525503d,-0.031075761d,-0.005899409d,0.037556801d,0.014873158d,-0.000342747d,0.009970833d,-0.019443123d,0.023597637d,-0.012048089d,-0.025259443d,0.006024044d,-0.01827986d,0.010012378d,0.016784234d,0.013211353d,-0.005400868d,-0.024428539d,-0.02176965d,-0.035230275d,0.009347656d,0.028583053d,-0.015704062d,-0.017781317d,0.00226421d,0.001199616d,-0.003385928d,0.008267482d,0.002326528d,0.022434372d,-0.020190936d,-0.015787151d,0.000789358d,0.031241942d,0.011300277d,0.001506011d,-0.023265276d,-0.010967916d,0.009056839d,0.011300277d,-0.030244859d,0.007478124d,0.001111332d,-0.035894997d,0.0153717d,0.002700434d,0.021104928d,0.010884825d,-0.003344383d,0.00768585d,0.010386284d,0.00452842d,-0.014706978d,0.028084511d,0.013377533d,0.014873158d,0.046862911d,-0.015454791d,0.021188019d,0.013959166d,0.012629721d,0.025924165d,-0.018695312d,-0.00922302d,-0.0093892d,0.007727395d,0.036892079d,0.007228854d,-0.01229736d,0.029247776d,-0.004943871d,-0.027253609d,-0.008433662d,0.043206941d,0.002825069d,0.028583053d,-0.023431456d,0.034897912d,-0.041545134d,-0.016534964d,0.003053567d,-0.012712811d,0.002741979d,-0.007187308d,-0.025093261d,-0.045201108d,-0.004424557d,-0.016618054d,-0.008890659d,0.008018211d,-0.05184833d,-0.019526213d,-0.013377533d,-0.010469374d,0.030244859d,-0.005068507d,0.051183607d,0.005483958d,-0.006024044d,0.035064094d,-0.011134096d,0.014956249d,0.002284982d,0.001724123d,-0.01229736d,0.012629721d,0.010261648d,0.014540797d,0.048857078d,-0.029580137d,-0.024927082d,-0.008350573d,-0.03988333d,0.000939959d,0.013543714d,0.013626805d,-0.021437289d,-0.012962082d,0.006771857d,0.013709894d,-0.0059825d,0.035396457d,-0.006439496d,-0.029580137d,0.0046946d,0.019609304d,-0.007270399d,0.014291527d,-0.015620971d,0.00118923d,-0.00760276d,-0.017199686d,0.023265276d,0.026588887d,-0.030078677d,-0.016701145d,-0.025757983d,0.004964644d,0.026588887d,0.043206941d,0.011051006d,-0.009846197d,0.028915415d,0.031574301d,0.023763817d,0.009264565d,-0.008433662d,-0.035064094d,-0.000579035d,-0.0247609d,0.014125346d,0.016618054d,0.028749233d,-0.052513052d,-0.016867325d,-0.01238045d,0.002741979d,0.013709894d,0.010718645d,0.013626805d,0.009596926d,-0.004403784d,-0.02758597d,-0.000945152d,0.000420645d,0.003759835d,0.012546631d,-0.011881908d,0.008392117d,0.012795902d,0.005483958d,-0.009763107d,0.006397951d,-0.010801735d,0.012795902d,-0.03938479d,0.005733229d,0.005733229d,-0.000433627d,0.015454791d,0.002357686d,-0.006564131d,0.030244859d,-0.024428539d,0.016036423d,0.014291527d,-0.004964644d,0.029413955d,0.040381871d,0.012629721d,-0.033568468d,-0.026422706d,-0.037889164d,-0.034399372d,-0.03423319d,0.021935832d,0.004133741d,-0.014623888d,-0.013543714d,-0.05517194d,0.004736145d,0.006314861d,0.00006037d,0.006356406d,0.003323611d,-0.010344739d,0.007062673d,0.005899409d,-0.00623177d,-0.001973394d,-0.0555043d,0.011881908d,0.001350217d,-0.033069927d,-0.026921248d,0.022268193d,0.028583053d,-0.021021837d,0.010884825d,0.019692395d,-0.005442413d,0.031574301d,-0.014956249d,0.01238045d,-0.006356406d,0.006273315d,-0.003095113d,-0.014540797d,-0.02176965d,0.005006189d,-0.002658889d,0.042542219d,-0.02176965d,0.017199686d,-0.016701145d,-0.001599488d,0.016950415d,-0.021188019d,0.017864408d,0.023763817d,-0.000669915d,0.025093261d,0.021104928d,0.008807569d,0.037390623d,-0.025591804d,-0.003178203d,-0.001319058d,0.020523297d,0.005255459d,0.019276943d,-0.00226421d,0.00760276d,-0.057166107d,-0.006896493d,-0.034067012d,0.043871664d,0.038221523d,0.008101301d,0.03988333d,0.015870241d,0.000955538d,-0.004299921d,-0.002928932d,-0.002118802d,-0.020523297d,-0.001168457d,-0.011134096d,-0.000685495d,0.003323611d,0.011549547d,0.034565553d,0.029247776d,-0.029746316d,0.005213914d,0.019110762d,-0.003302838d,0.026422706d,0.028915415d,-0.036227357d,0.033236109d,0.038387705d,-0.035230275d,0.004071423d,-0.021935832d,0.002928932d,0.000976311d,0.000527104d,-0.006854947d,-0.003822153d,-0.001199616d,0.019858574d,-0.002762751d,0.039052427d,-0.008641388d,0.032239024d,-0.002295369d,0.035396457d,0.044536386d,-0.029413955d,0.025093261d,-0.03423319d,-0.016867325d,-0.008849114d,0.008433662d,-0.004486875d,0.017033506d,0.006730312d,-0.008599843d,-0.008225936d,-0.024428539d,0.006564131d,-0.007561215d,-0.032072846d,-0.019941665d,0.035396457d,0.019276943d,0.010261648d,0.005857864d,0.032239024d,-0.044204023d,-0.018944582d,0.002409618d,0.032903746d,0.05517194d,-0.03655972d,0.007976666d,0.030909581d,-0.023929998d,0.016368784d,0.01528861d,-0.00768585d,0.02176965d,0.013626805d,-0.02459472d,0.04021569d,-0.032737568d,0.006854947d,-0.011383367d,0.014873158d,-0.02176965d,0.00243039d,0.0093892d,0.0093892d,-0.029580137d,0.019858574d,0.01827986d,0.024428539d,0.017864408d,-0.028250692d,-0.001111332d,0.056169022d,0.007478124d,-0.010718645d,0.041046593d,-0.015704062d,0.034731735d,0.002523867d,-0.032571387d,0.004341467d,-0.023597637d,-0.011881908d,-0.035562634d,0.006688767d,0.007810486d,-0.012712811d,0.022600554d,0.03057722d,0.022600554d,0.010552464d,0.0307434d,-0.009638472d,0.02176965d,-0.018030589d,0.024262359d,-0.036227357d,-0.020772567d,0.001641033d,-0.022932915d,-0.014623888d,0.018362951d,0.002575798d,0.006190225d,-0.011051006d,0.021021837d,0.019110762d,0.02127111d,-0.028583053d,-0.052180689d,-0.014291527d,-0.010552464d,0.036393538d,0.042542219d,-0.04586583d,-0.001869531d,0.008350573d,-0.008516753d,-0.020772567d,0.000294711d,0.015704062d,-0.014457707d,-0.020772567d,0.008766023d,-0.026588887d,-0.004736145d,-0.028084511d,-0.007519669d,0.010552464d,-0.016534964d,0.006190225d,0.012962082d,-0.016618054d,0.012546631d,0.02459472d,0.022932915d,0.020440206d,-0.027918331d,-0.008059756d,0.020689478d,-0.014623888d,-0.011466458d,-0.006896493d,-0.020024756d,-0.031408124d,0.021603471d,0.007270399d,-0.03057722d,0.008350573d,-0.021437289d,0.00072704d,-0.043871664d,0.006314861d,-0.017199686d,0.02176965d,0.024262359d,-0.020357117d,-0.000542683d,-0.005213914d,0.001963008d,-0.00064395d,-0.022434372d,0.022102011d,-0.006688767d,-0.028583053d,0.002191506d,-0.005047734d,0.002368073d,0.014956249d,0.023929998d,-0.003302838d,-0.032239024d,0.022268193d,-0.013377533d,-0.010801735d,0.003676744d,0.009015295d,-0.039550968d,0.010884825d,-0.033568468d,0.013709894d,-0.029413955d,-0.006356406d,-0.020274026d,0.023597637d,0.030909581d,0.02176965d,0.016285693d,0.045533467d,-0.024096178d,-0.030909581d,-0.026422706d,0.002783524d,-0.010594009d,0.004362239d,-0.070792913d,0.009472291d,-0.022102011d,0.011134096d,-0.017448956d,-0.011549547d,-0.056833744d,0.00082571d,0.026588887d,-0.013709894d,0.002575798d,0.02176965d,-0.000568649d,-0.007270399d,0.004279149d,-0.042874578d,-0.026588887d,0.016784234d,0.036725901d,-0.028915415d,-0.009513836d,0.017448956d,0.002035712d,-0.007228854d,0.011383367d,0.011134096d,0.028915415d,0.0153717d,-0.027087428d,0.043871664d,-0.005089279d,0.006314861d,0.014291527d,-0.003240521d,0.025924165d,-0.001230775d,-0.015454791d,-0.012629721d,0.031740483d,-0.039717149d,-0.031075761d,0.006605676d,-0.008641388d,-0.032239024d,0.037722982d,-0.03705826d,-0.024096178d,0.001911076d,0.018196769d,-0.007353489d,-0.011300277d,-0.029081594d,0.004590738d,-0.018030589d,-0.026588887d,0.010261648d,0.038221523d,0.008392117d,-0.01213118d,0.018362951d,-0.034731735d,-0.017781317d,-0.011632638d,0.005255459d,0.000851675d,0.014208436d,-0.000039922d,-0.000228498d,0.014790068d,0.00913993d,0.0004544d,-0.011798819d,-0.020440206d,0.005899409d,0.008350573d,0.006314861d,0.040548053d,0.003427474d,-0.010801735d,0.008599843d,0.002586185d,-0.041212775d,-0.016368784d,0.020024756d,0.000965924d,-0.021021837d,-0.008475208d,0.0307434d,0.00760276d,0.003614427d,0.003489791d,-0.025924165d,0.000799744d,0.013460624d,-0.020440206d,0.048857078d,0.004320694d,-0.048857078d,0.015039339d,-0.029580137d,0.025924165d,0.018861491d,-0.014706978d,0.000576439d,-0.031241942d,0.0307434d,0.0153717d,0.014706978d,0.028084511d,-0.01238045d,-0.031241942d,0.018196769d,-0.034897912d,0.008142847d,0.010718645d,0.00922302d,0.047859997d,-0.00072704d,-0.010427829d,0.007104218d,0.026256526d,0.012214269d,-0.013377533d,-0.05184833d,0.005276232d,0.021935832d,-0.007021128d,0.009804652d,0.007893575d,0.024096178d,-0.002357686d,0.033900831d,-0.031740483d,0.034565553d,-0.036892079d,-0.015454791d,0.030411039d,0.010552464d,-0.022268193d,-0.001391762d,-0.008184392d,-0.008558298d,0.008475208d,-0.009929287d,0.010427829d,0.041378956d,-0.009555381d,-0.008724478d,-0.039052427d,0.034731735d,-0.014291527d,0.023099095d,0.029081594d,0.007519669d,0.010967916d,-0.008142847d,0.006190225d,-0.031075761d,0.033734649d,-0.001672192d,0.047859997d,-0.022434372d,-0.007395034d,0.01213118d,0.056169022d,0.002762751d,-0.029413955d,-0.000763392d,-0.015787151d,0.010801735d,0.008142847d,0.029912498d,-0.0018176d,0.033236109d,-0.046198189d,-0.002492708d,-0.006730312d,0.008807569d,-0.03655972d,0.009430746d,-0.053842496d,-0.060489718d,0.046862911d,0.002783524d,-0.0187784d,0.000571246d,0.00760276d,0.002482322d,0.001319058d,-0.014291527d,0.001464466d,-0.011632638d,-0.012463541d,-0.004902326d,0.000841289d,0.006688767d,0.030244859d,0.018944582d,0.000532297d,-0.015620971d,0.007104218d,0.005608593d,0.002035712d,-0.023763817d,0.003032795d,0.010594009d,-0.023597637d,-0.042376038d,-0.005255459d,0.001199616d,-0.0247609d,-0.007893575d,-0.011632638d,0.013045172d,-0.005691683d,-0.007104218d,0.027419789d,-0.004320694d,-0.005525503d,-0.026090344d,0.031408124d,-0.012795902d,-0.007062673d,0.000939959d,0.000030185d,0.004175286d,0.014291527d,0.033236109d,-0.038720068d,0.074116521d,-0.019692395d,0.001589101d,0.013792985d,-0.056169022d,-0.028749233d,-0.001599488d,0.004175286d,0.014790068d,0.00162026d,-0.007519669d,-0.041378956d,0.016534964d,-0.003572882d,-0.002575798d,-0.019526213d,-0.00922302d,-0.033900831d,-0.042043675d,-0.014208436d,0.010178559d,0.017698228d,0.032239024d,0.00913993d,0.009264565d,-0.012463541d,-0.005857864d,-0.015870241d,0.004486875d,0.018861491d,-0.000176567d,-0.029912498d,0.016784234d,0.012546631d,0.051183607d,0.023597637d,0.032903746d,0.0153717d,-0.013377533d,-0.000016634d,-0.061486799d,-0.034565553d,0.016119512d,0.00380138d,-0.003863698d,0.004362239d,-0.017532047d,-0.002762751d,0.000102565d,-0.021437289d,0.029247776d,-0.010718645d,-0.015870241d,-0.016285693d,0.010220103d,-0.000373906d,0.012962082d,0.010137013d,-0.007228854d,0.02127111d,-0.029247776d,0.018113678d,0.009181475d,0.002233051d,0.014374617d,-0.00396756d,0.010801735d,0.007644305d,0.020855658d,0.014790068d,0.032737568d,-0.037390623d,0.003032795d,0.010801735d,-0.01553788d,-0.014790068d,0.019526213d,-0.017947499d,-0.007893575d,-0.011964999d,-0.00614868d,-0.005857864d,-0.032072846d,-0.025924165d,0.001163264d,-0.013294443d,-0.01553788d,0.016701145d,-0.013460624d,-0.001111332d,0.00760276d,0.01553788d,-0.033734649d,0.048192356d,-0.003282066d,0.031906664d,0.002845842d,0.003240521d,0.017116595d,-0.01827986d,0.006896493d,-0.00760276d,-0.009680017d,-0.02459472d,-0.020689478d,-0.053510133d,0.00614868d,-0.010552464d,-0.032405205d,-0.0307434d,0.025093261d,0.003635199d,-0.008101301d,-0.00606559d,-0.007436579d,0.00606559d,-0.012962082d,0.026921248d,0.009098385d,0.046530552d,-0.011632638d,0.032571387d,-0.033900831d,0.009846197d,0.002866614d,0.032903746d,0.008973749d,0.012712811d,0.040049512d,0.013626805d,-0.026256526d,-0.031408124d,0.036227357d,0.011964999d,-0.006024044d,-0.001848759d,0.015704062d,-0.021188019d,-0.035064094d,-0.013377533d,-0.009721561d,-0.01553788d,0.008766023d,0.005400868d,0.004507647d,-0.018362951d,-0.026588887d,-0.00913993d,-0.025591804d,0.035894997d,0.021935832d,-0.031906664d,-0.000602404d,0.026422706d,-0.006397951d,0.006647222d,0.0093892d,0.020606387d,0.00913993d,0.015620971d,-0.024096178d,0.00063616d,-0.006564131d,0.01238045d,-0.013709894d,0.000563456d,-0.009887742d,0.016618054d,-0.003323611d,0.000451803d,0.001609874d,0.008682934d,0.025259443d,0.020024756d,-0.027253609d,0.010884825d,0.028250692d,-0.054839578d,0.033568468d,-0.004902326d,0.003053567d,0.020274026d,-0.015704062d,-0.00614868d,-0.063813329d,0.002482322d,0.009763107d,-0.001609874d,-0.012214269d,0.020107845d,0.001921462d,0.018695312d,-0.004923099d,0.007270399d,-0.023763817d,0.005234687d,0.003406701d,0.002565412d,0.007104218d,0.000841289d,0.016202603d,0.01827986d,-0.031075761d,-0.035562634d,-0.025259443d,-0.007021128d,0.000641353d,-0.033069927d,0.010718645d,0.005650138d,0.024927082d,-0.002658889d,0.00380138d,0.009929287d,-0.004258377d,-0.039717149d,-0.022434372d,0.025425622d,0.00198378d,0.006356406d,0.017615138d,-0.032072846d,0.046862911d,-0.026921248d,0.005940954d,0.021603471d,-0.002253824d,0.002825069d,-0.030411039d,-0.003115885d,0.023597637d,-0.004320694d,-0.007852031d,0.018030589d,-0.008724478d,-0.005733229d,0.032903746d,0.013876075d,0.015454791d,-0.023597637d,0.005151597d,-0.035396457d,0.02176965d,-0.012463541d,0.025591804d,0.014540797d,-0.027918331d,0.004154514d,0.008724478d,0.016036423d,-0.015870241d,0.005400868d,-0.017365867d,-0.044868745d,-0.000485559d,0.020357117d,-0.00760276d,-0.023265276d,-0.012048089d,0.008433662d,0.018362951d,-0.006979583d,0.0307434d,0.008392117d,0.027087428d,-0.019360034d,0.016119512d,0.02127111d,0.010801735d,0.00299125d,0.002949705d,0.012463541d,-0.000025966d,0.015953332d,0.029413955d,0.020024756d,0.003780607d,0.022102011d,-0.031740483d,0.01553788d,0.010386284d,0.028749233d,-0.010884825d,0.008682934d,-0.003531337d,-0.05517194d,-0.019360034d,-0.009347656d,-0.002025325d,0.003261293d,-0.025425622d,-0.01553788d,-0.000251867d,0.014291527d,0.012546631d,0.035728816d,-0.007062673d,-0.006605676d,0.000384293d,-0.005047734d,-0.032571387d,-0.021188019d,-0.02127111d,-0.016036423d,0.008475208d,-0.004009106d,0.014291527d,-0.008101301d,0.004424557d,-0.038221523d,-0.019360034d,0.015039339d,-0.015454791d,-0.029580137d,0.035728816d,0.004466102d,-0.000778971d,-0.005068507d,-0.017781317d,0.00477769d,0.001838372d,0.030244859d,0.01213118d,-0.022932915d,-0.005359322d,0.037390623d,0.005899409d,0.002046098d,0.037889164d,0.016701145d,0.010303194d,0.02127111d,-0.009513836d,-0.022268193d,-0.005650138d,-0.00388447d,0.016534964d,-0.023265276d,-0.00054528d,0.004819236d,0.004715373d,-0.001178843d,-0.051183607d,-0.00614868d,-0.010552464d,-0.002741979d,-0.009181475d,0.023597637d,0.019193852d,0.017199686d,-0.036393538d,-0.00243039d,-0.015870241d,-0.014706978d,-0.00145408d,0.016368784d,-0.011632638d,-0.014623888d,-0.01229736d,-0.01553788d,0.040880412d,0.023929998d,-0.014623888d,0.002648502d,0.031906664d,-0.033734649d,-0.026755067d,0.002783524d,0.005359322d,0.009970833d,0.001412535d,0.016950415d,0.016285693d,-0.006730312d,-0.02459472d,0.050851244d,-0.001827986d,-0.020855658d,0.020938748d,0.004071423d,-0.021603471d,-0.007852031d,-0.023929998d,-0.029912498d,-0.003365156d,0.017365867d,-0.010427829d,-0.011715728d,0.014956249d,0.011383367d,0.032405205d,-0.028583053d,-0.017448956d,0.018446039d,0.017615138d,0.035728816d,-0.010095468d,-0.00254464d,0.010012378d,0.028250692d,-0.020855658d,-0.002305755d,-0.001002276d,-0.014125346d,-0.007021128d,-0.028583053d,-0.045533467d,-0.02758597d,-0.020440206d,0.001350217d,0.010053922d,0.020689478d,-0.017615138d,0.026422706d,0.040880412d,0.012463541d,-0.010718645d,-0.014706978d,0.068134025d,0.038720068d,0.047859997d,-0.012546631d,0.015704062d,-0.002087643d,-0.010303194d,0.014790068d,0.018612221d,0.007395034d,-0.014790068d,-0.017864408d,-0.005068507d,-0.054507218d,0.004902326d,-0.004050651d,0.021603471d,0.019775484d,-0.024262359d,-0.012795902d,0.021935832d,-0.004009106d,-0.039717149d,0.037556801d,-0.016701145d,-0.025757983d,0.005483958d,-0.005110051d,-0.021935832d,-0.003406701d,0.010594009d,0.015787151d,-0.049854163d,0.007727395d,-0.008392117d,-0.017199686d,0.009970833d,-0.008849114d,-0.013876075d,-0.0059825d,-0.015870241d,-0.007104218d,0.028250692d,-0.029081594d,0.026921248d,0.00299125d,-0.017781317d,0.042542219d,0.018196769d,0.052845411d,-0.004819236d,-0.014125346d,0.02459472d,-0.011715728d,0.015787151d,-0.005774774d,0.004902326d,-0.004964644d,-0.02758597d,-0.013959166d,-0.033568468d,-0.027918331d,-0.017698228d,0.003489791d,-0.020024756d,-0.021603471d,0.019360034d,0.028084511d,-0.002503094d,-0.018861491d,-0.002295369d,0.050851244d,-0.020689478d,-0.000459593d,-0.026090344d,0.002783524d,-0.005899409d,-0.026921248d,-0.0093892d,-0.004112968d,0.031574301d,0.003926015d,-0.032903746d,-0.046198189d,-0.019027673d,-0.00913993d,0.030411039d,-0.019443123d,0.001963008d,-0.005193142d,0.010884825d,-0.02127111d,-0.025259443d,0.032737568d,0.00089322d,0.003282066d,0.001713737d,-0.006439496d,0.016867325d,-0.031574301d,0.031075761d,-0.009970833d,0.022600554d,-0.023597637d,-0.014956249d,0.004009106d,0.00198378d,0.026588887d,-0.023431456d,-0.023763817d,-0.013294443d,-0.029746316d,0.001381376d,-0.042874578d,-0.00913993d,0.014873158d,0.016202603d,0.012878992d,-0.006024044d,0.009638472d,0.010552464d,-0.017033506d,-0.027087428d,0.044536386d,-0.038055345d,0.001329444d,-0.019609304d,0.023597637d,-0.043206941d,0.040049512d,0.017615138d,0.046862911d,0.02127111d,0.013294443d,-0.039550968d,-0.018861491d,-0.019609304d,-0.033734649d,0.00623177d,-0.017199686d,0.041212775d,-0.017781317d,-0.024262359d,0.054507218d,-0.009721561d,0.005816319d,-0.00206687d,-0.008766023d,0.017365867d,-0.000737426d,0.018362951d,-0.023597637d,-0.019110762d,0.021935832d,0.041545134d,-0.020357117d,-0.017615138d,0.044868745d,-0.018030589d,-0.032405205d,-0.050186522d,-0.014540797d,0.005213914d,-0.006688767d,0.047527634d,0.040714234d));
34 String indexName = "vector_index";
35 FieldSearchPath fieldSearchPath = fieldPath("plot_embedding_voyage_3_large");
36 int limit = 10;
37 int numCandidates = 150;
38
39 // define pipeline
40 List<Bson> pipeline = asList(
41 vectorSearch(
42 fieldSearchPath,
43 queryVector,
44 indexName,
45 limit,
46 approximateVectorSearchOptions(numCandidates)),
47 project(
48 fields(exclude("_id"), include("title"), include("plot"),
49 metaVectorSearchScore("score"))));
50
51 // run query and print results
52 collection.aggregate(pipeline)
53 .forEach(doc -> System.out.println(doc.toJson()));
54 }
55 }
56}
1{"plot": "At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.", "title": "About Time", "score": 0.7710106372833252}
2{"plot": "A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.", "title": "Retroactive", "score": 0.760047972202301}
3{"plot": "A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...", "title": "A.P.E.X.", "score": 0.7576861381530762}
4{"plot": "An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.", "title": "Timecop", "score": 0.7576561570167542}
5{"plot": "After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.", "title": "Back to the Future Part II", "score": 0.7521393895149231}
6{"plot": "A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.", "title": "Thrill Seekers", "score": 0.7509932518005371}
7{"plot": "Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...", "title": "Timerider: The Adventure of Lyle Swann", "score": 0.7502642869949341}
8{"plot": "Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.", "title": "The Time Machine", "score": 0.7502503395080566}
9{"plot": "A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.", "title": "The Time Traveler's Wife", "score": 0.749496340751648}
10{"plot": "A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.", "title": "The Final Countdown", "score": 0.7469133734703064}

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

1import static com.mongodb.client.model.Aggregates.*;
2import static com.mongodb.client.model.Projections.*;
3import static com.mongodb.client.model.search.SearchPath.fieldPath;
4import static java.util.Arrays.asList;
5import static com.mongodb.client.model.Filters.*;
6
7import com.mongodb.client.MongoClient;
8import com.mongodb.client.MongoClients;
9import com.mongodb.client.MongoCollection;
10import com.mongodb.client.MongoDatabase;
11import com.mongodb.client.model.search.FieldSearchPath;
12import com.mongodb.client.model.search.VectorSearchOptions;
13import org.bson.Document;
14import org.bson.conversions.Bson;
15
16import java.util.List;
17
18public class FilterQuery {
19 public static void main(String[] args) {
20 // Specify connection URI
21 String uri = "<connection-string>";
22
23 // Establish connection and set namespace
24 try (MongoClient mongoClient = MongoClients.create(uri)) {
25 MongoDatabase database = mongoClient.getDatabase("sample_mflix");
26 MongoCollection<Document> collection = database.getCollection("embedded_movies");
27
28 // Parameters
29 List<Double> queryVector = asList(-0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558);
30 String indexName = "vector_index";
31 FieldSearchPath fieldSearchPath = fieldPath("plot_embedding_voyage_3_large");
32 long numCandidates = 150;
33 long limit = 10;
34
35 // Define filter criteria
36 Bson criteria = and(gt("year", 1955), lt("year", 1975));
37
38 // Create VectorSearchOptions
39 VectorSearchOptions options = VectorSearchOptions.approximateVectorSearchOptions(numCandidates)
40 .filter(criteria);
41
42 // Define the pipeline
43 List<Bson> pipeline = asList(
44 vectorSearch(
45 fieldSearchPath,
46 queryVector,
47 indexName,
48 limit,
49 options
50 ),
51 project(
52 fields(
53 exclude("_id"),
54 include("title"),
55 include("plot"),
56 include("year"),
57 metaVectorSearchScore("score")
58 )
59 )
60 );
61
62 // Run query and print results
63 collection.aggregate(pipeline).forEach(doc -> System.out.println(doc.toJson()));
64 }
65 }
66}
1{"plot": "A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.", "title": "Chitty Chitty Bang Bang", "year": 1968, "score": 0.7489712834358215}
2{"plot": "A pilot, stranded in the desert, meets a little boy who is a prince on a planet.", "title": "The Little Prince", "year": 1974, "score": 0.7346078753471375}
3{"plot": "In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.", "title": "In Search of the Castaways", "year": 1962, "score": 0.7281590104103088}
4{"plot": "An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.", "title": "Bedknobs and Broomsticks", "year": 1971, "score": 0.720349133014679}
5{"plot": "A young boys' coming of age tale set in a strange, carnivalesque village becomes the recreation of a memory that the director has twenty years later.", "title": "Pastoral Hide and Seek", "year": 1974, "score": 0.7195663452148438}
6{"plot": "In this magical tale about the boy who refuses to grow up, Peter Pan and his mischievous fairy sidekick Tinkerbell visit the nursery of Wendy, Michael, and John Darling. With a sprinkling ...", "title": "Peter Pan", "year": 1960, "score": 0.7195032238960266}
7{"plot": "When his cattle drivers abandon him for the gold fields, rancher Wil Andersen is forced to take on a collection of young boys as his drivers in order to get his herd to market in time to ...", "title": "The Cowboys", "year": 1972, "score": 0.717952311038971}
8{"plot": "When a princess is shrunken by an evil wizard, Sinbad must undertake a quest to an island of monsters to cure her and prevent a war.", "title": "The 7th Voyage of Sinbad", "year": 1958, "score": 0.7148033380508423}
9{"plot": "A red balloon with a life of its own follows a little boy around the streets of Paris.", "title": "The Red Balloon", "year": 1956, "score": 0.7147064805030823}
10{"plot": "This True Life Fantasy follows and shows how the life of a female squirrel, Perri, in the forest is filled with danger and fraught with peril. When not fleeing her natural enemy, the Marten...", "title": "Perri", "year": 1957, "score": 0.7120871543884277}

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

1const { MongoClient } = require("mongodb");
2
3// connect to your Atlas cluster
4const uri = "<connection-string>";
5
6const client = new MongoClient(uri);
7
8async function run() {
9 try {
10 await client.connect();
11
12 // set namespace
13 const database = client.db("sample_mflix");
14 const coll = database.collection("embedded_movies");
15
16 // define pipeline
17 const agg = [
18 {
19 '$vectorSearch': {
20 'index': 'vector_index',
21 'path': 'plot_embedding_voyage_3_large',
22 'queryVector': [
23 -0.034731735,0.008558298,-0.0153717,-0.029912498,0.011549547,0.010261648,-0.011964999,-0.023265276,0.010303194,-0.006896493,-0.00054528,0.003926015,-0.025757983,0.027419789,0.001199616,-0.036227357,-0.005297005,0.021935832,0.010303194,-0.019193852,0.025093261,-0.040049512,-0.033900831,-0.011466458,-0.01827986,-0.0153717,0.023265276,0.007727395,0.000114249,0.005317777,-0.043871664,-0.02127111,-0.019609304,0.016368784,-0.004756918,0.003552109,0.006522586,-0.005400868,-0.015620971,-0.034565553,-0.018695312,-0.023099095,0.050851244,-0.034731735,0.004819236,0.022268193,-0.095719993,0.05517194,-0.046198189,-0.036393538,0.007187308,-0.02459472,-0.036725901,0.009472291,0.019027673,0.020938748,-0.011051006,0.027087428,0.04586583,-0.022600554,-0.05517194,0.044204023,0.01213118,0.047859997,-0.03938479,0.002928932,0.002056484,0.019443123,-0.028583053,0.013543714,0.022932915,0.011632638,0.004923099,0.000389486,0.020024756,-0.024096178,-0.022766734,0.011217186,-0.003198975,0.007104218,-0.047195274,-0.013377533,0.013294443,0.024096178,-0.056501385,-0.026755067,-0.008433662,-0.001911076,0.007976666,-0.008101301,-0.014042255,0.008641388,-0.02176965,0.010012378,-0.000607598,-0.024927082,0.024927082,-0.018612221,-0.001184036,0.005567048,0.001324251,-0.019526213,-0.023597637,0.060489718,-0.010178559,-0.019609304,0.004112968,-0.011217186,-0.031574301,-0.008766023,0.005483958,-0.061819162,-0.023431456,-0.040714234,0.015039339,0.026422706,0.016202603,0.004653055,0.041046593,-0.018030589,0.040381871,-0.002638116,0.013045172,0.004216831,0.005650138,0.027419789,0.003926015,-0.028749233,0.004798463,-0.030244859,0.063813329,0.007145763,-0.017448956,0.025591804,-0.045201108,0.010718645,0.002804297,0.014291527,0.04586583,-0.015205519,-0.021603471,-0.035230275,0.00760276,0.033236109,0.016534964,-0.043206941,-0.003115885,-0.026256526,0.005940954,0.016534964,0.024262359,-0.001630647,0.028084511,-0.012795902,0.007270399,0.001381376,-0.009763107,-0.006896493,0.008433662,-0.019360034,0.000386889,0.030411039,0.025591804,0.010469374,0.037722982,-0.001147684,-0.005400868,0.052845411,-0.052513052,0.00768585,-0.004299921,0.00922302,0.011881908,0.012962082,-0.068798743,0.003593654,0.020938748,-0.013792985,-0.034565553,-0.007519669,-0.04021569,-0.020689478,0.006273315,0.046862911,0.006107135,0.002638116,-0.013792985,-0.005400868,-0.020274026,0.007644305,-0.010801735,0.026422706,0.043871664,0.003780607,0.010261648,-0.064145692,0.011881908,-0.009056839,0.009347656,-0.02459472,0.026422706,0.033236109,0.041212775,0.019027673,-0.00315743,0.004424557,0.020689478,-0.0153717,-0.015205519,-0.034897912,0.020274026,0.016867325,0.040714234,-0.022766734,-0.010967916,0.026256526,0.007062673,-0.015953332,-0.007727395,0.031574301,-0.002887387,-0.00614868,0.004569965,0.019027673,0.012878992,0.011798819,0.004258377,-0.019193852,-0.021437289,-0.021603471,0.000301202,-0.051183607,-0.004985416,-0.030078677,0.012629721,0.065142773,-0.031740483,-0.021104928,-0.03938479,-0.003365156,-0.016036423,0.036393538,0.009804652,-0.018612221,0.060489718,-0.003697517,0.000547876,0.063480966,0.02758597,0.010053922,-0.003655972,-0.001485239,0.018362951,0.021104928,-0.003905243,0.019443123,-0.002658889,-0.00380138,-0.013626805,0.035894997,0.035396457,-0.005691683,0.002762751,0.012878992,-0.009596926,-0.009970833,-0.015953332,0.022434372,0.00614868,-0.021188019,0.001557943,-0.020190936,0.009763107,0.017448956,0.006730312,0.005567048,0.019692395,-0.00218112,-0.016867325,0.006854947,0.007976666,0.019193852,0.040880412,0.007353489,-0.02127111,-0.031906664,-0.026755067,-0.017947499,0.040381871,0.042209856,0.00913993,-0.0307434,-0.017781317,-0.015039339,0.03057722,0.017532047,0.0187784,-0.060822077,0.002928932,-0.026422706,-0.005899409,0.039717149,0.026588887,-0.000971118,0.004923099,-0.013626805,0.0187784,-0.031408124,-0.000695881,0.050851244,-0.014457707,-0.007311944,-0.001293092,-0.002139574,-0.019276943,0.00290816,0.019360034,-0.017781317,0.002160347,0.016618054,-0.006522586,0.011798819,0.029247776,-0.02775215,0.010344739,-0.018362951,-0.036725901,-0.015870241,0.015704062,-0.012463541,0.02459472,-0.024096178,0.001152877,-0.031408124,0.025425622,0.027087428,0.00922302,0.034565553,0.015704062,-0.020689478,-0.00517237,-0.014706978,-0.001589101,0.026090344,0.014956249,0.011715728,0.004299921,-0.00913993,0.022434372,-0.03705826,0.048524719,-0.030411039,0.008433662,0.017033506,-0.000511525,-0.031408124,0.005940954,-0.012962082,-0.031574301,0.017448956,0.010178559,-0.011383367,-0.020107845,-0.005151597,0.006647222,0.013128263,0.007145763,0.008059756,-0.045201108,-0.004943871,0.015787151,-0.045201108,-0.020772567,-0.020274026,0.028250692,-0.024262359,-0.004424557,0.009804652,0.000472576,-0.005691683,0.001443693,-0.013294443,0.001412535,0.013211353,-0.01213118,-0.002118802,0.017781317,-0.007353489,-0.031075761,-0.004923099,0.011383367,-0.004486875,-0.010178559,0.016618054,0.014457707,0.023763817,-0.02459472,-0.00388447,0.012546631,-0.007519669,0.015704062,-0.014291527,0.009680017,-0.035562634,0.023763817,0.053510133,-0.0555043,-0.003572882,0.022102011,0.021603471,-0.017282777,-0.001474852,-0.043539301,0.007810486,-0.025757983,-0.005400868,0.029912498,-0.00760276,0.014125346,0.030909581,-0.03340229,-0.009680017,0.018030589,0.008849114,0.03057722,0.019775484,0.014125346,0.031906664,-0.03057722,-0.027087428,-0.023597637,-0.022434372,-0.012878992,0.016285693,-0.021603471,-0.029746316,0.029746316,0.020357117,0.006314861,-0.001158071,0.028749233,-0.045201108,0.011383367,0.011134096,-0.021437289,-0.035728816,0.001827986,0.008267482,-0.057498466,0.01213118,-0.01213118,-0.040548053,0.010718645,0.004798463,-0.004881553,-0.019526213,-0.008558298,0.0059825,-0.000262254,-0.017615138,0.005193142,0.019692395,-0.00198378,-0.002845842,0.012546631,0.006107135,-0.008225936,-0.008890659,0.015870241,0.00517237,0.002596571,-0.010427829,-0.019110762,0.024262359,0.012048089,-0.032405205,0.006522586,0.013211353,0.013211353,-0.038221523,-0.007727395,-0.008267482,-0.019276943,0.001474852,0.031408124,-0.035562634,0.017532047,-0.023431456,-0.015454791,-0.011383367,0.016534964,-0.02176965,0.008682934,0.027253609,0.020190936,-0.0247609,-0.007311944,0.009555381,-0.01852913,-0.011632638,0.011549547,0.027419789,-0.034067012,-0.01229736,0.0307434,0.003946788,0.0046946,0.037722982,0.03057722,-0.010427829,0.002284982,0.033236109,0.030078677,-0.013377533,0.007395034,-0.012048089,0.040714234,-0.028749233,-0.000102565,-0.0059825,-0.041046593,0.017698228,-0.006356406,0.003178203,0.009056839,0.023099095,0.00606559,0.011881908,-0.02127111,-0.001126912,-0.027087428,0.011134096,0.001204809,-0.017033506,0.011051006,-0.014374617,0.017864408,0.023431456,-0.002077257,-0.026755067,-0.043871664,0.025757983,-0.006190225,0.001152877,0.011798819,-0.024262359,0.006564131,-0.070128188,-0.004362239,0.012962082,-0.013626805,-0.001402148,-0.012214269,0.011217186,-0.015953332,0.015787151,0.011134096,0.027253609,0.024262359,-0.048192356,0.009970833,0.018944582,-0.00517237,0.021935832,0.02775215,0.003406701,-0.010884825,0.075113602,-0.015953332,0.007727395,0.026755067,-0.006190225,-0.012712811,0.013377533,0.005940954,-0.008309027,0.02459472,0.002316141,-0.022434372,-0.012712811,0.03057722,-0.015787151,0.026755067,-0.001069787,0.03988333,-0.003697517,0.039550968,-0.019027673,-0.0059825,-0.00031029,-0.012546631,-0.003614427,0.007478124,0.005525503,0.032571387,-0.011798819,-0.011466458,-0.00606559,-0.011798819,0.018446039,0.007976666,0.018944582,-0.02176965,0.026588887,-0.006273315,-0.012463541,-0.007395034,0.012048089,-0.029247776,0.015454791,-0.007145763,0.006481041,-0.015620971,-0.00388447,-0.025757983,-0.001651419,-0.032903746,-0.005068507,0.03938479,0.003926015,0.004715373,0.022600554,-0.012546631,0.022932915,0.007810486,0.040714234,0.019941665,0.013543714,0.003406701,0.010884825,-0.03988333,0.042209856,-0.022766734,0.027419789,-0.029580137,0.043206941,0.022932915,0.021104928,-0.056833744,0.005193142,0.036061179,-0.012878992,0.008516753,-0.02758597,-0.030244859,-0.011798819,0.001111332,-0.014125346,-0.014125346,0.019027673,0.029081594,0.018861491,0.013626805,0.06846638,0.023099095,0.041378956,0.001599488,-0.028749233,0.017781317,0.016285693,0.021603471,-0.018113678,0.011300277,-0.032239024,0.022434372,-0.02459472,-0.013626805,0.005483958,0.013460624,-0.031574301,-0.015620971,0.016451873,0.014790068,-0.008849114,0.011134096,0.00461151,0.015122429,0.036227357,0.00206687,0.000877641,0.022102011,-0.028250692,0.022600554,-0.026422706,0.004029878,-0.032072846,0.017116595,0.010884825,0.019609304,0.00614868,0.005733229,0.016119512,0.002866614,-0.014540797,0.012463541,-0.003905243,0.003759835,-0.000485559,-0.022766734,-0.016285693,0.037722982,0.009513836,0.001506011,0.011964999,0.004029878,0.019941665,-0.000965924,0.002129188,0.015205519,0.071125269,0.022932915,0.005940954,-0.00044661,0.010220103,-0.03423319,-0.016285693,-0.016867325,-0.000659529,-0.008018211,-0.011383367,0.000016634,0.004071423,-0.029413955,0.019941665,-0.00913993,-0.024096178,0.010635555,0.010594009,0.001547556,0.036227357,-0.030078677,0.020772567,0.022268193,-0.014125346,0.008766023,-0.012962082,-0.007187308,0.017033506,-0.007187308,-0.015205519,-0.005608593,0.044536386,-0.001235968,0.007852031,0.001599488,0.005857864,-0.005940954,-0.010510919,-0.005567048,0.006730312,0.016285693,-0.010801735,-0.024428539,0.015122429,-0.02176965,0.01528861,-0.007436579,0.00226421,-0.004715373,0.004507647,0.004341467,0.005525503,-0.031075761,-0.005899409,0.037556801,0.014873158,-0.000342747,0.009970833,-0.019443123,0.023597637,-0.012048089,-0.025259443,0.006024044,-0.01827986,0.010012378,0.016784234,0.013211353,-0.005400868,-0.024428539,-0.02176965,-0.035230275,0.009347656,0.028583053,-0.015704062,-0.017781317,0.00226421,0.001199616,-0.003385928,0.008267482,0.002326528,0.022434372,-0.020190936,-0.015787151,0.000789358,0.031241942,0.011300277,0.001506011,-0.023265276,-0.010967916,0.009056839,0.011300277,-0.030244859,0.007478124,0.001111332,-0.035894997,0.0153717,0.002700434,0.021104928,0.010884825,-0.003344383,0.00768585,0.010386284,0.00452842,-0.014706978,0.028084511,0.013377533,0.014873158,0.046862911,-0.015454791,0.021188019,0.013959166,0.012629721,0.025924165,-0.018695312,-0.00922302,-0.0093892,0.007727395,0.036892079,0.007228854,-0.01229736,0.029247776,-0.004943871,-0.027253609,-0.008433662,0.043206941,0.002825069,0.028583053,-0.023431456,0.034897912,-0.041545134,-0.016534964,0.003053567,-0.012712811,0.002741979,-0.007187308,-0.025093261,-0.045201108,-0.004424557,-0.016618054,-0.008890659,0.008018211,-0.05184833,-0.019526213,-0.013377533,-0.010469374,0.030244859,-0.005068507,0.051183607,0.005483958,-0.006024044,0.035064094,-0.011134096,0.014956249,0.002284982,0.001724123,-0.01229736,0.012629721,0.010261648,0.014540797,0.048857078,-0.029580137,-0.024927082,-0.008350573,-0.03988333,0.000939959,0.013543714,0.013626805,-0.021437289,-0.012962082,0.006771857,0.013709894,-0.0059825,0.035396457,-0.006439496,-0.029580137,0.0046946,0.019609304,-0.007270399,0.014291527,-0.015620971,0.00118923,-0.00760276,-0.017199686,0.023265276,0.026588887,-0.030078677,-0.016701145,-0.025757983,0.004964644,0.026588887,0.043206941,0.011051006,-0.009846197,0.028915415,0.031574301,0.023763817,0.009264565,-0.008433662,-0.035064094,-0.000579035,-0.0247609,0.014125346,0.016618054,0.028749233,-0.052513052,-0.016867325,-0.01238045,0.002741979,0.013709894,0.010718645,0.013626805,0.009596926,-0.004403784,-0.02758597,-0.000945152,0.000420645,0.003759835,0.012546631,-0.011881908,0.008392117,0.012795902,0.005483958,-0.009763107,0.006397951,-0.010801735,0.012795902,-0.03938479,0.005733229,0.005733229,-0.000433627,0.015454791,0.002357686,-0.006564131,0.030244859,-0.024428539,0.016036423,0.014291527,-0.004964644,0.029413955,0.040381871,0.012629721,-0.033568468,-0.026422706,-0.037889164,-0.034399372,-0.03423319,0.021935832,0.004133741,-0.014623888,-0.013543714,-0.05517194,0.004736145,0.006314861,0.00006037,0.006356406,0.003323611,-0.010344739,0.007062673,0.005899409,-0.00623177,-0.001973394,-0.0555043,0.011881908,0.001350217,-0.033069927,-0.026921248,0.022268193,0.028583053,-0.021021837,0.010884825,0.019692395,-0.005442413,0.031574301,-0.014956249,0.01238045,-0.006356406,0.006273315,-0.003095113,-0.014540797,-0.02176965,0.005006189,-0.002658889,0.042542219,-0.02176965,0.017199686,-0.016701145,-0.001599488,0.016950415,-0.021188019,0.017864408,0.023763817,-0.000669915,0.025093261,0.021104928,0.008807569,0.037390623,-0.025591804,-0.003178203,-0.001319058,0.020523297,0.005255459,0.019276943,-0.00226421,0.00760276,-0.057166107,-0.006896493,-0.034067012,0.043871664,0.038221523,0.008101301,0.03988333,0.015870241,0.000955538,-0.004299921,-0.002928932,-0.002118802,-0.020523297,-0.001168457,-0.011134096,-0.000685495,0.003323611,0.011549547,0.034565553,0.029247776,-0.029746316,0.005213914,0.019110762,-0.003302838,0.026422706,0.028915415,-0.036227357,0.033236109,0.038387705,-0.035230275,0.004071423,-0.021935832,0.002928932,0.000976311,0.000527104,-0.006854947,-0.003822153,-0.001199616,0.019858574,-0.002762751,0.039052427,-0.008641388,0.032239024,-0.002295369,0.035396457,0.044536386,-0.029413955,0.025093261,-0.03423319,-0.016867325,-0.008849114,0.008433662,-0.004486875,0.017033506,0.006730312,-0.008599843,-0.008225936,-0.024428539,0.006564131,-0.007561215,-0.032072846,-0.019941665,0.035396457,0.019276943,0.010261648,0.005857864,0.032239024,-0.044204023,-0.018944582,0.002409618,0.032903746,0.05517194,-0.03655972,0.007976666,0.030909581,-0.023929998,0.016368784,0.01528861,-0.00768585,0.02176965,0.013626805,-0.02459472,0.04021569,-0.032737568,0.006854947,-0.011383367,0.014873158,-0.02176965,0.00243039,0.0093892,0.0093892,-0.029580137,0.019858574,0.01827986,0.024428539,0.017864408,-0.028250692,-0.001111332,0.056169022,0.007478124,-0.010718645,0.041046593,-0.015704062,0.034731735,0.002523867,-0.032571387,0.004341467,-0.023597637,-0.011881908,-0.035562634,0.006688767,0.007810486,-0.012712811,0.022600554,0.03057722,0.022600554,0.010552464,0.0307434,-0.009638472,0.02176965,-0.018030589,0.024262359,-0.036227357,-0.020772567,0.001641033,-0.022932915,-0.014623888,0.018362951,0.002575798,0.006190225,-0.011051006,0.021021837,0.019110762,0.02127111,-0.028583053,-0.052180689,-0.014291527,-0.010552464,0.036393538,0.042542219,-0.04586583,-0.001869531,0.008350573,-0.008516753,-0.020772567,0.000294711,0.015704062,-0.014457707,-0.020772567,0.008766023,-0.026588887,-0.004736145,-0.028084511,-0.007519669,0.010552464,-0.016534964,0.006190225,0.012962082,-0.016618054,0.012546631,0.02459472,0.022932915,0.020440206,-0.027918331,-0.008059756,0.020689478,-0.014623888,-0.011466458,-0.006896493,-0.020024756,-0.031408124,0.021603471,0.007270399,-0.03057722,0.008350573,-0.021437289,0.00072704,-0.043871664,0.006314861,-0.017199686,0.02176965,0.024262359,-0.020357117,-0.000542683,-0.005213914,0.001963008,-0.00064395,-0.022434372,0.022102011,-0.006688767,-0.028583053,0.002191506,-0.005047734,0.002368073,0.014956249,0.023929998,-0.003302838,-0.032239024,0.022268193,-0.013377533,-0.010801735,0.003676744,0.009015295,-0.039550968,0.010884825,-0.033568468,0.013709894,-0.029413955,-0.006356406,-0.020274026,0.023597637,0.030909581,0.02176965,0.016285693,0.045533467,-0.024096178,-0.030909581,-0.026422706,0.002783524,-0.010594009,0.004362239,-0.070792913,0.009472291,-0.022102011,0.011134096,-0.017448956,-0.011549547,-0.056833744,0.00082571,0.026588887,-0.013709894,0.002575798,0.02176965,-0.000568649,-0.007270399,0.004279149,-0.042874578,-0.026588887,0.016784234,0.036725901,-0.028915415,-0.009513836,0.017448956,0.002035712,-0.007228854,0.011383367,0.011134096,0.028915415,0.0153717,-0.027087428,0.043871664,-0.005089279,0.006314861,0.014291527,-0.003240521,0.025924165,-0.001230775,-0.015454791,-0.012629721,0.031740483,-0.039717149,-0.031075761,0.006605676,-0.008641388,-0.032239024,0.037722982,-0.03705826,-0.024096178,0.001911076,0.018196769,-0.007353489,-0.011300277,-0.029081594,0.004590738,-0.018030589,-0.026588887,0.010261648,0.038221523,0.008392117,-0.01213118,0.018362951,-0.034731735,-0.017781317,-0.011632638,0.005255459,0.000851675,0.014208436,-0.000039922,-0.000228498,0.014790068,0.00913993,0.0004544,-0.011798819,-0.020440206,0.005899409,0.008350573,0.006314861,0.040548053,0.003427474,-0.010801735,0.008599843,0.002586185,-0.041212775,-0.016368784,0.020024756,0.000965924,-0.021021837,-0.008475208,0.0307434,0.00760276,0.003614427,0.003489791,-0.025924165,0.000799744,0.013460624,-0.020440206,0.048857078,0.004320694,-0.048857078,0.015039339,-0.029580137,0.025924165,0.018861491,-0.014706978,0.000576439,-0.031241942,0.0307434,0.0153717,0.014706978,0.028084511,-0.01238045,-0.031241942,0.018196769,-0.034897912,0.008142847,0.010718645,0.00922302,0.047859997,-0.00072704,-0.010427829,0.007104218,0.026256526,0.012214269,-0.013377533,-0.05184833,0.005276232,0.021935832,-0.007021128,0.009804652,0.007893575,0.024096178,-0.002357686,0.033900831,-0.031740483,0.034565553,-0.036892079,-0.015454791,0.030411039,0.010552464,-0.022268193,-0.001391762,-0.008184392,-0.008558298,0.008475208,-0.009929287,0.010427829,0.041378956,-0.009555381,-0.008724478,-0.039052427,0.034731735,-0.014291527,0.023099095,0.029081594,0.007519669,0.010967916,-0.008142847,0.006190225,-0.031075761,0.033734649,-0.001672192,0.047859997,-0.022434372,-0.007395034,0.01213118,0.056169022,0.002762751,-0.029413955,-0.000763392,-0.015787151,0.010801735,0.008142847,0.029912498,-0.0018176,0.033236109,-0.046198189,-0.002492708,-0.006730312,0.008807569,-0.03655972,0.009430746,-0.053842496,-0.060489718,0.046862911,0.002783524,-0.0187784,0.000571246,0.00760276,0.002482322,0.001319058,-0.014291527,0.001464466,-0.011632638,-0.012463541,-0.004902326,0.000841289,0.006688767,0.030244859,0.018944582,0.000532297,-0.015620971,0.007104218,0.005608593,0.002035712,-0.023763817,0.003032795,0.010594009,-0.023597637,-0.042376038,-0.005255459,0.001199616,-0.0247609,-0.007893575,-0.011632638,0.013045172,-0.005691683,-0.007104218,0.027419789,-0.004320694,-0.005525503,-0.026090344,0.031408124,-0.012795902,-0.007062673,0.000939959,0.000030185,0.004175286,0.014291527,0.033236109,-0.038720068,0.074116521,-0.019692395,0.001589101,0.013792985,-0.056169022,-0.028749233,-0.001599488,0.004175286,0.014790068,0.00162026,-0.007519669,-0.041378956,0.016534964,-0.003572882,-0.002575798,-0.019526213,-0.00922302,-0.033900831,-0.042043675,-0.014208436,0.010178559,0.017698228,0.032239024,0.00913993,0.009264565,-0.012463541,-0.005857864,-0.015870241,0.004486875,0.018861491,-0.000176567,-0.029912498,0.016784234,0.012546631,0.051183607,0.023597637,0.032903746,0.0153717,-0.013377533,-0.000016634,-0.061486799,-0.034565553,0.016119512,0.00380138,-0.003863698,0.004362239,-0.017532047,-0.002762751,0.000102565,-0.021437289,0.029247776,-0.010718645,-0.015870241,-0.016285693,0.010220103,-0.000373906,0.012962082,0.010137013,-0.007228854,0.02127111,-0.029247776,0.018113678,0.009181475,0.002233051,0.014374617,-0.00396756,0.010801735,0.007644305,0.020855658,0.014790068,0.032737568,-0.037390623,0.003032795,0.010801735,-0.01553788,-0.014790068,0.019526213,-0.017947499,-0.007893575,-0.011964999,-0.00614868,-0.005857864,-0.032072846,-0.025924165,0.001163264,-0.013294443,-0.01553788,0.016701145,-0.013460624,-0.001111332,0.00760276,0.01553788,-0.033734649,0.048192356,-0.003282066,0.031906664,0.002845842,0.003240521,0.017116595,-0.01827986,0.006896493,-0.00760276,-0.009680017,-0.02459472,-0.020689478,-0.053510133,0.00614868,-0.010552464,-0.032405205,-0.0307434,0.025093261,0.003635199,-0.008101301,-0.00606559,-0.007436579,0.00606559,-0.012962082,0.026921248,0.009098385,0.046530552,-0.011632638,0.032571387,-0.033900831,0.009846197,0.002866614,0.032903746,0.008973749,0.012712811,0.040049512,0.013626805,-0.026256526,-0.031408124,0.036227357,0.011964999,-0.006024044,-0.001848759,0.015704062,-0.021188019,-0.035064094,-0.013377533,-0.009721561,-0.01553788,0.008766023,0.005400868,0.004507647,-0.018362951,-0.026588887,-0.00913993,-0.025591804,0.035894997,0.021935832,-0.031906664,-0.000602404,0.026422706,-0.006397951,0.006647222,0.0093892,0.020606387,0.00913993,0.015620971,-0.024096178,0.00063616,-0.006564131,0.01238045,-0.013709894,0.000563456,-0.009887742,0.016618054,-0.003323611,0.000451803,0.001609874,0.008682934,0.025259443,0.020024756,-0.027253609,0.010884825,0.028250692,-0.054839578,0.033568468,-0.004902326,0.003053567,0.020274026,-0.015704062,-0.00614868,-0.063813329,0.002482322,0.009763107,-0.001609874,-0.012214269,0.020107845,0.001921462,0.018695312,-0.004923099,0.007270399,-0.023763817,0.005234687,0.003406701,0.002565412,0.007104218,0.000841289,0.016202603,0.01827986,-0.031075761,-0.035562634,-0.025259443,-0.007021128,0.000641353,-0.033069927,0.010718645,0.005650138,0.024927082,-0.002658889,0.00380138,0.009929287,-0.004258377,-0.039717149,-0.022434372,0.025425622,0.00198378,0.006356406,0.017615138,-0.032072846,0.046862911,-0.026921248,0.005940954,0.021603471,-0.002253824,0.002825069,-0.030411039,-0.003115885,0.023597637,-0.004320694,-0.007852031,0.018030589,-0.008724478,-0.005733229,0.032903746,0.013876075,0.015454791,-0.023597637,0.005151597,-0.035396457,0.02176965,-0.012463541,0.025591804,0.014540797,-0.027918331,0.004154514,0.008724478,0.016036423,-0.015870241,0.005400868,-0.017365867,-0.044868745,-0.000485559,0.020357117,-0.00760276,-0.023265276,-0.012048089,0.008433662,0.018362951,-0.006979583,0.0307434,0.008392117,0.027087428,-0.019360034,0.016119512,0.02127111,0.010801735,0.00299125,0.002949705,0.012463541,-0.000025966,0.015953332,0.029413955,0.020024756,0.003780607,0.022102011,-0.031740483,0.01553788,0.010386284,0.028749233,-0.010884825,0.008682934,-0.003531337,-0.05517194,-0.019360034,-0.009347656,-0.002025325,0.003261293,-0.025425622,-0.01553788,-0.000251867,0.014291527,0.012546631,0.035728816,-0.007062673,-0.006605676,0.000384293,-0.005047734,-0.032571387,-0.021188019,-0.02127111,-0.016036423,0.008475208,-0.004009106,0.014291527,-0.008101301,0.004424557,-0.038221523,-0.019360034,0.015039339,-0.015454791,-0.029580137,0.035728816,0.004466102,-0.000778971,-0.005068507,-0.017781317,0.00477769,0.001838372,0.030244859,0.01213118,-0.022932915,-0.005359322,0.037390623,0.005899409,0.002046098,0.037889164,0.016701145,0.010303194,0.02127111,-0.009513836,-0.022268193,-0.005650138,-0.00388447,0.016534964,-0.023265276,-0.00054528,0.004819236,0.004715373,-0.001178843,-0.051183607,-0.00614868,-0.010552464,-0.002741979,-0.009181475,0.023597637,0.019193852,0.017199686,-0.036393538,-0.00243039,-0.015870241,-0.014706978,-0.00145408,0.016368784,-0.011632638,-0.014623888,-0.01229736,-0.01553788,0.040880412,0.023929998,-0.014623888,0.002648502,0.031906664,-0.033734649,-0.026755067,0.002783524,0.005359322,0.009970833,0.001412535,0.016950415,0.016285693,-0.006730312,-0.02459472,0.050851244,-0.001827986,-0.020855658,0.020938748,0.004071423,-0.021603471,-0.007852031,-0.023929998,-0.029912498,-0.003365156,0.017365867,-0.010427829,-0.011715728,0.014956249,0.011383367,0.032405205,-0.028583053,-0.017448956,0.018446039,0.017615138,0.035728816,-0.010095468,-0.00254464,0.010012378,0.028250692,-0.020855658,-0.002305755,-0.001002276,-0.014125346,-0.007021128,-0.028583053,-0.045533467,-0.02758597,-0.020440206,0.001350217,0.010053922,0.020689478,-0.017615138,0.026422706,0.040880412,0.012463541,-0.010718645,-0.014706978,0.068134025,0.038720068,0.047859997,-0.012546631,0.015704062,-0.002087643,-0.010303194,0.014790068,0.018612221,0.007395034,-0.014790068,-0.017864408,-0.005068507,-0.054507218,0.004902326,-0.004050651,0.021603471,0.019775484,-0.024262359,-0.012795902,0.021935832,-0.004009106,-0.039717149,0.037556801,-0.016701145,-0.025757983,0.005483958,-0.005110051,-0.021935832,-0.003406701,0.010594009,0.015787151,-0.049854163,0.007727395,-0.008392117,-0.017199686,0.009970833,-0.008849114,-0.013876075,-0.0059825,-0.015870241,-0.007104218,0.028250692,-0.029081594,0.026921248,0.00299125,-0.017781317,0.042542219,0.018196769,0.052845411,-0.004819236,-0.014125346,0.02459472,-0.011715728,0.015787151,-0.005774774,0.004902326,-0.004964644,-0.02758597,-0.013959166,-0.033568468,-0.027918331,-0.017698228,0.003489791,-0.020024756,-0.021603471,0.019360034,0.028084511,-0.002503094,-0.018861491,-0.002295369,0.050851244,-0.020689478,-0.000459593,-0.026090344,0.002783524,-0.005899409,-0.026921248,-0.0093892,-0.004112968,0.031574301,0.003926015,-0.032903746,-0.046198189,-0.019027673,-0.00913993,0.030411039,-0.019443123,0.001963008,-0.005193142,0.010884825,-0.02127111,-0.025259443,0.032737568,0.00089322,0.003282066,0.001713737,-0.006439496,0.016867325,-0.031574301,0.031075761,-0.009970833,0.022600554,-0.023597637,-0.014956249,0.004009106,0.00198378,0.026588887,-0.023431456,-0.023763817,-0.013294443,-0.029746316,0.001381376,-0.042874578,-0.00913993,0.014873158,0.016202603,0.012878992,-0.006024044,0.009638472,0.010552464,-0.017033506,-0.027087428,0.044536386,-0.038055345,0.001329444,-0.019609304,0.023597637,-0.043206941,0.040049512,0.017615138,0.046862911,0.02127111,0.013294443,-0.039550968,-0.018861491,-0.019609304,-0.033734649,0.00623177,-0.017199686,0.041212775,-0.017781317,-0.024262359,0.054507218,-0.009721561,0.005816319,-0.00206687,-0.008766023,0.017365867,-0.000737426,0.018362951,-0.023597637,-0.019110762,0.021935832,0.041545134,-0.020357117,-0.017615138,0.044868745,-0.018030589,-0.032405205,-0.050186522,-0.014540797,0.005213914,-0.006688767,0.047527634,0.040714234
24 ],
25 'numCandidates': 150,
26 'limit': 10
27 }
28 }, {
29 '$project': {
30 '_id': 0,
31 'plot': 1,
32 'title': 1,
33 'score': {
34 '$meta': 'vectorSearchScore'
35 }
36 }
37 }
38 ];
39 // run pipeline
40 const result = coll.aggregate(agg);
41
42 // print results
43 await result.forEach((doc) => console.dir(JSON.stringify(doc)));
44 } finally {
45 await client.close();
46 }
47}
48run().catch(console.dir);
1'{"plot":"At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.","title":"About Time","score":0.7710106372833252}'
2'{"plot":"A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.","title":"Retroactive","score":0.760047972202301}'
3'{"plot":"A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...","title":"A.P.E.X.","score":0.7576861381530762}'
4'{"plot":"An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.","title":"Timecop","score":0.7576561570167542}'
5'{"plot":"After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.","title":"Back to the Future Part II","score":0.7521393895149231}'
6'{"plot":"A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.","title":"Thrill Seekers","score":0.7509932518005371}'
7'{"plot":"Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...","title":"Timerider: The Adventure of Lyle Swann","score":0.7502642869949341}'
8'{"plot":"Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.","title":"The Time Machine","score":0.7502503395080566}'
9`{"plot":"A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.","title":"The Time Traveler's Wife","score":0.749496340751648}`
10'{"plot":"A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.","title":"The Final Countdown","score":0.7469133734703064}'

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

1const { MongoClient } = require("mongodb");
2
3// connect to your Atlas cluster
4const uri = "<connection-string>";
5
6const client = new MongoClient(uri);
7
8async function run() {
9 try {
10 await client.connect();
11
12 // set namespace
13 const database = client.db("sample_mflix");
14 const coll = database.collection("embedded_movies");
15
16 // define pipeline
17 const agg = [
18 {
19 '$vectorSearch': {
20 'index': 'vector_index',
21 'path': 'plot_embedding_voyage_3_large',
22 'filter': {
23 '$and': [
24 {
25 'year': {
26 '$gt': 1955
27 },
28 'year': {
29 '$lt': 1975
30 }
31 }
32 ]
33 },
34 'queryVector': [-0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558],
35 'numCandidates': 150,
36 'limit': 10
37 }
38 }, {
39 '$project': {
40 '_id': 0,
41 'title': 1,
42 'plot': 1,
43 'year': 1,
44 'score': {
45 '$meta': 'vectorSearchScore'
46 }
47 }
48 }
49 ];
50 // run pipeline
51 const result = coll.aggregate(agg);
52
53 // print results
54 await result.forEach((doc) => console.dir(JSON.stringify(doc)));
55 } finally {
56 await client.close();
57 }
58}
59run().catch(console.dir);
1'{"plot":"A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.","title":"Chitty Chitty Bang Bang","year":1968,"score":0.7489712834358215}'
2`{"plot":"While hearing the story of \\"Gulliver's Travels\\", a young boy dreams he is the title character on the island of Lilliput .","title":"The New Gulliver","year":1935,"score":0.7459166049957275}`
3'{"plot":"A pilot, stranded in the desert, meets a little boy who is a prince on a planet.","title":"The Little Prince","year":1974,"score":0.7346078753471375}'
4'{"plot":"Pistol-packing tomboy, and grandfather come to discover band of bank robbing bandits taking refuge in the neighboring ghost town.","title":"Yellow Sky","year":1948,"score":0.7290171384811401}'
5'{"plot":"A boy raised by wolves tries to adapt to human village life.","title":"Jungle Book","year":1942,"score":0.7287350296974182}'
6'{"plot":"In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.","title":"In Search of the Castaways","year":1962,"score":0.7281590104103088}'
7'{"plot":"Peter Pan enters the nursery of the Darling children and, with the help of fairy dust, leads them off to Never Never Land, where they meet the nefarious Captain Hook.","title":"Peter Pan","year":1924,"score":0.7273794412612915}'
8`{"plot":"In Africa, the girl Jill Young trades a baby gorilla with two natives and raises the animal. Twelve years later, the talkative and persuasive promoter Max O'Hara organizes a safari to ...","title":"Mighty Joe Young","year":1949,"score":0.7219074368476868}`
9'{"plot":"A living puppet, with the help of a cricket as his conscience, must prove himself worthy to become a real boy.","title":"Pinocchio","year":1940,"score":0.721661388874054}'
10'{"plot":"An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.","title":"Bedknobs and Broomsticks","year":1971,"score":0.720349133014679}'

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string time travel. It considers up to 150 nearest neighbors, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot and title fields in the results.

  • Add a field named score that shows the vector search score for each document in the results.

Work with a runnable version of this example as a Python notebook.

1import pymongo
2
3# connect to your Atlas cluster
4client = pymongo.MongoClient("<connection-string>")
5
6# define pipeline
7pipeline = [
8 {
9 '$vectorSearch': {
10 'index': 'vector_index',
11 'path': 'plot_embedding_voyage_3_large',
12 'queryVector': [-0.034731735,0.008558298,-0.0153717,-0.029912498,0.011549547,0.010261648,-0.011964999,-0.023265276,0.010303194,-0.006896493,-0.00054528,0.003926015,-0.025757983,0.027419789,0.001199616,-0.036227357,-0.005297005,0.021935832,0.010303194,-0.019193852,0.025093261,-0.040049512,-0.033900831,-0.011466458,-0.01827986,-0.0153717,0.023265276,0.007727395,0.000114249,0.005317777,-0.043871664,-0.02127111,-0.019609304,0.016368784,-0.004756918,0.003552109,0.006522586,-0.005400868,-0.015620971,-0.034565553,-0.018695312,-0.023099095,0.050851244,-0.034731735,0.004819236,0.022268193,-0.095719993,0.05517194,-0.046198189,-0.036393538,0.007187308,-0.02459472,-0.036725901,0.009472291,0.019027673,0.020938748,-0.011051006,0.027087428,0.04586583,-0.022600554,-0.05517194,0.044204023,0.01213118,0.047859997,-0.03938479,0.002928932,0.002056484,0.019443123,-0.028583053,0.013543714,0.022932915,0.011632638,0.004923099,0.000389486,0.020024756,-0.024096178,-0.022766734,0.011217186,-0.003198975,0.007104218,-0.047195274,-0.013377533,0.013294443,0.024096178,-0.056501385,-0.026755067,-0.008433662,-0.001911076,0.007976666,-0.008101301,-0.014042255,0.008641388,-0.02176965,0.010012378,-0.000607598,-0.024927082,0.024927082,-0.018612221,-0.001184036,0.005567048,0.001324251,-0.019526213,-0.023597637,0.060489718,-0.010178559,-0.019609304,0.004112968,-0.011217186,-0.031574301,-0.008766023,0.005483958,-0.061819162,-0.023431456,-0.040714234,0.015039339,0.026422706,0.016202603,0.004653055,0.041046593,-0.018030589,0.040381871,-0.002638116,0.013045172,0.004216831,0.005650138,0.027419789,0.003926015,-0.028749233,0.004798463,-0.030244859,0.063813329,0.007145763,-0.017448956,0.025591804,-0.045201108,0.010718645,0.002804297,0.014291527,0.04586583,-0.015205519,-0.021603471,-0.035230275,0.00760276,0.033236109,0.016534964,-0.043206941,-0.003115885,-0.026256526,0.005940954,0.016534964,0.024262359,-0.001630647,0.028084511,-0.012795902,0.007270399,0.001381376,-0.009763107,-0.006896493,0.008433662,-0.019360034,0.000386889,0.030411039,0.025591804,0.010469374,0.037722982,-0.001147684,-0.005400868,0.052845411,-0.052513052,0.00768585,-0.004299921,0.00922302,0.011881908,0.012962082,-0.068798743,0.003593654,0.020938748,-0.013792985,-0.034565553,-0.007519669,-0.04021569,-0.020689478,0.006273315,0.046862911,0.006107135,0.002638116,-0.013792985,-0.005400868,-0.020274026,0.007644305,-0.010801735,0.026422706,0.043871664,0.003780607,0.010261648,-0.064145692,0.011881908,-0.009056839,0.009347656,-0.02459472,0.026422706,0.033236109,0.041212775,0.019027673,-0.00315743,0.004424557,0.020689478,-0.0153717,-0.015205519,-0.034897912,0.020274026,0.016867325,0.040714234,-0.022766734,-0.010967916,0.026256526,0.007062673,-0.015953332,-0.007727395,0.031574301,-0.002887387,-0.00614868,0.004569965,0.019027673,0.012878992,0.011798819,0.004258377,-0.019193852,-0.021437289,-0.021603471,0.000301202,-0.051183607,-0.004985416,-0.030078677,0.012629721,0.065142773,-0.031740483,-0.021104928,-0.03938479,-0.003365156,-0.016036423,0.036393538,0.009804652,-0.018612221,0.060489718,-0.003697517,0.000547876,0.063480966,0.02758597,0.010053922,-0.003655972,-0.001485239,0.018362951,0.021104928,-0.003905243,0.019443123,-0.002658889,-0.00380138,-0.013626805,0.035894997,0.035396457,-0.005691683,0.002762751,0.012878992,-0.009596926,-0.009970833,-0.015953332,0.022434372,0.00614868,-0.021188019,0.001557943,-0.020190936,0.009763107,0.017448956,0.006730312,0.005567048,0.019692395,-0.00218112,-0.016867325,0.006854947,0.007976666,0.019193852,0.040880412,0.007353489,-0.02127111,-0.031906664,-0.026755067,-0.017947499,0.040381871,0.042209856,0.00913993,-0.0307434,-0.017781317,-0.015039339,0.03057722,0.017532047,0.0187784,-0.060822077,0.002928932,-0.026422706,-0.005899409,0.039717149,0.026588887,-0.000971118,0.004923099,-0.013626805,0.0187784,-0.031408124,-0.000695881,0.050851244,-0.014457707,-0.007311944,-0.001293092,-0.002139574,-0.019276943,0.00290816,0.019360034,-0.017781317,0.002160347,0.016618054,-0.006522586,0.011798819,0.029247776,-0.02775215,0.010344739,-0.018362951,-0.036725901,-0.015870241,0.015704062,-0.012463541,0.02459472,-0.024096178,0.001152877,-0.031408124,0.025425622,0.027087428,0.00922302,0.034565553,0.015704062,-0.020689478,-0.00517237,-0.014706978,-0.001589101,0.026090344,0.014956249,0.011715728,0.004299921,-0.00913993,0.022434372,-0.03705826,0.048524719,-0.030411039,0.008433662,0.017033506,-0.000511525,-0.031408124,0.005940954,-0.012962082,-0.031574301,0.017448956,0.010178559,-0.011383367,-0.020107845,-0.005151597,0.006647222,0.013128263,0.007145763,0.008059756,-0.045201108,-0.004943871,0.015787151,-0.045201108,-0.020772567,-0.020274026,0.028250692,-0.024262359,-0.004424557,0.009804652,0.000472576,-0.005691683,0.001443693,-0.013294443,0.001412535,0.013211353,-0.01213118,-0.002118802,0.017781317,-0.007353489,-0.031075761,-0.004923099,0.011383367,-0.004486875,-0.010178559,0.016618054,0.014457707,0.023763817,-0.02459472,-0.00388447,0.012546631,-0.007519669,0.015704062,-0.014291527,0.009680017,-0.035562634,0.023763817,0.053510133,-0.0555043,-0.003572882,0.022102011,0.021603471,-0.017282777,-0.001474852,-0.043539301,0.007810486,-0.025757983,-0.005400868,0.029912498,-0.00760276,0.014125346,0.030909581,-0.03340229,-0.009680017,0.018030589,0.008849114,0.03057722,0.019775484,0.014125346,0.031906664,-0.03057722,-0.027087428,-0.023597637,-0.022434372,-0.012878992,0.016285693,-0.021603471,-0.029746316,0.029746316,0.020357117,0.006314861,-0.001158071,0.028749233,-0.045201108,0.011383367,0.011134096,-0.021437289,-0.035728816,0.001827986,0.008267482,-0.057498466,0.01213118,-0.01213118,-0.040548053,0.010718645,0.004798463,-0.004881553,-0.019526213,-0.008558298,0.0059825,-0.000262254,-0.017615138,0.005193142,0.019692395,-0.00198378,-0.002845842,0.012546631,0.006107135,-0.008225936,-0.008890659,0.015870241,0.00517237,0.002596571,-0.010427829,-0.019110762,0.024262359,0.012048089,-0.032405205,0.006522586,0.013211353,0.013211353,-0.038221523,-0.007727395,-0.008267482,-0.019276943,0.001474852,0.031408124,-0.035562634,0.017532047,-0.023431456,-0.015454791,-0.011383367,0.016534964,-0.02176965,0.008682934,0.027253609,0.020190936,-0.0247609,-0.007311944,0.009555381,-0.01852913,-0.011632638,0.011549547,0.027419789,-0.034067012,-0.01229736,0.0307434,0.003946788,0.0046946,0.037722982,0.03057722,-0.010427829,0.002284982,0.033236109,0.030078677,-0.013377533,0.007395034,-0.012048089,0.040714234,-0.028749233,-0.000102565,-0.0059825,-0.041046593,0.017698228,-0.006356406,0.003178203,0.009056839,0.023099095,0.00606559,0.011881908,-0.02127111,-0.001126912,-0.027087428,0.011134096,0.001204809,-0.017033506,0.011051006,-0.014374617,0.017864408,0.023431456,-0.002077257,-0.026755067,-0.043871664,0.025757983,-0.006190225,0.001152877,0.011798819,-0.024262359,0.006564131,-0.070128188,-0.004362239,0.012962082,-0.013626805,-0.001402148,-0.012214269,0.011217186,-0.015953332,0.015787151,0.011134096,0.027253609,0.024262359,-0.048192356,0.009970833,0.018944582,-0.00517237,0.021935832,0.02775215,0.003406701,-0.010884825,0.075113602,-0.015953332,0.007727395,0.026755067,-0.006190225,-0.012712811,0.013377533,0.005940954,-0.008309027,0.02459472,0.002316141,-0.022434372,-0.012712811,0.03057722,-0.015787151,0.026755067,-0.001069787,0.03988333,-0.003697517,0.039550968,-0.019027673,-0.0059825,-0.00031029,-0.012546631,-0.003614427,0.007478124,0.005525503,0.032571387,-0.011798819,-0.011466458,-0.00606559,-0.011798819,0.018446039,0.007976666,0.018944582,-0.02176965,0.026588887,-0.006273315,-0.012463541,-0.007395034,0.012048089,-0.029247776,0.015454791,-0.007145763,0.006481041,-0.015620971,-0.00388447,-0.025757983,-0.001651419,-0.032903746,-0.005068507,0.03938479,0.003926015,0.004715373,0.022600554,-0.012546631,0.022932915,0.007810486,0.040714234,0.019941665,0.013543714,0.003406701,0.010884825,-0.03988333,0.042209856,-0.022766734,0.027419789,-0.029580137,0.043206941,0.022932915,0.021104928,-0.056833744,0.005193142,0.036061179,-0.012878992,0.008516753,-0.02758597,-0.030244859,-0.011798819,0.001111332,-0.014125346,-0.014125346,0.019027673,0.029081594,0.018861491,0.013626805,0.06846638,0.023099095,0.041378956,0.001599488,-0.028749233,0.017781317,0.016285693,0.021603471,-0.018113678,0.011300277,-0.032239024,0.022434372,-0.02459472,-0.013626805,0.005483958,0.013460624,-0.031574301,-0.015620971,0.016451873,0.014790068,-0.008849114,0.011134096,0.00461151,0.015122429,0.036227357,0.00206687,0.000877641,0.022102011,-0.028250692,0.022600554,-0.026422706,0.004029878,-0.032072846,0.017116595,0.010884825,0.019609304,0.00614868,0.005733229,0.016119512,0.002866614,-0.014540797,0.012463541,-0.003905243,0.003759835,-0.000485559,-0.022766734,-0.016285693,0.037722982,0.009513836,0.001506011,0.011964999,0.004029878,0.019941665,-0.000965924,0.002129188,0.015205519,0.071125269,0.022932915,0.005940954,-0.00044661,0.010220103,-0.03423319,-0.016285693,-0.016867325,-0.000659529,-0.008018211,-0.011383367,0.000016634,0.004071423,-0.029413955,0.019941665,-0.00913993,-0.024096178,0.010635555,0.010594009,0.001547556,0.036227357,-0.030078677,0.020772567,0.022268193,-0.014125346,0.008766023,-0.012962082,-0.007187308,0.017033506,-0.007187308,-0.015205519,-0.005608593,0.044536386,-0.001235968,0.007852031,0.001599488,0.005857864,-0.005940954,-0.010510919,-0.005567048,0.006730312,0.016285693,-0.010801735,-0.024428539,0.015122429,-0.02176965,0.01528861,-0.007436579,0.00226421,-0.004715373,0.004507647,0.004341467,0.005525503,-0.031075761,-0.005899409,0.037556801,0.014873158,-0.000342747,0.009970833,-0.019443123,0.023597637,-0.012048089,-0.025259443,0.006024044,-0.01827986,0.010012378,0.016784234,0.013211353,-0.005400868,-0.024428539,-0.02176965,-0.035230275,0.009347656,0.028583053,-0.015704062,-0.017781317,0.00226421,0.001199616,-0.003385928,0.008267482,0.002326528,0.022434372,-0.020190936,-0.015787151,0.000789358,0.031241942,0.011300277,0.001506011,-0.023265276,-0.010967916,0.009056839,0.011300277,-0.030244859,0.007478124,0.001111332,-0.035894997,0.0153717,0.002700434,0.021104928,0.010884825,-0.003344383,0.00768585,0.010386284,0.00452842,-0.014706978,0.028084511,0.013377533,0.014873158,0.046862911,-0.015454791,0.021188019,0.013959166,0.012629721,0.025924165,-0.018695312,-0.00922302,-0.0093892,0.007727395,0.036892079,0.007228854,-0.01229736,0.029247776,-0.004943871,-0.027253609,-0.008433662,0.043206941,0.002825069,0.028583053,-0.023431456,0.034897912,-0.041545134,-0.016534964,0.003053567,-0.012712811,0.002741979,-0.007187308,-0.025093261,-0.045201108,-0.004424557,-0.016618054,-0.008890659,0.008018211,-0.05184833,-0.019526213,-0.013377533,-0.010469374,0.030244859,-0.005068507,0.051183607,0.005483958,-0.006024044,0.035064094,-0.011134096,0.014956249,0.002284982,0.001724123,-0.01229736,0.012629721,0.010261648,0.014540797,0.048857078,-0.029580137,-0.024927082,-0.008350573,-0.03988333,0.000939959,0.013543714,0.013626805,-0.021437289,-0.012962082,0.006771857,0.013709894,-0.0059825,0.035396457,-0.006439496,-0.029580137,0.0046946,0.019609304,-0.007270399,0.014291527,-0.015620971,0.00118923,-0.00760276,-0.017199686,0.023265276,0.026588887,-0.030078677,-0.016701145,-0.025757983,0.004964644,0.026588887,0.043206941,0.011051006,-0.009846197,0.028915415,0.031574301,0.023763817,0.009264565,-0.008433662,-0.035064094,-0.000579035,-0.0247609,0.014125346,0.016618054,0.028749233,-0.052513052,-0.016867325,-0.01238045,0.002741979,0.013709894,0.010718645,0.013626805,0.009596926,-0.004403784,-0.02758597,-0.000945152,0.000420645,0.003759835,0.012546631,-0.011881908,0.008392117,0.012795902,0.005483958,-0.009763107,0.006397951,-0.010801735,0.012795902,-0.03938479,0.005733229,0.005733229,-0.000433627,0.015454791,0.002357686,-0.006564131,0.030244859,-0.024428539,0.016036423,0.014291527,-0.004964644,0.029413955,0.040381871,0.012629721,-0.033568468,-0.026422706,-0.037889164,-0.034399372,-0.03423319,0.021935832,0.004133741,-0.014623888,-0.013543714,-0.05517194,0.004736145,0.006314861,0.00006037,0.006356406,0.003323611,-0.010344739,0.007062673,0.005899409,-0.00623177,-0.001973394,-0.0555043,0.011881908,0.001350217,-0.033069927,-0.026921248,0.022268193,0.028583053,-0.021021837,0.010884825,0.019692395,-0.005442413,0.031574301,-0.014956249,0.01238045,-0.006356406,0.006273315,-0.003095113,-0.014540797,-0.02176965,0.005006189,-0.002658889,0.042542219,-0.02176965,0.017199686,-0.016701145,-0.001599488,0.016950415,-0.021188019,0.017864408,0.023763817,-0.000669915,0.025093261,0.021104928,0.008807569,0.037390623,-0.025591804,-0.003178203,-0.001319058,0.020523297,0.005255459,0.019276943,-0.00226421,0.00760276,-0.057166107,-0.006896493,-0.034067012,0.043871664,0.038221523,0.008101301,0.03988333,0.015870241,0.000955538,-0.004299921,-0.002928932,-0.002118802,-0.020523297,-0.001168457,-0.011134096,-0.000685495,0.003323611,0.011549547,0.034565553,0.029247776,-0.029746316,0.005213914,0.019110762,-0.003302838,0.026422706,0.028915415,-0.036227357,0.033236109,0.038387705,-0.035230275,0.004071423,-0.021935832,0.002928932,0.000976311,0.000527104,-0.006854947,-0.003822153,-0.001199616,0.019858574,-0.002762751,0.039052427,-0.008641388,0.032239024,-0.002295369,0.035396457,0.044536386,-0.029413955,0.025093261,-0.03423319,-0.016867325,-0.008849114,0.008433662,-0.004486875,0.017033506,0.006730312,-0.008599843,-0.008225936,-0.024428539,0.006564131,-0.007561215,-0.032072846,-0.019941665,0.035396457,0.019276943,0.010261648,0.005857864,0.032239024,-0.044204023,-0.018944582,0.002409618,0.032903746,0.05517194,-0.03655972,0.007976666,0.030909581,-0.023929998,0.016368784,0.01528861,-0.00768585,0.02176965,0.013626805,-0.02459472,0.04021569,-0.032737568,0.006854947,-0.011383367,0.014873158,-0.02176965,0.00243039,0.0093892,0.0093892,-0.029580137,0.019858574,0.01827986,0.024428539,0.017864408,-0.028250692,-0.001111332,0.056169022,0.007478124,-0.010718645,0.041046593,-0.015704062,0.034731735,0.002523867,-0.032571387,0.004341467,-0.023597637,-0.011881908,-0.035562634,0.006688767,0.007810486,-0.012712811,0.022600554,0.03057722,0.022600554,0.010552464,0.0307434,-0.009638472,0.02176965,-0.018030589,0.024262359,-0.036227357,-0.020772567,0.001641033,-0.022932915,-0.014623888,0.018362951,0.002575798,0.006190225,-0.011051006,0.021021837,0.019110762,0.02127111,-0.028583053,-0.052180689,-0.014291527,-0.010552464,0.036393538,0.042542219,-0.04586583,-0.001869531,0.008350573,-0.008516753,-0.020772567,0.000294711,0.015704062,-0.014457707,-0.020772567,0.008766023,-0.026588887,-0.004736145,-0.028084511,-0.007519669,0.010552464,-0.016534964,0.006190225,0.012962082,-0.016618054,0.012546631,0.02459472,0.022932915,0.020440206,-0.027918331,-0.008059756,0.020689478,-0.014623888,-0.011466458,-0.006896493,-0.020024756,-0.031408124,0.021603471,0.007270399,-0.03057722,0.008350573,-0.021437289,0.00072704,-0.043871664,0.006314861,-0.017199686,0.02176965,0.024262359,-0.020357117,-0.000542683,-0.005213914,0.001963008,-0.00064395,-0.022434372,0.022102011,-0.006688767,-0.028583053,0.002191506,-0.005047734,0.002368073,0.014956249,0.023929998,-0.003302838,-0.032239024,0.022268193,-0.013377533,-0.010801735,0.003676744,0.009015295,-0.039550968,0.010884825,-0.033568468,0.013709894,-0.029413955,-0.006356406,-0.020274026,0.023597637,0.030909581,0.02176965,0.016285693,0.045533467,-0.024096178,-0.030909581,-0.026422706,0.002783524,-0.010594009,0.004362239,-0.070792913,0.009472291,-0.022102011,0.011134096,-0.017448956,-0.011549547,-0.056833744,0.00082571,0.026588887,-0.013709894,0.002575798,0.02176965,-0.000568649,-0.007270399,0.004279149,-0.042874578,-0.026588887,0.016784234,0.036725901,-0.028915415,-0.009513836,0.017448956,0.002035712,-0.007228854,0.011383367,0.011134096,0.028915415,0.0153717,-0.027087428,0.043871664,-0.005089279,0.006314861,0.014291527,-0.003240521,0.025924165,-0.001230775,-0.015454791,-0.012629721,0.031740483,-0.039717149,-0.031075761,0.006605676,-0.008641388,-0.032239024,0.037722982,-0.03705826,-0.024096178,0.001911076,0.018196769,-0.007353489,-0.011300277,-0.029081594,0.004590738,-0.018030589,-0.026588887,0.010261648,0.038221523,0.008392117,-0.01213118,0.018362951,-0.034731735,-0.017781317,-0.011632638,0.005255459,0.000851675,0.014208436,-0.000039922,-0.000228498,0.014790068,0.00913993,0.0004544,-0.011798819,-0.020440206,0.005899409,0.008350573,0.006314861,0.040548053,0.003427474,-0.010801735,0.008599843,0.002586185,-0.041212775,-0.016368784,0.020024756,0.000965924,-0.021021837,-0.008475208,0.0307434,0.00760276,0.003614427,0.003489791,-0.025924165,0.000799744,0.013460624,-0.020440206,0.048857078,0.004320694,-0.048857078,0.015039339,-0.029580137,0.025924165,0.018861491,-0.014706978,0.000576439,-0.031241942,0.0307434,0.0153717,0.014706978,0.028084511,-0.01238045,-0.031241942,0.018196769,-0.034897912,0.008142847,0.010718645,0.00922302,0.047859997,-0.00072704,-0.010427829,0.007104218,0.026256526,0.012214269,-0.013377533,-0.05184833,0.005276232,0.021935832,-0.007021128,0.009804652,0.007893575,0.024096178,-0.002357686,0.033900831,-0.031740483,0.034565553,-0.036892079,-0.015454791,0.030411039,0.010552464,-0.022268193,-0.001391762,-0.008184392,-0.008558298,0.008475208,-0.009929287,0.010427829,0.041378956,-0.009555381,-0.008724478,-0.039052427,0.034731735,-0.014291527,0.023099095,0.029081594,0.007519669,0.010967916,-0.008142847,0.006190225,-0.031075761,0.033734649,-0.001672192,0.047859997,-0.022434372,-0.007395034,0.01213118,0.056169022,0.002762751,-0.029413955,-0.000763392,-0.015787151,0.010801735,0.008142847,0.029912498,-0.0018176,0.033236109,-0.046198189,-0.002492708,-0.006730312,0.008807569,-0.03655972,0.009430746,-0.053842496,-0.060489718,0.046862911,0.002783524,-0.0187784,0.000571246,0.00760276,0.002482322,0.001319058,-0.014291527,0.001464466,-0.011632638,-0.012463541,-0.004902326,0.000841289,0.006688767,0.030244859,0.018944582,0.000532297,-0.015620971,0.007104218,0.005608593,0.002035712,-0.023763817,0.003032795,0.010594009,-0.023597637,-0.042376038,-0.005255459,0.001199616,-0.0247609,-0.007893575,-0.011632638,0.013045172,-0.005691683,-0.007104218,0.027419789,-0.004320694,-0.005525503,-0.026090344,0.031408124,-0.012795902,-0.007062673,0.000939959,0.000030185,0.004175286,0.014291527,0.033236109,-0.038720068,0.074116521,-0.019692395,0.001589101,0.013792985,-0.056169022,-0.028749233,-0.001599488,0.004175286,0.014790068,0.00162026,-0.007519669,-0.041378956,0.016534964,-0.003572882,-0.002575798,-0.019526213,-0.00922302,-0.033900831,-0.042043675,-0.014208436,0.010178559,0.017698228,0.032239024,0.00913993,0.009264565,-0.012463541,-0.005857864,-0.015870241,0.004486875,0.018861491,-0.000176567,-0.029912498,0.016784234,0.012546631,0.051183607,0.023597637,0.032903746,0.0153717,-0.013377533,-0.000016634,-0.061486799,-0.034565553,0.016119512,0.00380138,-0.003863698,0.004362239,-0.017532047,-0.002762751,0.000102565,-0.021437289,0.029247776,-0.010718645,-0.015870241,-0.016285693,0.010220103,-0.000373906,0.012962082,0.010137013,-0.007228854,0.02127111,-0.029247776,0.018113678,0.009181475,0.002233051,0.014374617,-0.00396756,0.010801735,0.007644305,0.020855658,0.014790068,0.032737568,-0.037390623,0.003032795,0.010801735,-0.01553788,-0.014790068,0.019526213,-0.017947499,-0.007893575,-0.011964999,-0.00614868,-0.005857864,-0.032072846,-0.025924165,0.001163264,-0.013294443,-0.01553788,0.016701145,-0.013460624,-0.001111332,0.00760276,0.01553788,-0.033734649,0.048192356,-0.003282066,0.031906664,0.002845842,0.003240521,0.017116595,-0.01827986,0.006896493,-0.00760276,-0.009680017,-0.02459472,-0.020689478,-0.053510133,0.00614868,-0.010552464,-0.032405205,-0.0307434,0.025093261,0.003635199,-0.008101301,-0.00606559,-0.007436579,0.00606559,-0.012962082,0.026921248,0.009098385,0.046530552,-0.011632638,0.032571387,-0.033900831,0.009846197,0.002866614,0.032903746,0.008973749,0.012712811,0.040049512,0.013626805,-0.026256526,-0.031408124,0.036227357,0.011964999,-0.006024044,-0.001848759,0.015704062,-0.021188019,-0.035064094,-0.013377533,-0.009721561,-0.01553788,0.008766023,0.005400868,0.004507647,-0.018362951,-0.026588887,-0.00913993,-0.025591804,0.035894997,0.021935832,-0.031906664,-0.000602404,0.026422706,-0.006397951,0.006647222,0.0093892,0.020606387,0.00913993,0.015620971,-0.024096178,0.00063616,-0.006564131,0.01238045,-0.013709894,0.000563456,-0.009887742,0.016618054,-0.003323611,0.000451803,0.001609874,0.008682934,0.025259443,0.020024756,-0.027253609,0.010884825,0.028250692,-0.054839578,0.033568468,-0.004902326,0.003053567,0.020274026,-0.015704062,-0.00614868,-0.063813329,0.002482322,0.009763107,-0.001609874,-0.012214269,0.020107845,0.001921462,0.018695312,-0.004923099,0.007270399,-0.023763817,0.005234687,0.003406701,0.002565412,0.007104218,0.000841289,0.016202603,0.01827986,-0.031075761,-0.035562634,-0.025259443,-0.007021128,0.000641353,-0.033069927,0.010718645,0.005650138,0.024927082,-0.002658889,0.00380138,0.009929287,-0.004258377,-0.039717149,-0.022434372,0.025425622,0.00198378,0.006356406,0.017615138,-0.032072846,0.046862911,-0.026921248,0.005940954,0.021603471,-0.002253824,0.002825069,-0.030411039,-0.003115885,0.023597637,-0.004320694,-0.007852031,0.018030589,-0.008724478,-0.005733229,0.032903746,0.013876075,0.015454791,-0.023597637,0.005151597,-0.035396457,0.02176965,-0.012463541,0.025591804,0.014540797,-0.027918331,0.004154514,0.008724478,0.016036423,-0.015870241,0.005400868,-0.017365867,-0.044868745,-0.000485559,0.020357117,-0.00760276,-0.023265276,-0.012048089,0.008433662,0.018362951,-0.006979583,0.0307434,0.008392117,0.027087428,-0.019360034,0.016119512,0.02127111,0.010801735,0.00299125,0.002949705,0.012463541,-0.000025966,0.015953332,0.029413955,0.020024756,0.003780607,0.022102011,-0.031740483,0.01553788,0.010386284,0.028749233,-0.010884825,0.008682934,-0.003531337,-0.05517194,-0.019360034,-0.009347656,-0.002025325,0.003261293,-0.025425622,-0.01553788,-0.000251867,0.014291527,0.012546631,0.035728816,-0.007062673,-0.006605676,0.000384293,-0.005047734,-0.032571387,-0.021188019,-0.02127111,-0.016036423,0.008475208,-0.004009106,0.014291527,-0.008101301,0.004424557,-0.038221523,-0.019360034,0.015039339,-0.015454791,-0.029580137,0.035728816,0.004466102,-0.000778971,-0.005068507,-0.017781317,0.00477769,0.001838372,0.030244859,0.01213118,-0.022932915,-0.005359322,0.037390623,0.005899409,0.002046098,0.037889164,0.016701145,0.010303194,0.02127111,-0.009513836,-0.022268193,-0.005650138,-0.00388447,0.016534964,-0.023265276,-0.00054528,0.004819236,0.004715373,-0.001178843,-0.051183607,-0.00614868,-0.010552464,-0.002741979,-0.009181475,0.023597637,0.019193852,0.017199686,-0.036393538,-0.00243039,-0.015870241,-0.014706978,-0.00145408,0.016368784,-0.011632638,-0.014623888,-0.01229736,-0.01553788,0.040880412,0.023929998,-0.014623888,0.002648502,0.031906664,-0.033734649,-0.026755067,0.002783524,0.005359322,0.009970833,0.001412535,0.016950415,0.016285693,-0.006730312,-0.02459472,0.050851244,-0.001827986,-0.020855658,0.020938748,0.004071423,-0.021603471,-0.007852031,-0.023929998,-0.029912498,-0.003365156,0.017365867,-0.010427829,-0.011715728,0.014956249,0.011383367,0.032405205,-0.028583053,-0.017448956,0.018446039,0.017615138,0.035728816,-0.010095468,-0.00254464,0.010012378,0.028250692,-0.020855658,-0.002305755,-0.001002276,-0.014125346,-0.007021128,-0.028583053,-0.045533467,-0.02758597,-0.020440206,0.001350217,0.010053922,0.020689478,-0.017615138,0.026422706,0.040880412,0.012463541,-0.010718645,-0.014706978,0.068134025,0.038720068,0.047859997,-0.012546631,0.015704062,-0.002087643,-0.010303194,0.014790068,0.018612221,0.007395034,-0.014790068,-0.017864408,-0.005068507,-0.054507218,0.004902326,-0.004050651,0.021603471,0.019775484,-0.024262359,-0.012795902,0.021935832,-0.004009106,-0.039717149,0.037556801,-0.016701145,-0.025757983,0.005483958,-0.005110051,-0.021935832,-0.003406701,0.010594009,0.015787151,-0.049854163,0.007727395,-0.008392117,-0.017199686,0.009970833,-0.008849114,-0.013876075,-0.0059825,-0.015870241,-0.007104218,0.028250692,-0.029081594,0.026921248,0.00299125,-0.017781317,0.042542219,0.018196769,0.052845411,-0.004819236,-0.014125346,0.02459472,-0.011715728,0.015787151,-0.005774774,0.004902326,-0.004964644,-0.02758597,-0.013959166,-0.033568468,-0.027918331,-0.017698228,0.003489791,-0.020024756,-0.021603471,0.019360034,0.028084511,-0.002503094,-0.018861491,-0.002295369,0.050851244,-0.020689478,-0.000459593,-0.026090344,0.002783524,-0.005899409,-0.026921248,-0.0093892,-0.004112968,0.031574301,0.003926015,-0.032903746,-0.046198189,-0.019027673,-0.00913993,0.030411039,-0.019443123,0.001963008,-0.005193142,0.010884825,-0.02127111,-0.025259443,0.032737568,0.00089322,0.003282066,0.001713737,-0.006439496,0.016867325,-0.031574301,0.031075761,-0.009970833,0.022600554,-0.023597637,-0.014956249,0.004009106,0.00198378,0.026588887,-0.023431456,-0.023763817,-0.013294443,-0.029746316,0.001381376,-0.042874578,-0.00913993,0.014873158,0.016202603,0.012878992,-0.006024044,0.009638472,0.010552464,-0.017033506,-0.027087428,0.044536386,-0.038055345,0.001329444,-0.019609304,0.023597637,-0.043206941,0.040049512,0.017615138,0.046862911,0.02127111,0.013294443,-0.039550968,-0.018861491,-0.019609304,-0.033734649,0.00623177,-0.017199686,0.041212775,-0.017781317,-0.024262359,0.054507218,-0.009721561,0.005816319,-0.00206687,-0.008766023,0.017365867,-0.000737426,0.018362951,-0.023597637,-0.019110762,0.021935832,0.041545134,-0.020357117,-0.017615138,0.044868745,-0.018030589,-0.032405205,-0.050186522,-0.014540797,0.005213914,-0.006688767,0.047527634,0.040714234],
13 'numCandidates': 150,
14 'limit': 10
15 }
16 }, {
17 '$project': {
18 '_id': 0,
19 'plot': 1,
20 'title': 1,
21 'score': {
22 '$meta': 'vectorSearchScore'
23 }
24 }
25 }
26]
27
28# run pipeline
29result = client["sample_mflix"]["embedded_movies"].aggregate(pipeline)
30
31# print results
32for i in result:
33 print(i)
34
1{'plot': 'At the age of 21, Tim discovers he can travel in time and change what happens and has happened in his own life. His decision to make his world a better place by getting a girlfriend turns out not to be as easy as you might think.', 'title': 'About Time', 'score': 0.7710106372833252}
2{'plot': 'A psychiatrist makes multiple trips through time to save a woman that was murdered by her brutal husband.', 'title': 'Retroactive', 'score': 0.760047972202301}
3{'plot': 'A time-travel experiment in which a robot probe is sent from the year 2073 to the year 1973 goes terribly wrong thrusting one of the project scientists, a man named Nicholas Sinclair into a...', 'title': 'A.P.E.X.', 'score': 0.7576861381530762}
4{'plot': 'An officer for a security agency that regulates time travel, must fend for his life against a shady politician who has a tie to his past.', 'title': 'Timecop', 'score': 0.7576561570167542}
5{'plot': 'After visiting 2015, Marty McFly must repeat his visit to 1955 to prevent disastrous changes to 1985... without interfering with his first trip.', 'title': 'Back to the Future Part II', 'score': 0.7521393895149231}
6{'plot': 'A reporter, learning of time travelers visiting 20th century disasters, tries to change the history they know by averting upcoming disasters.', 'title': 'Thrill Seekers', 'score': 0.7509932518005371}
7{'plot': 'Lyle, a motorcycle champion is traveling the Mexican desert, when he find himself in the action radius of a time machine. So he find himself one century back in the past between rapists, ...', 'title': 'Timerider: The Adventure of Lyle Swann', 'score': 0.7502642869949341}
8{'plot': 'Hoping to alter the events of the past, a 19th century inventor instead travels 800,000 years into the future, where he finds humankind divided into two warring races.', 'title': 'The Time Machine', 'score': 0.7502503395080566}
9{'plot': 'A romantic drama about a Chicago librarian with a gene that causes him to involuntarily time travel, and the complications it creates for his marriage.', 'title': "The Time Traveler's Wife", 'score': 0.749496340751648}
10{'plot': 'A modern aircraft carrier is thrown back in time to 1941 near Hawaii, just hours before the Japanese attack on Pearl Harbor.', 'title': 'The Final Countdown', 'score': 0.7469133734703064}

The following query filters the documents for movies released between January 01, 1955 and January 01, 1975 before performing the semantic search against the sample vector data. It uses the $and operator to perform a logical AND operation of the specified dates. It then searches the plot_embedding_voyage_3_large field in the filtered documents for 150 nearest neighbors using the vector embeddings for the string kids adventure, and returns 10 documents in the results. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

Work with a runnable version of this example as a Python notebook.

1import pymongo
2
3# connect to your Atlas cluster
4client = pymongo.MongoClient("<connection-string>")
5
6# define pipeline
7pipeline = [
8 {
9 '$vectorSearch': {
10 'index': 'vector_index',
11 'path': 'plot_embedding_voyage_3_large',
12 'filter': {
13 '$and': [
14 {
15 'year': {
16 '$gt': 1955
17 },
18 'year': {
19 '$lt': 1975
20 }
21 }
22 ]
23 },
24 'queryVector': [-0.021090532,-0.026399033,-0.024103465,-0.025538195,-0.000549233,0.011836523,-0.013199517,-0.003766167,-0.005165028,-0.02238179,0.037876874,0.010617003,0.010903949,-0.001354026,0.006850836,-0.018005863,-0.02195137,0.019512329,-0.041894119,-0.008357302,0.027546817,-0.025251249,0.004340059,-0.02195137,-0.003748232,-0.006205208,0.021377478,0.008931194,-0.00173961,-0.009827901,-0.016642869,-0.033572685,-0.026399033,0.015208139,0.010114847,-0.0233861,-0.011406104,-0.033142265,-0.008895326,-0.014347301,-0.019081909,-0.049067769,0.034433521,-0.023673046,0.004160717,-0.01334299,-0.06714537,0.032568373,-0.022525262,-0.024677357,0.011334368,0.027403345,0.026399033,-0.016786342,-0.015925504,0.013916882,-0.005487842,-0.0233861,0.026542507,-0.052798066,-0.025681669,-0.025394723,0.014203828,0.014921193,-0.031564061,0.010760476,0.010688739,0.013916882,-0.037876874,0.039598551,-0.000816003,0.003766167,-0.001694775,0.026972925,-0.009469219,0.015351612,-0.007245387,0.028981548,-0.035724778,0.010688739,0.001228488,0.004106915,-0.024677357,0.028551128,-0.033716157,-0.013486463,0.018292809,-0.018221073,0.009612692,-0.003622693,-0.001138817,-0.021234006,-0.045624416,0.020803586,0.007675806,-0.009612692,-0.021664424,-0.026685979,-0.025968615,0.001775478,-0.007496465,0.02051664,-0.054519743,0.018221073,0.014132091,-0.009684428,-0.025825141,-0.014921193,-0.057389203,-0.020660114,-0.028264182,-0.008931194,-0.019942747,-0.003228143,-0.014419037,0.021234006,-0.004573202,0.007317123,0.018651491,-0.016571132,-0.036155198,-0.032855317,0.000726332,-0.031851009,0.018938437,0.021234006,-0.048206929,0.017934127,-0.013414727,-0.009469219,0.064849801,0.006348681,-0.039024659,0.021377478,-0.022668736,-0.026829453,-0.019081909,0.027977237,-0.004627005,-0.038450766,0.004465597,-0.041894119,0.008213829,0.03055975,0.052224174,-0.00277979,-0.032137953,-0.013629936,0.022094844,-0.005918262,0.020660114,0.010617003,-0.020373167,-0.001614071,0.021090532,-0.005523711,0.004878082,-0.021090532,0.029698912,0.000726332,0.003371616,-0.022238316,0.008715985,0.038737711,0.013486463,-0.008536644,0.040172443,0.017503707,-0.028838074,0.061693393,-0.003066736,0.008285566,-0.034576993,0.01578203,-0.02238179,0.015925504,0.066571474,-0.038737711,-0.050215553,0.009325746,-0.010903949,-0.041607171,-0.006384549,0.026972925,-0.000119374,-0.003066736,-0.024103465,0.005093292,0.028981548,0.026829453,-0.001703742,0.043041904,0.010186584,0.010688739,0.004357993,-0.016571132,-0.010545266,-0.033142265,-0.005559579,-0.000365408,-0.00717365,0.019655801,0.047633037,0.044476632,0.01456251,-0.002977065,0.025681669,-0.015423348,-0.02051664,-0.019512329,0.014705983,0.002977065,0.03055975,-0.014347301,0.024390411,0.005882393,-0.012195205,0.004071047,-0.028694602,0.031277116,-0.010114847,0.005272633,0.017934127,0.037589926,-0.046198308,-0.02195137,-0.037876874,0.021234006,-0.034720469,-0.018005863,0.03055975,-0.015495085,-0.035150886,0.004178651,0.005882393,0.075753748,0.00595413,-0.083214343,-0.016284186,0.022238316,-0.032998793,-0.00491395,-0.009254009,-0.007819279,0.046198308,-0.008464907,0.014634247,0.031707536,-0.00317434,-0.026255561,-0.010617003,-0.033285737,0.020086221,-0.016858079,-0.012195205,-0.041894119,0.000721849,0.038163818,0.02238179,0.011406104,0.010330057,0.032137953,-0.01047353,0.039311603,-0.01291257,-0.03099017,-0.018938437,-0.013271254,-0.001820314,-0.005380238,0.003299879,-0.024533885,-0.001093982,0.012123469,-0.005236765,0.014132091,-0.018221073,0.013629936,0.022238316,-0.00317434,0.034003101,0.019081909,0.008034488,-0.02912502,0.026542507,-0.011334368,-0.077475421,0.038163818,-0.003568891,0.019081909,0.019512329,0.002385239,-0.032568373,-0.020373167,0.038737711,-0.013773409,0.01621245,-0.028407656,-0.021090532,-0.004411795,-0.013916882,-0.001533368,0.004322124,-0.024820831,0.004627005,-0.004591136,0.014849456,-0.014275564,-0.020229694,0.0233861,0.015566821,0.022525262,-0.024390411,-0.028694602,0.001766511,-0.036011726,0.006456285,-0.011262631,0.005523711,0.012266942,-0.019225383,-0.015423348,0.011836523,-0.011334368,-0.009827901,-0.011119158,0.007030177,0.00277979,0.004537334,-0.016571132,0.013127781,-0.013701673,-0.016571132,0.002941197,0.000959476,-0.004483532,0.010760476,0.043041904,-0.032568373,-0.015423348,0.006169339,-0.02094706,-0.050215553,0.012769097,0.015495085,0.001318158,0.00164994,-0.045337472,0.001533368,0.005595447,0.039311603,-0.030703224,0.023242628,-0.008787721,-0.021234006,-0.021234006,-0.001524401,0.007281255,0.01334299,0.00164994,-0.005451974,-0.011047422,-0.021234006,-0.033572685,-0.015423348,-0.005236765,0.025681669,-0.02051664,-0.024103465,-0.021377478,-0.00738886,-0.031707536,0.017790653,-0.026829453,0.007783411,-0.003335747,0.024677357,0.006384549,0.035724778,-0.004017244,-0.018651491,-0.014060355,-0.029842386,-0.012553888,0.006994309,-0.00317434,0.018292809,0.019942747,-0.01169305,0.002456975,0.010330057,-0.031707536,0.00799862,-0.019655801,-0.006205208,-0.012769097,-0.035294361,0.026112087,-0.004483532,0.02094706,0.019081909,0.001676841,-0.040746335,-0.004035179,-0.014992929,0.004375927,-0.049928606,-0.02051664,0.004268322,0.015351612,-0.037016038,-0.001452664,-0.021234006,-0.005738921,-0.051650282,-0.008285566,0.012840834,-0.015925504,0.018794963,-0.001228488,-0.035868254,-0.00347922,-0.003264011,0.002528712,0.01477772,-0.010545266,0.018221073,0.018149335,-0.028838074,-0.012984307,-0.037302982,-0.041607171,-0.043328848,-0.019799275,-0.019225383,-0.011047422,0.011908259,0.021664424,-0.012553888,0.004662873,0.005451974,-0.024533885,0.0067791,0.022812208,-0.037589926,-0.031564061,0.007101914,-0.00760407,-0.025107777,0.015566821,0.020803586,-0.033572685,0.062841177,0.034146577,-0.007532333,-0.001865149,-0.023673046,0.032424901,0.018508019,-0.005703052,-0.015853768,0.019655801,0.042181063,0.006671495,-0.004573202,0.024390411,0.009756165,-0.00029143,0.000107605,0.032711845,-0.005523711,-0.015566821,0.009110536,0.017216761,0.006241076,-0.003945508,0.007783411,0.024246939,0.048206929,0.00277979,-0.002367305,-0.05107639,-0.016284186,-0.016929815,0.016858079,0.000703914,-0.021234006,0.021234006,-0.014634247,0.001389895,0.008321434,-0.016499396,0.014921193,0.025394723,0.035437834,0.013486463,-0.022668736,-0.012338678,-0.034003101,-0.005559579,-0.008106225,0.023959992,-0.019368855,0.024533885,-0.000600793,0.009756165,-0.001936886,-0.014490774,0.018077599,0.004447663,0.011262631,-0.003658562,0.043328848,-0.018938437,0.00799862,-0.018221073,0.041320227,0.000363166,-0.003730298,0.002851526,-0.024103465,0.003515089,-0.0135582,-0.003497155,-0.006814968,0.014060355,0.027116399,-0.003192274,0.011406104,0.042468011,-0.036442146,-0.007245387,0.032424901,-0.038737711,0.008680117,-0.035581306,0.027546817,0.021664424,-0.000757717,-0.022238316,0.018221073,-0.006205208,0.005093292,0.001264356,-0.002116227,0.001098465,0.017431971,-0.042181063,0.010760476,0.033285737,0.002708053,-0.007352991,-0.009827901,-0.031994481,-0.020803586,0.009971374,-0.014849456,-0.003658562,0.024964303,-0.001793413,0.021090532,0.01578203,0.012984307,0.006922573,-0.032711845,-0.013701673,0.00390964,0.017503707,-0.015351612,0.006922573,0.028694602,0.012266942,-0.027259871,0.007675806,-0.002295568,-0.020086221,0.00595413,-0.027833764,0.001551302,0.008644248,-0.002187963,0.00040576,0.024964303,0.013916882,-0.015925504,0.014347301,-0.011549577,0.018938437,-0.032424901,0.003730298,0.003281945,0.032998793,0.005595447,0.025681669,0.011047422,0.026399033,0.02912502,-0.006241076,0.004627005,0.024390411,0.001542335,-0.034576993,0.011477841,-0.00491395,-0.014347301,0.023529572,-0.004770477,-0.014921193,-0.028264182,0.02812071,0.00164994,0.008680117,-0.005416106,0.035581306,-0.02812071,0.006097603,-0.016355922,-0.010114847,0.033142265,-0.021807898,0.001228488,-0.002170029,-0.032711845,0.018149335,0.014132091,0.03055975,0.031133642,-0.011979996,0.008967063,-0.013486463,-0.02812071,0.052224174,0.004124849,-0.008715985,-0.034863941,0.025251249,0.07977099,-0.000072297,-0.014705983,0.033142265,0.024103465,-0.004232454,-0.007496465,-0.024246939,-0.029698912,-0.009469219,0.010114847,0.001201586,0.00860838,0.012051732,-0.006025866,0.014490774,0.014992929,0.01169305,-0.003192274,0.005308501,0.0045194,0.017575443,0.001022245,-0.018794963,-0.001847215,0.011119158,0.02051664,-0.006886704,0.010330057,-0.003353682,0.018794963,0.013773409,0.026399033,0.007962752,-0.018221073,-0.012553888,-0.003586825,-0.002170029,0.047633037,0.011908259,0.007209518,0.045624416,0.028694602,0.004357993,0.023959992,0.004232454,0.009182272,0.003012933,0.035294361,-0.055954475,0.014849456,0.012553888,0.004340059,-0.000511123,-0.024390411,0.011406104,0.013127781,0.013629936,-0.011406104,0.002582514,-0.004555268,0.005559579,0.000569409,0.017934127,-0.014060355,0.02912502,0.003819969,0.011190895,-0.011262631,0.017001551,0.012553888,-0.02238179,0.024246939,0.032281429,0.032711845,-0.016714605,-0.021520952,0.016355922,-0.011334368,-0.003891705,-0.008572512,-0.016929815,0.0135582,-0.057963096,0.015566821,0.001856182,-0.002456975,-0.000766684,0.005380238,0.000923607,0.035581306,0.005272633,-0.009612692,0.018651491,-0.023959992,-0.001416796,0.033285737,-0.002725987,0.024533885,-0.010186584,0.003802035,-0.029268494,-0.011764786,0.003837903,0.022955682,0.053945851,-0.002232799,0.019512329,0.014419037,0.028407656,0.004985687,0.00210726,0.005774789,0.032568373,-0.024964303,0.019655801,-0.012123469,0.031994481,0.015638558,0.038450766,-0.011979996,0.033716157,0.019368855,0.017431971,0.022668736,0.015423348,-0.001927919,-0.001102949,0.028694602,-0.013701673,-0.036155198,-0.010688739,0.000535782,-0.021807898,-0.005200896,-0.040459387,0.007137782,-0.006492154,-0.00277979,0.020803586,0.027833764,-0.000780134,0.000600793,-0.025538195,-0.011764786,0.021090532,0.028694602,-0.016929815,-0.025251249,0.029268494,-0.013271254,0.014634247,0.000376617,-0.025251249,-0.026255561,-0.037302982,0.003138472,-0.024677357,-0.019799275,0.025825141,-0.040746335,0.002510778,-0.031851009,-0.014347301,-0.00158717,-0.046772201,-0.028838074,0.006635627,-0.001058113,0.014132091,-0.00286946,0.019368855,0.007281255,0.036155198,0.065710634,0.018794963,-0.029268494,0.003461286,0.012984307,0.006133471,0.003497155,0.046198308,-0.014132091,-0.010186584,0.028981548,-0.000286946,-0.003102604,0.011190895,0.014490774,-0.020660114,-0.00347922,-0.004842214,-0.000506639,0.002600448,0.017073289,-0.011836523,-0.026685979,-0.023959992,0.023673046,-0.006958441,0.040172443,-0.031133642,0.009182272,-0.015638558,-0.002421107,0.004555268,0.014705983,-0.028407656,-0.014921193,-0.015710294,-0.008751853,-0.006420417,-0.038450766,-0.011908259,0.006133471,0.002474909,-0.008070357,-0.01025832,-0.011119158,0.004465597,0.010903949,0.009074667,0.030703224,-0.019368855,-0.007891015,0.007675806,-0.005093292,0.023099154,0.022094844,0.00738886,0.007066045,-0.023242628,-0.020660114,0.009397482,-0.006635627,0.009540955,0.006348681,-0.013773409,-0.000186067,-0.021234006,-0.017145025,-0.007030177,0.010114847,0.024390411,-0.024964303,-0.041033279,0.0135582,0.014060355,0.008715985,0.018794963,-0.039598551,-0.015208139,0.027977237,0.020086221,0.012195205,-0.010760476,-0.025538195,0.025394723,0.012697361,-0.053371958,-0.008249698,0.005846525,-0.045624416,-0.027977237,-0.012410415,-0.02195137,-0.022955682,0.011477841,0.026972925,-0.031420588,-0.012051732,-0.015925504,-0.004322124,-0.017145025,0.012840834,0.01578203,-0.010186584,-0.00091464,-0.028264182,0.00369443,-0.029985858,-0.009899638,0.018794963,0.053945851,0.007317123,-0.020086221,0.008967063,-0.001506467,-0.006850836,0.011477841,-0.003120538,-0.005631316,-0.027977237,0.01047353,0.003120538,-0.001354026,-0.004160717,-0.004698741,-0.049067769,0.021807898,-0.037589926,0.03672909,-0.004878082,-0.006241076,0.000049879,0.014203828,-0.027259871,0.004196586,-0.002421107,0.008106225,-0.00760407,-0.003802035,-0.016140714,0.038737711,-0.010043111,-0.037589926,-0.062267285,-0.001506467,-0.006384549,-0.012697361,-0.011190895,-0.01578203,0.014132091,-0.02238179,-0.024677357,0.011621314,-0.028407656,0.010688739,0.039311603,0.009254009,-0.009612692,-0.040459387,0.021234006,0.007926884,-0.057102256,-0.045624416,0.003497155,-0.003120538,-0.015853768,-0.006528022,0.011334368,-0.008177961,-0.033716157,0.010114847,0.035868254,-0.021807898,-0.010975685,-0.039024659,0.021234006,0.001990688,-0.009756165,-0.003819969,-0.033142265,-0.035150886,0.028407656,0.007711674,0.018364545,0.005416106,0.010545266,-0.032281429,0.01291257,0.003102604,-0.009756165,0.05107639,-0.001080531,-0.043615796,0.025968615,0.012697361,0.024820831,0.024246939,-0.020086221,-0.012195205,0.00760407,0.009540955,-0.003802035,0.043328848,-0.010043111,0.003891705,-0.054519743,0.043041904,-0.032711845,0.024820831,0.018651491,-0.008357302,0.009540955,-0.003156406,-0.019081909,-0.025825141,-0.02912502,0.026255561,-0.017216761,0.010401793,-0.028551128,-0.005200896,0.012625624,-0.008142093,0.039311603,-0.00082497,-0.003784101,0.037876874,0.006599758,-0.021520952,0.047633037,0.012410415,-0.01477772,0.023529572,0.004985687,-0.031707536,0.007675806,-0.017934127,-0.034863941,0.018794963,-0.011119158,-0.027546817,0.009612692,0.00760407,0.057102256,0.006241076,0.007281255,-0.007675806,-0.008285566,0.012553888,-0.007245387,0.016284186,-0.024964303,0.007030177,-0.011836523,-0.045050524,0.021090532,-0.021664424,0.00369443,0.037016038,-0.010186584,-0.00656389,0.016355922,0.019225383,0.009002931,-0.008034488,-0.004555268,0.046772201,-0.014347301,0.014347301,-0.023959992,0.017790653,0.031133642,-0.025825141,0.035581306,-0.012769097,0.017360235,0.024677357,0.000046517,0.010903949,0.011262631,-0.000573892,0.026829453,-0.024820831,-0.001309191,0.008177961,-0.002143128,-0.018651491,-0.026685979,-0.040172443,-0.018651491,0.007568201,-0.018794963,0.003281945,-0.014347301,0.005738921,-0.020373167,-0.02051664,-0.028551128,-0.040172443,-0.017718917,0.046198308,0.003802035,-0.005523711,0.07345818,0.000412485,-0.025968615,0.024246939,-0.024964303,0.024820831,0.005882393,0.011190895,0.020086221,-0.029411966,-0.029842386,0.006922573,-0.004286256,0.0233861,-0.0135582,0.000551474,0.026255561,0.019799275,0.003568891,-0.025681669,-0.009469219,-0.002636316,0.013486463,0.050215553,-0.040459387,-0.003622693,0.019225383,-0.015853768,-0.017001551,0.028407656,0.02812071,0.01477772,-0.007209518,0.046198308,0.024246939,0.035868254,-0.019225383,-0.030272804,0.006599758,0.000473013,-0.018364545,0.033429209,-0.0233861,0.021664424,0.028694602,-0.009684428,-0.002815658,0.015136402,0.006994309,0.017360235,-0.027116399,0.042181063,-0.018794963,-0.037589926,-0.018508019,-0.012266942,-0.00277979,-0.01334299,-0.020373167,-0.004949819,-0.018651491,0.026829453,-0.011979996,0.00799862,0.040459387,-0.00738886,0.008249698,0.017718917,-0.042754956,-0.011119158,-0.043615796,-0.009325746,-0.009612692,-0.008285566,-0.008213829,0.012625624,0.000919124,-0.041033279,0.000636661,-0.045911364,-0.001909984,-0.016642869,0.013414727,0.03055975,-0.013414727,0.010186584,0.056241419,-0.008321434,-0.000200638,0.006205208,0.012625624,0.009756165,-0.035294361,0.034003101,-0.023529572,0.031564061,-0.026399033,0.029268494,0.001183652,0.01334299,0.004035179,-0.00491395,-0.002241766,-0.011764786,0.029268494,-0.011621314,0.037302982,-0.020086221,0.018651491,-0.01578203,-0.025825141,0.002528712,0.057102256,0.046198308,-0.006169339,0.008249698,0.009397482,-0.008142093,-0.037876874,-0.041607171,-0.01169305,-0.013773409,-0.020086221,-0.038737711,-0.019799275,-0.035437834,0.019368855,-0.001246422,-0.013845146,-0.037876874,-0.006814968,-0.003066736,0.003730298,0.016499396,0.012840834,0.02051664,-0.006994309,0.009182272,-0.00738886,-0.000193913,-0.037016038,0.007281255,-0.016427658,-0.003568891,0.02912502,0.021807898,0.02912502,0.004124849,-0.012625624,0.02195137,-0.036155198,0.011334368,0.018651491,0.040459387,0.006205208,0.015064666,-0.023959992,0.017360235,-0.000567167,0.032998793,-0.023099154,0.075753748,-0.038737711,-0.005057423,-0.019799275,0.014849456,-0.050215553,-0.001111916,-0.006169339,0.009469219,-0.019081909,-0.013127781,-0.028838074,-0.013414727,-0.008213829,0.006312812,-0.008177961,-0.021664424,-0.010832212,-0.012697361,0.014634247,0.004393861,-0.045337472,-0.010975685,-0.030703224,-0.003228143,-0.014849456,-0.034003101,0.009612692,-0.004806346,-0.006492154,0.018938437,0.00277979,0.023816518,-0.003407484,-0.01169305,0.006276944,-0.024820831,0.00189205,0.006814968,-0.019655801,0.035294361,0.009038799,0.006922573,0.011334368,-0.018651491,-0.009899638,0.029985858,-0.008285566,-0.013845146,0.032424901,-0.024533885,-0.024677357,0.031420588,0.003604759,0.004232454,0.01578203,-0.025107777,0.003784101,0.006276944,-0.010832212,0.009074667,-0.040172443,0.048780821,0.02094706,-0.009110536,0.008680117,-0.014132091,0.023816518,0.012051732,-0.012123469,-0.032998793,-0.032424901,-0.021664424,-0.025538195,-0.01047353,0.009002931,-0.039311603,-0.004806346,0.023673046,-0.012123469,-0.006850836,-0.030272804,0.043615796,0.002456975,0.001273323,-0.007711674,-0.008177961,0.06714537,-0.043615796,0.017216761,0.00882359,-0.005416106,-0.014060355,0.034146577,-0.022812208,-0.009899638,-0.00390964,-0.032137953,0.007245387,0.047633037,-0.007352991,0.006097603,-0.019225383,-0.027833764,-0.010545266,0.002905329,-0.002797724,0.038450766,-0.013629936,-0.008106225,-0.001143301,-0.000014361,-0.043328848,0.029698912,0.027690291,0.002143128,0.012051732,-0.02812071,0.024677357,-0.012984307,0.008715985,-0.005523711,0.039024659,-0.020373167,-0.028838074,0.026972925,0.018364545,-0.010114847,-0.011406104,0.033572685,-0.028838074,0.024677357,-0.011836523,-0.009612692,-0.03672909,0.025107777,-0.025251249,-0.009182272,0.002618382,0.030416278,-0.003210209,0.033859629,-0.015208139,-0.015279875,0.010975685,0.014132091,-0.010545266,-0.002600448,0.003945508,-0.001990688,-0.008859458,0.024533885,0.027116399,-0.005487842,-0.028551128,0.008321434,0.016714605,0.010617003,0.043328848,0.025251249,-0.033429209,0.005667184,-0.012840834,0.037589926,-0.012482151,0.002546646,0.01477772,-0.003120538,0.012984307,-0.054232799,-0.013199517,-0.029985858,-0.023673046,-0.014992929,-0.010760476,0.0233861,-0.02912502,-0.020803586,-0.010545266,0.022238316,0.005021555,0.041033279,0.016140714,-0.006097603,0.015351612,-0.017790653,-0.007675806,-0.032281429,-0.012338678,0.02955544,-0.016427658,0.039885495,0.001192619,-0.006241076,-0.000663563,-0.008070357,-0.001452664,0.025681669,-0.020803586,-0.010401793,0.001443697,0.012410415,0.007926884,-0.034003101,0.017360235,0.000999828,0.019799275,-0.001102949,0.005918262,0.010545266,-0.023529572,0.016714605,0.016571132,0.003604759,0.016140714,-0.020660114,-0.007101914,0.014132091,-0.035437834,-0.018938437,0.019225383,-0.006886704,-0.03629867,0.010545266,-0.017216761,0.005595447,-0.022812208,0.009971374,0.003371616,-0.022955682,-0.013701673,-0.019368855,-0.022238316,0.004627005,0.008213829,0.002600448,0.012769097,-0.027116399,0.015279875,-0.017073289,-0.019512329,-0.010043111,0.003120538,0.0045194,-0.024246939,0.010903949,0.001667874,-0.008895326,0.031277116,-0.016571132,-0.012266942,0.006348681,0.048493877,-0.010186584,0.001506467,0.022955682,-0.012625624,0.018938437,-0.004698741,-0.009002931,0.008249698,0.035724778,0.002887394,-0.00399931,0.007747543,-0.000780134,-0.001389895,-0.003138472,-0.016284186,-0.041033279,-0.018364545,-0.001847215,-0.011190895,0.006061735,-0.044189688,0.033859629,-0.010043111,0.040172443,-0.025251249,-0.006241076,-0.01621245,-0.028694602,-0.001345059,-0.021377478,0.037876874,0.007675806,0.006528022,0.019942747,-0.006133471,0.014275564,-0.005380238,-0.043328848,-0.05825004,0.019512329,-0.00090119,-0.018364545,-0.023099154,-0.003407484,0.026829453,-0.06542369,-0.024677357,0.011262631,-0.002618382,-0.013916882,0.031133642,-0.016427658,-0.017934127,0.020086221,-0.009827901,0.009899638,0.011621314,-0.005308501,0.021377478,-0.011621314,0.009971374,-0.037876874,-0.013916882,0.014419037,-0.001748577,0.014132091,-0.026972925,0.002725987,-0.03672909,-0.004017244,0.005738921,0.001748577,-0.014921193,-0.013127781,0.033572685,-0.022094844,-0.038163818,-0.030129332,0.005057423,0.034576993,0.028264182,0.029698912,-0.003443352,0.022238316,-0.026255561,-0.029842386,0.001883083,-0.006241076,-0.032711845,0.008429039,0.019799275,0.015710294,-0.019368855,-0.00882359,-0.007101914,-0.013414727,-0.004698741,0.01477772,-0.015351612,-0.018508019,0.034290049,-0.012984307,0.008859458,-0.010688739,-0.000573892,0.028694602,0.002313502,0.023959992,-0.013199517,-0.004770477,-0.035294361,0.003228143,0.004949819,-0.041033279,-0.015638558,0.02812071,0.009612692,-0.010760476,-0.005057423,0.010043111,-0.035868254,-0.003192274,0.016427658,-0.007711674,0.012051732,-0.013773409,0.034720469,0.00760407,0.009469219,0.012840834,-0.007962752,-0.024677357,0.006348681,-0.01334299,-0.00308467,0.012984307,0.015208139,0.02955544,0.002116227,0.000403518,-0.02195137,-0.015136402,0.002905329,0.008321434,-0.028981548,-0.035294361,-0.024533885,0.002994999,-0.017073289,-0.021664424,0.013414727,0.006384549,-0.024964303,0.018508019,0.002941197,0.01047353,-0.022668736,0.00421452,-0.034433521,0.005380238,-0.018938437,0.017001551,0.019081909,-0.002636316,-0.006456285,0.008644248,0.008859458,0.011190895,-0.00760407,0.006707363,0.007066045,-0.017718917,0.012195205,-0.037589926,-0.001013278,-0.002456975,-0.003658562,0.016499396,-0.00286946,0.002851526,-0.013414727,0.027977237,-0.040459387,-0.000515606,0.017431971,-0.00882359,0.029985858,-0.007532333,-0.01169305,-0.011836523,0.022525262,0.004627005,0.027403345,-0.010688739,-0.011334368,-0.031564061,-0.018221073,0.023959992,-0.016858079,0.045624416,0.017288497,-0.023529572,-0.016786342,0.042181063,0.003748232,-0.017288497,-0.008142093,-0.004268322,0.040172443,-0.019368855,0.006671495,-0.001488532,0.042754956,-0.020229694,-0.028694602,-0.041033279,0.01047353,0.004286256,0.004411795,-0.019081909,0.020803586,0.03672909,-0.008142093,-0.008751853,0.001640973,-0.014347301,-0.038450766,0.000522331,-0.020229694,-0.018508019,0.035581306,0.050789446,0.055093635,-0.021807898,0.038163818,-0.011262631,0.025251249,-0.034290049,0.045050524,0.0067791,-0.02094706,-0.048206929,0.008859458,0.007137782,-0.024677357,0.012769097,0.006025866,-0.035294361,0.009612692,-0.04476358,0.007675806,0.037876874,0.005236765,0.001156751,0.012625624,0.01025832,0.023529572,0.015423348,0.004160717,-0.021664424,-0.017862389,0.015925504,0.041033279,0.023242628,0.019512329,0.037876874,-0.018005863,-0.006635627,0.001981721,0.016571132,0.009540955,0.010114847,0.008715985,0.006599758,0.012410415,0.005236765,-0.014992929,0.03099017,-0.002797724,-0.039885495,0.05825004,0.000159165,0.016140714,0.043041904,-0.000887739,0.008034488,0.024964303,-0.028838074,-0.015638558,0.009182272,-0.033859629,-0.001963787,-0.008070357,-0.009612692,-0.012410415,0.003676496,-0.047633037,0.005236765,0.032711845,0.002439041,0.017073289,-0.011621314,-0.011764786,-0.018651491,0.003927574,0.002456975,-0.019225383,0.018938437,0.046198308,0.019081909,-0.045624416,-0.015423348,0.009182272,0.020086221,0.008393171,-0.003855837,-0.019942747,-0.02094706,0.000883256,0.015064666,-0.010688739,0.011119158,0.015495085,0.014490774,-0.022238316,0.012051732,0.012769097,-0.019081909,-0.005344369,-0.011621314,0.017145025,-0.008249698,-0.005344369,0.022812208,0.002286601,-0.009002931,0.028407656,-0.001865149,-0.013701673,-0.013845146,-0.006492154,0.022812208,-0.030416278,-0.035294361,-0.042754956,-0.016284186,0.007137782,0.002510778,0.008572512,-0.013701673,0.00656389,-0.006671495,0.012697361,-0.022238316,-0.001856182,0.006276944,0.006599758,0.008680117,-0.006133471,0.006958441,-0.023816518,0.008177961,0.009254009,0.003335747,-0.006635627,-0.015853768,0.007532333,-0.048206929,-0.05825004,-0.025394723,-0.031420588,-0.001049146,0.021377478,-0.023816518,-0.046198308,0.026112087,0.0045194,-0.028694602,-0.007747543,-0.024533885,-0.024677357,-0.032281429,0.018794963,-0.032711845,-0.009684428,0.011190895,-0.001380928,0.015279875,-0.025107777,-0.005738921,-0.004340059,-0.002170029,-0.017718917,-0.020373167,0.010186584,-0.009971374,-0.025394723,0.003622693,-0.048493877,0.015638558,-0.036155198,-0.016427658,-0.000600793,0.003281945,0.022094844,-0.009110536,-0.017145025,-0.023242628,-0.014921193,0.023673046,0.02195137,-0.025394723,0.003371616,-0.032998793,-0.000959476,-0.037589926,-0.013271254,-0.04476358,-0.015423348,-0.018651491,-0.049067769,0.033429209,-0.002089326,-0.033716157,-0.000932575,-0.001080531,0.036155198,-0.004106915,0.005272633,-0.02195137,-0.010043111,-0.027403345,-0.035868254,0.006814968,0.039598551,0.037302982,-0.041320227,-0.025394723,-0.025394723,-0.000699431,0.003604759,0.016355922,-0.00799862,-0.006994309,0.035150886,0.020229694,-0.007747543,0.017647181,0.026399033,-0.030416278,-0.011908259,0.026542507,-0.012195205,0.034146577,-0.006169339,-0.008859458,0.0045194,0.019799275,-0.031277116,-0.022812208,0.007066045,0.039885495,0.001264356,-0.026542507,-0.016355922,0.002214865,-0.018938437,-0.02955544,-0.008070357,-0.006420417,-0.001389895,0.002241766,-0.018292809,0.016355922,-0.002134161,0.037302982,0.00180238,-0.013199517,-0.020086221,-0.011621314,0.021377478,-0.005272633,-0.02195137,-0.017216761,0.037876874,0.033142265,0.041607171,-0.011477841,0.031133642,-0.045050524,-0.003981376,-0.025394723,-0.031707536,0.024533885,0.032568373,0.028694602,-0.021090532,-0.019942747,0.054806691,-0.004483532,-0.020086221,-0.01599724,0.018651491,0.020373167,0.000504397,-0.007424728,-0.063702017,-0.014203828,0.030846696,-0.006599758,-0.027259871,-0.024103465,-0.020660114,-0.004985687,0.005559579,-0.034146577,-0.011549577,-0.00173961,0.008321434,0.007030177,-0.015638558],
25 'numCandidates': 150,
26 'limit': 10
27 }
28 }, {
29 '$project': {
30 '_id': 0,
31 'title': 1,
32 'plot': 1,
33 'year': 1,
34 'score': {
35 '$meta': 'vectorSearchScore'
36 }
37 }
38 }
39]
40
41# run pipeline
42result = client["sample_mflix"]["embedded_movies"].aggregate(pipeline)
43
44# print results
45for i in result:
46 print(i)
47
1{'plot': 'A down-on-his-luck inventor turns a broken-down Grand Prix car into a fancy vehicle for his children, and then they go off on a magical fantasy adventure to save their grandfather in a far-off land.', 'title': 'Chitty Chitty Bang Bang', 'year': 1968, 'score': 0.7489712834358215}
2{'plot': 'While hearing the story of "Gulliver\'s Travels", a young boy dreams he is the title character on the island of Lilliput .', 'title': 'The New Gulliver', 'year': 1935, 'score': 0.7459166049957275}
3{'plot': 'A pilot, stranded in the desert, meets a little boy who is a prince on a planet.', 'title': 'The Little Prince', 'year': 1974, 'score': 0.7346078753471375}
4{'plot': 'Pistol-packing tomboy, and grandfather come to discover band of bank robbing bandits taking refuge in the neighboring ghost town.', 'title': 'Yellow Sky', 'year': 1948, 'score': 0.7290171384811401}
5{'plot': 'A boy raised by wolves tries to adapt to human village life.', 'title': 'Jungle Book', 'year': 1942, 'score': 0.7287350296974182}
6{'plot': 'In 19th century England young Mary Grant and her brother Robert Grant embark on a dangerous quest to find their missing father,sea captain Grant,who vanished somewhere along the Chilean coast.', 'title': 'In Search of the Castaways', 'year': 1962, 'score': 0.7281590104103088}
7{'plot': 'Peter Pan enters the nursery of the Darling children and, with the help of fairy dust, leads them off to Never Never Land, where they meet the nefarious Captain Hook.', 'title': 'Peter Pan', 'year': 1924, 'score': 0.7273794412612915}
8{'plot': "In Africa, the girl Jill Young trades a baby gorilla with two natives and raises the animal. Twelve years later, the talkative and persuasive promoter Max O'Hara organizes a safari to ...", 'title': 'Mighty Joe Young', 'year': 1949, 'score': 0.7219074368476868}
9{'plot': 'A living puppet, with the help of a cricket as his conscience, must prove himself worthy to become a real boy.', 'title': 'Pinocchio', 'year': 1940, 'score': 0.721661388874054}
10{'plot': 'An apprentice witch, three kids and a cynical conman search for the missing component to a magic spell useful to the defense of Britain.', 'title': 'Bedknobs and Broomsticks', 'year': 1971, 'score': 0.720349133014679}

Atlas Vector Search filters the documents based on the year field value that ranges between 1955 and 1975. It returns documents that summarize children's adventures in the plot for movies released between 1955 and 1975.

Tip

Additional Filter Examples

The How to Perform Semantic Search Against Data in Your Atlas Cluster tutorial demonstrates other pre-filters in semantic search queries against the embedded data in the sample_mflix.embedded_movies collection.

The following query uses the $vectorSearch stage to search the plot_embedding_voyage_3_large field using vector embeddings for the string world war. It requests exact matches and limits the results to 10 documents only. The query also specifies a $project stage to do the following:

  • Exclude the _id field and include only the plot, title, and year fields in the results.

  • Add a field named score that shows the vector search score of the documents in the results.

  1. Save the following embeddings in a file named query-embeddings.js:

    WORLD_WAR_EMBEDDING=[0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588];
  2. Load the file into mongosh to use the embeddings in your query:

    load('/<path-to-file>/query-embeddings.js');
  3. Run the following query.

    1db.embedded_movies.aggregate([
    2 {
    3 "$vectorSearch": {
    4 "index": "vector_index",
    5 "path": "plot_embedding_voyage_3_large",
    6 "queryVector": WORLD_WAR_EMBEDDING,
    7 "exact": true,
    8 "limit": 10
    9 }
    10 },
    11 {
    12 "$project": {
    13 "_id": 0,
    14 "plot": 1,
    15 "title": 1,
    16 "score": { $meta: "vectorSearchScore" }
    17 }
    18 }
    19])
    1[
    2 {
    3 plot: 'During WW2 the Russian Army sent a special group named "Zvezda" to fight the Nazis in their backyard.',
    4 title: 'The Star',
    5 score: 0.7459506392478943
    6 },
    7 {
    8 plot: "As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.",
    9 title: 'P-51 Dragon Fighter',
    10 score: 0.7430292367935181
    11 },
    12 {
    13 plot: 'April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.',
    14 title: 'Fury',
    15 score: 0.7428240776062012
    16 },
    17 {
    18 plot: "It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...",
    19 title: 'Memphis Belle',
    20 score: 0.7340154647827148
    21 },
    22 {
    23 plot: 'The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...',
    24 title: 'The Young Lions',
    25 score: 0.7327103614807129
    26 },
    27 {
    28 plot: 'Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.',
    29 title: 'White Tiger',
    30 score: 0.732368528842926
    31 },
    32 {
    33 plot: 'The story of ordinary men during WWII as seen from three different points of View.',
    34 title: 'The Fallen',
    35 score: 0.7301670908927917
    36 },
    37 {
    38 plot: 'A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.',
    39 title: 'War Pigs',
    40 score: 0.7290490865707397
    41 },
    42 {
    43 plot: 'Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...',
    44 title: 'The Red Baron',
    45 score: 0.728823184967041
    46 },
    47 {
    48 plot: 'In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.',
    49 title: 'Battle of Britain',
    50 score: 0.7270985245704651
    51 }
    52]
1using MongoDB.Bson;
2using MongoDB.Bson.Serialization.Attributes;
3using MongoDB.Bson.Serialization.Conventions;
4using MongoDB.Driver;
5using MongoDB.Driver.Search;
6
7public class vectorSearchBasicQuery
8{
9 // define connection to your Atlas cluster
10 private const string MongoConnectionString = "<connection-string>";
11
12 public static void Main(string[] args){
13 var camelCaseConvention = new ConventionPack { new CamelCaseElementNameConvention() };
14 ConventionRegistry.Register("CamelCase", camelCaseConvention, type => true);
15
16 // connect to your Atlas cluster
17 var mongoClient = new MongoClient(MongoConnectionString);
18
19 // define namespace
20 var moviesDatabase = mongoClient.GetDatabase("sample_mflix");
21 var moviesCollection = moviesDatabase.GetCollection<EmbeddedMovie>("embedded_movies");
22
23 // define vector embeddings to search
24 var vector = new[] {0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588};
25 var options = new VectorSearchOptions<EmbeddedMovie>() {
26 IndexName = "vector_index",
27 Exact = true
28 };
29
30 // run query
31 var results = moviesCollection.Aggregate()
32 .VectorSearch(m => m.Embedding, vector, 10, options)
33 .Project(Builders<EmbeddedMovie>.Projection
34 .Include(m => m.Title)
35 .Include(movie => movie.Plot))
36 .ToList();
37
38 // print results
39 foreach (var movie in results)
40 {
41 Console.WriteLine(movie.ToJson());
42 }
43 }
44}
45
46[BsonIgnoreExtraElements]
47public class EmbeddedMovie
48{
49 [BsonIgnoreIfDefault]
50 public string Title { get; set; }
51 public string Plot { get; set; }
52 [BsonElement("plot_embedding_voyage_3_large")]
53 public double[] Embedding { get; set; }
54}
1{ "_id" : { "$oid" : "573a13aaf29313caabd2144d" }, "plot" : "During WW2 the Russian Army sent a special group named \"Zvezda\" to fight the Nazis in their backyard.", "title" : "The Star" }
2{ "_id" : { "$oid" : "573a13e1f29313caabdbc094" }, "plot" : "As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.", "title" : "P-51 Dragon Fighter" }
3{ "_id" : { "$oid" : "573a13e1f29313caabdbbce8" }, "plot" : "April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.", "title" : "Fury" }
4{ "_id" : { "$oid" : "573a1399f29313caabcec130" }, "plot" : "It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...", "title" : "Memphis Belle" }
5{ "_id" : { "$oid" : "573a1394f29313caabce0d70" }, "plot" : "The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...", "title" : "The Young Lions" }
6{ "_id" : { "$oid" : "573a13daf29313caabdad76b" }, "plot" : "Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.", "title" : "White Tiger" }
7{ "_id" : { "$oid" : "573a13aef29313caabd2e8d0" }, "plot" : "The story of ordinary men during WWII as seen from three different points of View.", "title" : "The Fallen" }
8{ "_id" : { "$oid" : "573a13f1f29313caabddb924" }, "plot" : "A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.", "title" : "War Pigs" }
9{ "_id" : { "$oid" : "573a13adf29313caabd2a8cf" }, "plot" : "Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...", "title" : "The Red Baron" }
10{ "_id" : { "$oid" : "573a1396f29313caabce39a8" }, "plot" : "In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.", "title" : "Battle of Britain" }
1package main
2
3import (
4 "context"
5 "fmt"
6 "log"
7
8 "go.mongodb.org/mongo-driver/v2/bson"
9 "go.mongodb.org/mongo-driver/v2/mongo"
10 "go.mongodb.org/mongo-driver/v2/mongo/options"
11)
12
13func main() {
14 ctx := context.Background()
15
16 // Replace the placeholder with your Atlas connection string
17 const uri = "<connection-string>"
18
19 // Connect to your Atlas cluster
20 clientOptions := options.Client().ApplyURI(uri)
21 client, err := mongo.Connect(clientOptions)
22 if err != nil {
23 log.Fatalf("failed to connect to the server: %v", err)
24 }
25 defer func() { _ = client.Disconnect(ctx) }()
26
27 // Set the namespace
28 coll := client.Database("sample_mflix").Collection("embedded_movies")
29
30 queryVector := [2048]float64{
31 0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588,
32 }
33
34 vectorSearchStage := bson.D{
35 {"$vectorSearch", bson.D{
36 {"index", "vector_index"},
37 {"path", "plot_embedding_voyage_3_large"},
38 {"queryVector", queryVector},
39 {"exact", true},
40 {"limit", 10},
41 }}}
42
43 projectStage := bson.D{
44 {"$project", bson.D{
45 {"_id", 0},
46 {"plot", 1},
47 {"title", 1},
48 {"score", bson.D{{"$meta", "vectorSearchScore"}}},
49 }}}
50
51 cursor, err := coll.Aggregate(ctx, mongo.Pipeline{vectorSearchStage, projectStage})
52 if err != nil {
53 log.Fatalf("failed to retrieve data from the server: %v", err)
54 }
55 // display the results
56 type ProjectedMovieResult struct {
57 Title string `bson:"title"`
58 Plot string `bson:"plot"`
59 Score float64 `bson:"score"`
60 }
61
62 var results []ProjectedMovieResult
63 if err = cursor.All(ctx, &results); err != nil {
64 log.Fatalf("failed to unmarshal retrieved docs to ProjectedMovieResult objects: %v", err)
65 }
66 for _, result := range results {
67 fmt.Printf("Title: %v \nPlot: %v \nScore: %v \n\n", result.Title, result.Plot, result.Score)
68 }
69}
1Title: The Star
2Plot: During WW2 the Russian Army sent a special group named "Zvezda" to fight the Nazis in their backyard.
3Score: 0.7459506392478943
4
5Title: P-51 Dragon Fighter
6Plot: As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.
7Score: 0.7430292367935181
8
9Title: Fury
10Plot: April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.
11Score: 0.7428240776062012
12
13Title: Memphis Belle
14Plot: It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...
15Score: 0.7340154647827148
16
17Title: The Young Lions
18Plot: The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...
19Score: 0.7327103614807129
20
21Title: White Tiger
22Plot: Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.
23Score: 0.732368528842926
24
25Title: The Fallen
26Plot: The story of ordinary men during WWII as seen from three different points of View.
27Score: 0.7301670908927917
28
29Title: War Pigs
30Plot: A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.
31Score: 0.7290490865707397
32
33Title: The Red Baron
34Plot: Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...
35Score: 0.728823184967041
36
37Title: Battle of Britain
38Plot: In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.
39Score: 0.7270985245704651
1import static com.mongodb.client.model.Aggregates.*;
2import static com.mongodb.client.model.Projections.*;
3import static com.mongodb.client.model.search.SearchPath.fieldPath;
4import static java.util.Arrays.asList;
5
6import com.mongodb.client.MongoClient;
7import com.mongodb.client.MongoClients;
8import com.mongodb.client.MongoCollection;
9import com.mongodb.client.MongoDatabase;
10import com.mongodb.client.model.search.FieldSearchPath;
11import com.mongodb.client.model.search.VectorSearchOptions;
12import org.bson.Document;
13import org.bson.conversions.Bson;
14
15import java.util.List;
16
17public class FilterQuery {
18 public static void main(String[] args) {
19 // Specify connection URI
20 String uri = "<connection-string>";
21
22 // Establish MongoDB connection
23 try (MongoClient mongoClient = MongoClients.create(uri)) {
24 MongoDatabase database = mongoClient.getDatabase("sample_mflix");
25 MongoCollection<Document> collection = database.getCollection("embedded_movies");
26
27 // Parameters
28 List<Double> queryVector = asList(0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588);
29 String indexName = "vector_index";
30 FieldSearchPath fieldSearchPath = fieldPath("plot_embedding_voyage_3_large");
31 long limit = 10;
32
33 // Create ExactVectorSearchOptions for precise matching
34 VectorSearchOptions options = VectorSearchOptions.exactVectorSearchOptions();
35
36 // Define the aggregation pipeline
37 List<Bson> pipeline = asList(
38 vectorSearch(
39 fieldSearchPath,
40 queryVector,
41 indexName,
42 limit,
43 options
44 ),
45 project(
46 fields(
47 exclude("_id"),
48 include("title"),
49 include("plot"),
50 metaVectorSearchScore("score")
51 )
52 )
53 );
54
55 // Run aggregation query and print results
56 collection.aggregate(pipeline).forEach(doc -> System.out.println(doc.toJson()));
57 }
58 }
59}
1{"plot": "During WW2 the Russian Army sent a special group named \"Zvezda\" to fight the Nazis in their backyard.", "title": "The Star", "score": 0.7459505200386047}
2{"plot": "As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.", "title": "P-51 Dragon Fighter", "score": 0.7430291771888733}
3{"plot": "April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.", "title": "Fury", "score": 0.7428240180015564}
4{"plot": "It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...", "title": "Memphis Belle", "score": 0.7340154647827148}
5{"plot": "The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...", "title": "The Young Lions", "score": 0.7327103614807129}
6{"plot": "Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.", "title": "White Tiger", "score": 0.7323684692382812}
7{"plot": "The story of ordinary men during WWII as seen from three different points of View.", "title": "The Fallen", "score": 0.7301670908927917}
8{"plot": "A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.", "title": "War Pigs", "score": 0.7290489673614502}
9{"plot": "Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...", "title": "The Red Baron", "score": 0.7288231253623962}
10{"plot": "In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.", "title": "Battle of Britain", "score": 0.7270984649658203}
1const { MongoClient } = require("mongodb");
2
3// connect to your Atlas cluster
4const uri = "<connection-string>";
5
6const client = new MongoClient(uri);
7
8async function run() {
9 try {
10 await client.connect();
11
12 // set namespace
13 const database = client.db("sample_mflix");
14 const coll = database.collection("embedded_movies");
15
16 // define pipeline
17 const agg = [
18 {
19 '$vectorSearch': {
20 'index': 'vector_index',
21 'path': 'plot_embedding_voyage_3_large',
22 'queryVector': [
23 0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588
24 ],
25 'exact': true,
26 'limit': 10
27 }
28 }, {
29 '$project': {
30 '_id': 0,
31 'plot': 1,
32 'title': 1,
33 'score': {
34 '$meta': 'vectorSearchScore'
35 }
36 }
37 }
38 ];
39 // run pipeline
40 const result = coll.aggregate(agg);
41
42 // print results
43 await result.forEach((doc) => console.dir(JSON.stringify(doc)));
44 } finally {
45 await client.close();
46 }
47}
48run().catch(console.dir);
1'{"plot":"During WW2 the Russian Army sent a special group named \\"Zvezda\\" to fight the Nazis in their backyard.","title":"The Star","score":0.7459506392478943}'
2`{"plot":"As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.","title":"P-51 Dragon Fighter","score":0.7430292367935181}`
3'{"plot":"April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.","title":"Fury","score":0.7428240776062012}'
4`{"plot":"It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...","title":"Memphis Belle","score":0.7340154647827148}`
5'{"plot":"The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...","title":"The Young Lions","score":0.7327103614807129}'
6'{"plot":"Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.","title":"White Tiger","score":0.732368528842926}'
7'{"plot":"The story of ordinary men during WWII as seen from three different points of View.","title":"The Fallen","score":0.7301670908927917}'
8'{"plot":"A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.","title":"War Pigs","score":0.7290490865707397}'
9'{"plot":"Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...","title":"The Red Baron","score":0.728823184967041}'
10'{"plot":"In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.","title":"Battle of Britain","score":0.7270985245704651}'

Work with a runnable version of this example as a Python notebook.

1import pymongo
2
3# connect to your Atlas cluster
4client = pymongo.MongoClient("<connection-string>")
5
6# define pipeline
7pipeline = [
8 {
9 '$vectorSearch': {
10 'index': 'vector_index',
11 'path': 'plot_embedding_voyage_3_large',
12 'queryVector': [0.000370218,0.038684014,-0.001893905,-0.060604952,-0.019261414,0.001531242,0.015151238,-0.014103547,-0.019180823,-0.029335376,-0.011846979,0.003868401,0.012894671,-0.002458047,-0.003002041,-0.027078809,-0.019583782,0.041907679,-0.011282837,-0.029818926,0.031914312,-0.020309107,-0.002981893,-0.019906148,-0.012249937,0.041585315,-0.005601123,0.039328746,0.040618215,-0.017085439,-0.038361646,-0.012894671,-0.000352589,0.022565674,-0.011685796,-0.010114257,-0.019906148,-0.012491712,-0.022888042,-0.027401175,0.011846979,-0.002317011,0.045776084,-0.019422598,0.006930886,0.004875797,-0.038845196,0.023855142,0.009630707,-0.045131348,0.003868401,-0.00223642,-0.004392247,0.007212956,-0.019422598,0.046743184,-0.013217038,0.008099466,0.020792658,-0.062861525,-0.047710285,0.009388932,0.001541316,0.050611585,-0.032881413,-0.034009695,0.003002041,-0.005359347,-0.025628159,0.036749814,0.006286152,0.016440706,-0.041262947,0.015715381,-0.012652896,-0.006326448,-0.014909463,0.041262947,-0.025144609,0.00417062,-0.026111709,0.066729926,0.013619997,0.025144609,-0.004291508,0.007978578,-0.009751595,0.003566182,-0.010557512,-0.028207093,-0.015393013,0.048032649,-0.032075495,-0.014425913,0.020792658,0.01096047,0.008502424,-0.013217038,-0.032075495,0.026917625,-0.00165213,0.007172661,-0.063506253,0.034654427,-0.013861772,0.009268044,-0.012894671,-0.023855142,-0.024983425,-0.009308341,0.047710285,-0.010396329,-0.02949656,-0.015151238,0.025144609,0.041262947,0.02095384,-0.004432543,0.011041062,-0.032881413,0.016118338,-0.000478513,0.036749814,0.00417062,-0.040457029,0.017730173,-0.071565427,0.023532774,0.047387917,-0.017730173,0.026272893,-0.001289467,0.000760584,0.004331803,0.017891357,0.012652896,-0.064150989,0.058348387,0.040295847,-0.023532774,-0.012894671,-0.02852946,-0.001914053,0.004734762,-0.017568989,-0.007736803,-0.02095384,-0.014909463,-0.014909463,-0.02047029,0.018858457,-0.005198164,0.000264442,-0.007092069,0.026434075,0.005601123,0.007011477,-0.003928845,-0.004190768,0.023693958,-0.011927571,0.001203838,0.008180057,0.011766387,0.015715381,-0.038522828,-0.019342007,-0.006084673,0.003404999,-0.002256567,-0.003485591,0.009832187,0.023371592,-0.04384188,-0.029818926,0.038361646,0.019906148,-0.004372099,0.004090028,-0.015393013,-0.028690644,-0.033203777,0.025305793,0.015957156,0.005560827,0.021115024,0.008905382,0.018858457,-0.024983425,0.008180057,0.055769451,0.025628159,-0.010557512,-0.000236738,-0.003626626,-0.014184138,0.019664373,-0.00310278,-0.011202246,0.01426473,0.007092069,0.02901301,0.046420816,-0.001994645,0.02192094,0.038845196,-0.036588628,0.021598574,-0.019986739,0.003707218,0.001138358,0.018697273,0.003888549,-0.034976795,0.016360113,-0.031591944,0.002468121,0.015554197,0.001611834,0.013700588,-0.052223418,-0.006004081,0.024338692,-0.024661059,-0.006689111,-0.035460345,0.010235145,0.039489929,-0.007857691,-0.026272893,-0.00261923,-0.011363429,-0.026756443,-0.00640704,0.036749814,0.037233364,-0.006245856,-0.005278756,-0.027562359,-0.049966849,-0.021276208,-0.006971181,-0.013055854,-0.005399643,0.048032649,-0.033203777,-0.002296863,0.023693958,0.026917625,0.000705177,0.022404492,-0.021598574,0.013700588,0.004432543,0.031269576,0.01523183,0.010275441,-0.017568989,-0.023210408,0.050289217,-0.004996685,0.010315737,-0.017004848,0.017246623,-0.00950982,0.017327214,-0.035943896,0.014506505,0.001621908,-0.012491712,0.01096047,-0.011927571,-0.024177508,0.015634788,-0.026595259,0.007897986,-0.014425913,-0.001490946,0.017971948,0.007736803,0.023371592,0.011041062,0.008220353,-0.010557512,0.003888549,-0.034493245,-0.043197148,-0.013942363,-0.008905382,0.002699822,0.025628159,0.001430503,-0.008018874,-0.018858457,0.059315488,-0.018697273,-0.040618215,-0.014022955,0.004815354,0.012008162,-0.014103547,0.030786026,0.043519516,0.005601123,-0.019664373,0.001400281,-0.022082124,-0.018858457,-0.026434075,0.025305793,-0.024822243,0.038039278,-0.011121654,-0.032720227,-0.018374907,-0.005137721,0.001390207,0.028045909,0.03046366,0.00592349,-0.041907679,-0.024338692,-0.042552415,0.006527927,-0.012008162,-0.027401175,0.000337478,0.027884725,0.009912779,-0.011121654,0.004009437,-0.003122928,0.022404492,-0.010275441,-0.004392247,0.00689059,0.01523183,-0.019180823,-0.034170877,-0.040940579,0.021598574,0.005077277,-0.03046366,0.04384188,0.03046366,0.012733487,0.010879879,0.02192094,-0.006930886,-0.016924256,0.038200464,-0.013861772,0.002417751,-0.023532774,-0.016279522,-0.014425913,0.026595259,0.024177508,0.000977174,0.007333844,0.02998011,-0.042230047,0.003042337,0.000730362,0.033364963,-0.002306937,0.005057129,-0.023049224,-0.015876563,-0.022726858,-0.005641419,0.004553431,0.009751595,0.014587097,0.017246623,-0.049966849,0.004613874,0.040457029,0.04287478,0.004090028,-0.00261923,0.002407677,0.039489929,0.002377455,0.007051773,0.025144609,0.024177508,-0.000705177,0.012411121,-0.025789343,-0.024016324,-0.030302476,-0.009268044,-0.00950982,0.017246623,0.013458813,0.008583016,-0.022565674,-0.006366744,0.00427136,-0.007736803,0.020147923,-0.012733487,-0.023693958,-0.006165265,0.035137977,-0.023049224,0.002699822,0.005399643,0.035299163,-0.007817394,0.031914312,-0.000149221,0.015473605,-0.026272893,-0.009711299,-0.002981893,0.000649771,0.064150989,0.032720227,-0.052223418,-0.017810764,-0.010275441,0.027078809,0.030786026,-0.016360113,0.039973479,-0.003122928,-0.038522828,-0.012249937,-0.033848513,-0.027239993,-0.028851826,0.018374907,-0.030302476,-0.048032649,0.011282837,0.058670752,-0.008784494,0.01096047,0.005057129,0.004009437,0.002488269,0.016843664,0.003163224,-0.027884725,-0.001934201,-0.030302476,-0.015715381,-0.001480872,0.011766387,-0.039973479,-0.009227749,-0.003304259,-0.026917625,-0.012088754,-0.014990055,0.03046366,0.007857691,0.042552415,-0.011846979,-0.008421832,-0.001813313,-0.019342007,-0.017166032,0.000972137,0.017004848,-0.018374907,0.037555728,0.019986739,0.018697273,0.014184138,0.027723543,0.023693958,-0.005077277,-0.025305793,0.011846979,0.000705177,0.042552415,-0.037072178,0.010879879,-0.028690644,-0.029818926,0.010879879,-0.014184138,-0.036266264,-0.031591944,-0.033687327,0.022888042,-0.016763072,0.004513135,0.000705177,0.02192094,0.025950525,0.015473605,-0.018374907,0.039489929,0.002881153,-0.037072178,-0.021115024,-0.008623311,-0.002095384,-0.026272893,0.015795972,0.015715381,0.034493245,0.030302476,0.010799287,-0.020228514,0.005137721,0.025628159,0.024016324,-0.008220353,0.002397603,-0.030624844,-0.014587097,0.022082124,-0.006608519,-0.041101765,-0.002478195,-0.031914312,0.017166032,-0.008300944,-0.004593727,-0.001390207,0.032720227,-0.005681715,0.002417751,0.000473476,-0.037878096,-0.046743184,-0.01378118,-0.016198931,-0.007897986,0.006608519,-0.011846979,0.027078809,-0.022243308,0.022565674,-0.007293548,-0.019019639,0.037394546,-0.035299163,-0.02192094,0.008421832,0.000135998,-0.000785769,-0.051578686,0.009227749,-0.015393013,-0.029174194,-0.015554197,0.001400281,0.007495028,-0.002820709,0.041585315,-0.017568989,0.054479986,-0.005641419,-0.024177508,-0.042552415,0.026111709,-0.014909463,0.023855142,-0.022565674,0.010033666,0.028207093,0.010073962,0.007736803,0.015312422,0.037878096,-0.002659526,-0.030786026,0.012652896,-0.019261414,0.005641419,0.019100232,-0.037555728,-0.00013285,-0.020228514,-0.001672278,0.038039278,-0.008703903,0.011282837,0.004351952,0.012894671,0.024177508,0.016440706,0.013942363,-0.008542719,0.005842898,0.001934201,0.00090162,0.014022955,-0.024983425,0.021115024,0.010073962,0.002528564,0.001390207,-0.012008162,0.002347233,-0.015795972,-0.016843664,-0.001793165,-0.016601888,-0.010396329,-0.027239993,-0.001188727,-0.001264282,-0.00950982,0.003928845,0.019503189,0.003485591,-0.026595259,-0.01096047,-0.030302476,-0.00320352,-0.01523183,0.028045909,-0.005641419,0.031108394,-0.01096047,0.011363429,0.016118338,-0.022404492,0.02143739,0.019342007,-0.013378222,0.027723543,-0.034332063,-0.015312422,0.02852946,-0.039489929,0.032720227,0.010154554,0.004956389,0.036105078,0.004775058,-0.038522828,0.019986739,0.020147923,0.009751595,-0.006366744,0.038200464,-0.028690644,-0.007656211,0.020228514,0.00155139,-0.015795972,0.022243308,0.011444021,-0.012491712,0.020550882,0.033687327,0.008865086,0.017730173,0.018213723,0.001682352,-0.043519516,-0.038200464,0.018052539,0.006930886,0.002075236,-0.018536089,0.008703903,-0.000053518,-0.007172661,0.025144609,-0.008099466,0.000120888,-0.016763072,-0.005762306,-0.004432543,-0.00640704,0.05996022,0.031914312,-0.002075236,0.027401175,0.037555728,-0.004311656,-0.01426473,-0.010638104,0.048999749,0.002317011,0.032075495,-0.000120888,-0.00358633,-0.036105078,0.020792658,0.008663607,0.003868401,-0.026917625,-0.02192094,-0.019261414,0.01378118,0.033364963,0.027884725,-0.005883194,-0.009590412,-0.001440577,0.025628159,0.050289217,0.009912779,0.036427446,0.001123247,0.000637178,0.007777099,0.008865086,0.014506505,0.031108394,0.020067332,-0.042552415,-0.006527927,0.005117572,-0.022888042,0.006447336,-0.018294314,-0.004714614,0.009751595,-0.011927571,0.020389698,-0.018939048,0.004210916,0.049644485,-0.014587097,-0.019019639,0.000795843,-0.016440706,0.011202246,0.031430762,0.024177508,0.029818926,-0.014103547,-0.017568989,0.006165265,-0.023855142,0.026434075,-0.012491712,0.008784494,-0.019664373,-0.019261414,-0.003928845,0.013378222,-0.009227749,0.003969141,0.023049224,0.010799287,0.003122928,0.008260649,-0.026595259,-0.055447087,0.016440706,-0.003304259,-0.003707218,-0.046743184,0.018858457,0.000375255,-0.016924256,0.020792658,0.016440706,-0.027401175,0.002740117,-0.007092069,-0.005802602,0.000506217,0.028690644,-0.000493624,0.001571538,0.001400281,0.003263964,-0.001994645,-0.00310278,-0.002327085,-0.01474828,0.026595259,0.008300944,-0.008260649,0.00592349,0.046743184,-0.009308341,-0.016924256,0.011444021,0.01047692,0.006326448,-0.037394546,-0.008583016,-0.020631474,0.024177508,0.015312422,-0.007938282,0.017085439,0.02143739,-0.004130324,0.004372099,-0.004976537,0.048032649,-0.027401175,0.018697273,-0.006447336,0.00203494,0.005963786,-0.014184138,0.009671004,0.007535324,-0.033042595,0.016360113,-0.024338692,-0.008099466,0.024499875,0.000785769,0.010799287,0.028207093,-0.01523183,0.022082124,0.006527927,0.032881413,-0.037716914,0.034009695,-0.009671004,0.016521297,0.032881413,-0.02143739,0.02143739,-0.014184138,0.006124969,-0.028368276,0.038039278,0.026917625,0.012411121,-0.009912779,-0.006366744,-0.047387917,0.016763072,-0.022726858,0.064473353,-0.017730173,0.009832187,0.003445295,0.025789343,-0.003344555,-0.021276208,0.005198164,0.01378118,-0.011202246,-0.006286152,-0.026434075,-0.007817394,0.003969141,-0.037394546,0.006930886,0.000836139,0.000254368,-0.036749814,-0.022082124,-0.006568223,-0.026111709,-0.002175976,0.004069881,-0.037072178,-0.017568989,0.048355017,0.011605204,0.00523846,-0.023210408,-0.01329763,0.000198961,0.02095384,0.004069881,0.000124036,0.008018874,-0.004009437,-0.065440454,-0.008985974,-0.04384188,0.00261923,-0.017407807,0.012733487,-0.017246623,0.031591944,0.007454732,-0.015715381,-0.025789343,0.016843664,-0.008300944,-0.010557512,-0.020550882,-0.028851826,0.002498342,0.028368276,-0.037716914,0.006366744,0.027562359,-0.003062484,0.017649582,0.034493245,-0.003082632,0.017891357,-0.023693958,0.020309107,0.018777864,0.055769451,-0.011363429,-0.018777864,0.022565674,0.001410355,0.035299163,0.012975262,0.007897986,-0.031108394,0.007253252,0.001299541,0.02143739,-0.012249937,0.01047692,-0.020631474,-0.014667688,-0.029657744,-0.002861005,-0.023693958,0.042230047,-0.000669918,0.001531242,-0.005883194,-0.03046366,-0.05286815,0.029174194,-0.009630707,-0.013136446,-0.034654427,0.021598574,-0.012491712,-0.019422598,0.021759758,0.006689111,-0.058670752,0.014828872,0.014345322,-0.016601888,0.038522828,-0.026272893,-0.047710285,-0.003263964,-0.007978578,0.016682481,-0.027078809,-0.000295923,-0.00427136,-0.001198801,0.006850294,-0.006809998,-0.002498342,-0.002065162,0.012169346,-0.001218949,-0.002578934,0.008462128,0.006648815,-0.020147923,0.005399643,0.028207093,-0.014184138,-0.001611834,-0.017649582,-0.032720227,0.009630707,0.006165265,-0.020147923,-0.007132365,-0.027401175,-0.002820709,-0.022888042,0.024499875,-0.011121654,-0.017568989,-0.02095384,-0.017246623,0.018697273,-0.017730173,0.022565674,0.034170877,0.012652896,-0.009388932,0.039328746,-0.000760584,0.009388932,-0.006769702,-0.005278756,0.011282837,0.006366744,-0.049322117,-0.005722011,0.009630707,-0.00223642,-0.004251212,-0.006930886,0.034009695,0.001359985,0.00310278,-0.05286815,-0.004372099,0.027562359,-0.025305793,-0.010073962,-0.013136446,-0.011846979,0.030302476,-0.008018874,-0.025950525,-0.017004848,0.032075495,0.033687327,0.020550882,0.007897986,-0.034976795,-0.018616682,0.001833461,-0.04287478,0.018213723,0.029174194,0.009590412,-0.035621528,0.005762306,0.002065162,0.019180823,0.019180823,0.016521297,-0.017327214,0.023532774,0.012008162,0.032236677,0.002840857,-0.008059169,0.000861324,0.024499875,-0.012733487,0.038361646,0.033364963,0.013942363,0.028368276,0.00203494,0.005057129,0.016198931,0.051256318,-0.000302219,0.004895946,-0.02998011,-0.033203777,-0.005016833,-0.008905382,-0.018697273,0.001994645,-0.008744199,0.022082124,0.036749814,0.004351952,-0.008099466,-0.020228514,-0.019503189,0.020147923,0.028045909,-0.03094721,0.019744964,0.01523183,-0.012008162,0.017166032,0.000685029,0.021276208,-0.004049733,-0.015151238,-0.047710285,0.000488587,-0.016601888,0.003505739,0.001359985,-0.012411121,-0.017407807,-0.016601888,-0.003445295,0.019422598,0.011363429,-0.001113173,-0.008220353,-0.020389698,0.017407807,0.02143739,0.001012433,-0.006245856,-0.024016324,0.024499875,-0.006366744,0.046420816,-0.000397921,0.000098851,-0.010033666,0.007938282,0.014909463,-0.027723543,-0.040295847,-0.059315488,-0.014828872,0.001349911,-0.02998011,0.002357307,0.010154554,0.005097425,0.000992285,0.031753127,-0.009308341,0.008985974,0.013861772,-0.017327214,-0.008865086,0.040618215,-0.003707218,0.005097425,-0.011363429,0.005560827,0.01096047,-0.009388932,-0.015876563,-0.022565674,-0.016440706,0.023210408,-0.004029585,0.017568989,-0.012088754,0.00005037,0.000941915,0.000866361,0.023049224,0.000871398,0.004815354,-0.021598574,0.000730362,0.002981893,0.01047692,-0.004573578,0.014022955,0.025628159,-0.026595259,-0.020067332,0.02143739,0.033848513,-0.009912779,-0.007978578,0.002175976,-0.026917625,0.029174194,-0.025628159,-0.047065549,-0.018133132,-0.00150102,0.052223418,0.012652896,-0.022726858,0.011524612,-0.012814079,0.005359347,-0.007172661,0.013619997,0.03046366,0.013539405,-0.000591845,0.033203777,0.026917625,-0.044164248,-0.014990055,0.00223642,-0.008139761,0.025950525,0.021276208,0.005016833,-0.004976537,-0.01378118,0.00592349,-0.001329763,0.038684014,0.021115024,0.048999749,0.049966849,-0.018777864,0.018616682,0.038200464,-0.026272893,-0.051578686,0.024499875,0.006850294,-0.019180823,-0.00043318,0.020792658,0.003505739,-0.015473605,-0.041262947,-0.026917625,0.067374654,0.004694466,0.001621908,-0.025305793,0.003606478,0.006286152,-0.020309107,0.016118338,-0.019180823,0.007092069,-0.017327214,-0.006326448,-0.007897986,0.000556586,-0.03046366,-0.013136446,0.016843664,-0.024338692,-0.011444021,-0.018777864,0.002840857,-0.036749814,-0.01523183,-0.009630707,-0.013055854,-0.042230047,0.017327214,-0.012814079,-0.016843664,0.002256567,-0.007656211,0.005963786,-0.016360113,0.026756443,0.019986739,-0.022082124,-0.024983425,-0.039489929,0.01378118,-0.012008162,0.000876435,-0.02192094,0.018133132,-0.020792658,-0.019583782,-0.005842898,0.020067332,-0.016763072,0.007414436,0.01096047,-0.000521328,0.01047692,0.00011711,0.035299163,0.038039278,0.049644485,-0.003062484,0.014667688,-0.007454732,0.006809998,-0.018536089,-0.015554197,0.016360113,0.008542719,-0.013217038,0.02998011,0.017810764,0.048999749,0.020309107,-0.017649582,-0.011041062,0.008381536,0.011363429,0.039651114,-0.012411121,0.011685796,0.029657744,-0.011524612,-0.020147923,0.03046366,0.00261923,-0.00320352,-0.002317011,-0.00101747,-0.047387917,0.04287478,-0.011927571,-0.017488398,-0.010638104,-0.006850294,0.01096047,0.033848513,-0.006124969,0.001793165,0.015473605,-0.048999749,0.006447336,0.033848513,0.008663607,-0.024822243,0.005399643,-0.00368707,-0.015070647,-0.009590412,0.001289467,-0.018858457,0.02095384,-0.007414436,-0.008421832,0.000715251,-0.015473605,0.02901301,0.020309107,-0.003707218,0.016360113,-0.008663607,0.018939048,0.001218949,0.00358633,-0.003284112,0.036427446,0.02192094,0.022888042,-0.024661059,0.008341241,-0.024338692,-0.00950982,-0.017166032,0.046743184,-0.018052539,-0.012975262,0.002800561,-0.012008162,-0.013055854,0.028368276,-0.057381287,0.018697273,-0.043519516,-0.018052539,0.001370059,-0.019342007,0.022404492,0.017166032,-0.004351952,0.001611834,-0.028207093,0.001319689,0.025950525,0.025305793,0.017488398,-0.045776084,-0.024983425,0.005117572,-0.010879879,0.020147923,-0.00999337,0.022082124,0.000337478,-0.018777864,0.007978578,-0.039328746,0.000249331,0.04287478,-0.012411121,-0.023532774,0.006527927,0.028207093,0.009348636,0.006084673,-0.007293548,-0.022082124,-0.017085439,0.02047029,-0.007817394,0.003243816,-0.008381536,-0.00523846,-0.004674318,-0.051256318,0.019986739,-0.009912779,0.040940579,0.006527927,-0.002861005,0.035460345,0.026434075,0.015393013,-0.005359347,-0.012733487,-0.025628159,0.019664373,-0.018536089,0.025305793,-0.009912779,0.032397863,0.047387917,0.000674955,0.031108394,-0.008381536,-0.002558786,-0.01096047,-0.004674318,0.002115532,0.000275775,0.02047029,0.036427446,-0.027401175,-0.030302476,-0.000410514,0.006769702,0.024822243,-0.011041062,0.028690644,0.019180823,-0.016763072,-0.037072178,-0.027078809,0.038845196,0.05996022,-0.037233364,-0.000377774,0.006487631,0.006729406,0.033848513,-0.019422598,-0.007092069,-0.001621908,0.026111709,-0.002498342,0.014345322,-0.019342007,0.017891357,-0.014587097,-0.004533283,-0.020147923,0.001430503,-0.009711299,0.049644485,0.001410355,-0.010315737,0.003082632,-0.00271997,-0.023371592,0.006729406,0.025144609,0.023210408,0.004976537,-0.000278293,-0.025305793,0.012330529,-0.019019639,-0.00640704,-0.006286152,0.017971948,-0.002327085,0.016924256,-0.015795972,-0.012491712,-0.011282837,0.003022189,0.01047692,0.027239993,0.012008162,0.003263964,0.026434075,0.035621528,-0.024338692,-0.012652896,0.024822243,0.000654807,0.028368276,0.011202246,0.016440706,0.016360113,-0.026917625,-0.019744964,0.013217038,0.011363429,-0.003928845,-0.028690644,0.001440577,-0.037716914,0.023693958,0.018374907,0.011927571,-0.042552415,0.012169346,-0.009953074,0.011444021,0.019503189,-0.016279522,0.003243816,-0.022888042,-0.024016324,-0.007897986,-0.006487631,-0.010638104,-0.041907679,-0.025950525,-0.032881413,-0.022404492,-0.03094721,0.01378118,0.043519516,-0.010718695,0.020067332,0.037555728,-0.000215331,0.019664373,0.004916093,-0.040940579,-0.048999749,0.017407807,0.006648815,-0.014587097,-0.014506505,-0.047387917,-0.006729406,0.015393013,0.028851826,0.024983425,-0.009832187,-0.004996685,0.025466975,0.015070647,-0.004593727,-0.010073962,0.000685029,0.041262947,-0.006326448,0.021598574,0.025466975,0.02143739,-0.007253252,0.029174194,-0.012169346,0.011605204,-0.008623311,-0.002024866,-0.001450651,0.025144609,0.004009437,0.02852946,-0.003002041,-0.02143739,-0.027401175,-0.02998011,0.023210408,0.016279522,0.017166032,-0.020228514,0.011202246,-0.014103547,0.009590412,-0.014506505,-0.049966849,-0.009872482,0.002558786,-0.036105078,0.004009437,0.010718695,-0.004996685,0.003707218,-0.008663607,0.012894671,-0.003022189,-0.002901301,0.000886509,0.017327214,-0.027401175,-0.016601888,-0.010799287,-0.005883194,-0.026595259,-0.033526145,-0.004513135,0.010396329,0.017971948,-0.035782713,-0.041585315,-0.009026269,-0.001349911,0.005641419,-0.001329763,0.003747514,-0.005319052,-0.005883194,-0.000277034,0.021115024,0.02901301,-0.027562359,0.044486616,-0.071887791,-0.002861005,-0.003404999,-0.005319052,0.003022189,0.024499875,0.034493245,-0.009106861,0.016037747,-0.005439939,0.050289217,0.003404999,-0.013619997,0.021115024,0.021759758,0.022243308,-0.002578934,-0.000579253,-0.054157618,-0.012088754,0.00737414,-0.030786026,-0.019825557,0.003969141,-0.002558786,0.022243308,0.029335376,-0.024016324,0.006527927,0.012814079,-0.019019639,0.012249937,-0.004694466,-0.002266641,-0.014022955,0.023049224,-0.020631474,-0.025466975,-0.037072178,0.002266641,-0.013378222,0.006124969,0.012491712,0.017407807,-0.009872482,0.031108394,0.010315737,0.032881413,-0.006648815,0.009832187,0.024338692,0.03094721,0.016279522,-0.022726858,0.03094721,-0.040134665,0.008139761,0.006809998,0.018294314,0.01523183,-0.03046366,-0.007172661,-0.007293548,0.003243816,0.006124969,-0.006729406,-0.003183372,0.047387917,0.006124969,-0.000375255,-0.024661059,0.022243308,-0.004492987,0.012330529,-0.02949656,0.027078809,-0.021759758,-0.004069881,0.013700588,-0.033526145,-0.009066566,-0.023049224,0.017891357,0.007212956,0.029818926,-0.023049224,-0.006689111,0.030302476,0.009147157,-0.005439939,-0.003042337,0.034815613,0.027078809,-0.055447087,-0.018616682,0.016763072,-0.013136446,-0.018616682,0.034009695,-0.003465443,-0.035621528,-0.002004718,0.01329763,0.023532774,-0.003525887,-0.005722011,-0.011363429,0.027239993,-0.016601888,-0.015473605,0.022565674,0.013136446,-0.021598574,-0.002538638,0.033203777,0.006245856,0.020631474,-0.001390207,0.013942363,-0.022082124,0.012733487,-0.006769702,0.024661059,-0.026595259,-0.003485591,-0.004513135,0.037555728,0.018133132,-0.026595259,0.024338692,-0.033687327,0.016924256,0.006608519,0.022243308,-0.033848513,-0.028368276,0.002538638,0.012894671,0.001183691,0.014990055,0.028207093,0.010879879,-0.012411121,0.012975262,0.006286152,0.002397603,-0.036427446,0.015070647,-0.030141294,0.015312422,0.017568989,-0.009348636,0.019583782,0.039651114,-0.006165265,0.004916093,-0.021276208,0.011766387,0.029335376,-0.004190768,-0.012894671,0.026756443,0.007092069,-0.024016324,-0.037716914,-0.001309615,0.048999749,-0.01474828,-0.032236677,0.025466975,0.011363429,0.043519516,0.007575619,0.034332063,-0.019019639,-0.011766387,-0.018858457,0.000056351,-0.004492987,0.000554068,0.003364703,-0.025144609,-0.062216789,0.001254208,0.033364963,0.005681715,0.02143739,0.007414436,-0.023855142,0.013539405,-0.032236677,-0.007857691,0.009348636,0.018536089,-0.018697273,0.031269576,-0.018616682,0.018455498,-0.006124969,-0.003143076,-0.010638104,0.000982211,0.023855142,-0.01047692,0.023049224,0.00640704,0.021115024,-0.009872482,0.019261414,0.026756443,-0.00427136,0.008502424,0.019906148,0.045776084,-0.008824791,0.005963786,-0.012814079,-0.016521297,-0.012249937,0.010033666,-0.017166032,0.014184138,-0.022726858,0.010879879,0.034493245,0.001359985,0.00640704,0.000972137,-0.027078809,0.013619997,-0.030302476,0.009388932,-0.001007396,0.016440706,0.017488398,-0.006447336,0.022888042,-0.00737414,-0.006366744,-0.005883194,-0.007454732,0.027562359,0.005802602,-0.003747514,-0.026434075,0.018213723,0.008462128,-0.003848253,-0.004049733,-0.014990055,-0.006004081,-0.01047692,-0.014425913,0.030624844,-0.015715381,-0.024338692,0.007495028,0.002820709,-0.021276208,-0.005399643,-0.057381287,-0.061249688,-0.013055854,0.02901301,0.01474828,-0.024177508,-0.026595259,0.012411121,-0.011927571,-0.007253252,-0.011927571,0.015070647,-0.019100232,0.015795972,-0.01096047,-0.024822243,0.003989289,0.012088754,-0.039006379,-0.050611585,0.000295923,-0.010718695,0.017327214,-0.01426473,-0.010194849,-0.044486616,0.015554197,-0.019744964,-0.005157868,0.006648815,-0.013539405,-0.024499875,0.018939048,0.039328746,-0.009429228,0.011363429,0.069308855,-0.001193765,0.030302476,-0.012572304,0.024983425,-0.008623311,0.00320352,0.039328746,0.008824791,-0.024822243,-0.00523846,0.013619997,-0.008300944,-0.038845196,0.00950982,-0.023855142,-0.004936241,0.031108394,-0.033526145,-0.006044377,-0.000785769,-0.013458813,-0.051256318,0.030302476,-0.013700588,0.02192094,0.003626626,-0.018777864,-0.014990055,0.013055854,-0.007736803,-0.010073962,-0.015312422,0.034493245,-0.011282837,-0.040134665,-0.023855142,0.006689111,-0.003022189,0.026111709,-0.017568989,-0.014506505,-0.011444021,0.005681715,0.038845196,0.016279522,-0.002407677,-0.00640704,0.003566182,-0.005157868,0.012652896,-0.013619997,-0.013458813,-0.004875797,0.002367381,-0.009630707,-0.009388932,0.000337478,-0.019019639,-0.009671004,-0.034332063,-0.013861772,0.018213723,0.007736803,0.005439939,-0.042230047,0.040618215,0.007051773,-0.013619997,-0.026756443,0.020309107,0.002014792,0.002206198,0.003062484,-0.027562359,0.048677385,-0.005802602,-0.042230047,-0.011282837,-0.02047029,0.013458813,0.015312422,-0.010033666,-0.031914312,-0.001133321,-0.039006379,0.003727366,-0.032559045,0.008623311,0.019664373,0.057058919,-0.016037747,0.009106861,-0.023855142,0.012975262,-0.015876563,0.00689059,-0.01426473,0.039006379,-0.026595259,-0.008059169,-0.028690644,0.030302476,-0.028045909,0.01378118,-0.003344555,0.006971181,-0.025950525,0.000871398,-0.017568989,-0.024983425,-0.002458047,-0.024338692,-0.001642056,-0.012814079,0.000181331,0.017246623,0.015070647,-0.008744199,0.030141294,0.025789343,-0.016118338,-0.04384188,-0.042230047,-0.039167564,0.022726858,-0.023210408,0.009711299,0.009469524,0.019503189,-0.007938282,-0.001239097,0.00737414,0.029335376,0.014828872,0.043519516,-0.029335376,-0.04287478,0.017166032,-0.015957156,0.004210916,0.029335376,-0.035299163,0.032559045,-0.02095384,0.026756443,-0.023210408,-0.001037618,0.008220353,-0.031914312,0.002216272,-0.030141294,0.007092069,0.015554197,-0.001229023,-0.014022955,-0.002981893,-0.006326448,-0.034976795,0.012411121,-0.024499875,-0.026111709,0.015070647,0.036427446,0.01523183,0.060282588],
13 'exact': True,
14 'limit': 10
15 }
16 }, {
17 '$project': {
18 '_id': 0,
19 'plot': 1,
20 'title': 1,
21 'score': {
22 '$meta': 'vectorSearchScore'
23 }
24 }
25 }
26]
27
28# run pipeline
29result = client["sample_mflix"]["embedded_movies"].aggregate(pipeline)
30
31# print results
32for i in result:
33 print(i)
34
1{'plot': 'During WW2 the Russian Army sent a special group named "Zvezda" to fight the Nazis in their backyard.', 'title': 'The Star', 'score': 0.7459506392478943}
2{'plot': "As World War Two rages on, the allies are about to push the Nazis out of North Africa. That's when the Nazis turn up the heat, unleashing their secret Weapon - dragons.", 'title': 'P-51 Dragon Fighter', 'score': 0.7430292367935181}
3{'plot': 'April, 1945. As the Allies make their final push in the European Theatre, a battle-hardened Army sergeant named Wardaddy commands a Sherman tank and his five-man crew on a deadly mission behind enemy lines. Outnumbered, out-gunned, and with a rookie soldier thrust into their platoon, Wardaddy and his men face overwhelming odds in their heroic attempts to strike at the heart of Nazi Germany.', 'title': 'Fury', 'score': 0.7428240776062012}
4{'plot': "It's May 1943 at a US Army Air Corps base in England. The four officers and six enlisted men of the Memphis Belle - a B-17 bomber so nicknamed for the girlfriend of its stern and stoic ...", 'title': 'Memphis Belle', 'score': 0.7340154647827148}
5{'plot': 'The destiny of three soldiers during World War II. The German officer Christian Diestl approves less and less of the war. Jewish-American Noah Ackerman deals with antisemitism at home and ...', 'title': 'The Young Lions', 'score': 0.7327103614807129}
6{'plot': 'Great Patriotic War, early 1940s. After barely surviving a battle with a mysterious, ghostly-white Tiger tank, Red Army Sergeant Ivan Naydenov becomes obsessed with its destruction.', 'title': 'White Tiger', 'score': 0.732368528842926}
7{'plot': 'The story of ordinary men during WWII as seen from three different points of View.', 'title': 'The Fallen', 'score': 0.7301670908927917}
8{'plot': 'A rag tag unit of misfits known as the War Pigs must go behind enemy lines to exterminate Nazis by any means necessary.', 'title': 'War Pigs', 'score': 0.7290490865707397}
9{'plot': 'Baron Manfred von Richthofen is the most feared and celebrated pilot of the German air force in World War I. To him and his companions, air combats are events of sporty nature, technical ...', 'title': 'The Red Baron', 'score': 0.728823184967041}
10{'plot': 'In 1940, the British Royal Air Force fights a desperate battle vs. the Nazi Germany Air Force for control of British air space to prevent a Nazi invasion of Britain.', 'title': 'Battle of Britain', 'score': 0.7270985245704651}

Back

Create and Manage Indexes

Earn a Skill Badge

Master "Vector Search Fundamentals" for free!

Learn more

On this page