您可以使用 mongodb/mongodb-atlas-local Docker 映像创建包含 MongoDB Search 和 MongoDB 向量搜索 的单节点副本集。mongodb/mongodb-atlas-local Docker 映像是一个自含式 MongoDB 部署,其中包含 mongot,仅用于本地开发和测试。单节点副本集部署在端口 27017 上运行,不支持多个 mongot 进程。此部署不适合生产用途。
本教程将向您展示如何使用 Docker Compose 部署单节点副本集的 mongot。
先决条件
在开始之前,您必须安装以下内容:
Docker
Docker Compose
mongosh在本地或 Docker 中
使用 Docker Compose 部署 MongoDB Search 和 MongoDB Vector Search
拉取最新的 mongodb/mongodb-atlas-local Docker 影像。
要拉取 mongodb/mongodb-atlas-local Docker映像,运行以下命令:
docker pull mongodb/mongodb-atlas-local:preview
注意
您必须使用 preview 标签才能获取 mongot 的最新版本。preview 标签包含 mongot 的 Community 构建,支持自动嵌入。没有 preview 标签的图像不包含 mongot 的 Community 构建,也不支持自动嵌入。仅当您有针对 latest 的现有工具或脚本且不需要自动嵌入时,才使用 latest 标签。
要创建可重现的环境,请将图像固定到特定版本标签,而不是 preview 或 latest 等可变标签。将 <version> 替换为您需要的版本标签:
docker pull mongodb/mongodb-atlas-local:<version>
创建 docker-compose.yaml文件。
创建 docker-compose.yaml文件。有关完整详细的示例,请参阅 Docker Compose 示例。
1 services: 2 mongodb: 3 image: mongodb/mongodb-atlas-local:preview 4 hostname: mongodb 5 environment: 6 - MONGODB_INITDB_ROOT_USERNAME=<username> 7 - MONGODB_INITDB_ROOT_PASSWORD=<password> 8 ports: 9 - 27017:27017 10 volumes: 11 - ./init:/docker-entrypoint-initdb.d 12 - db:/data/db 13 - configdb:/data/configdb 14 - mongot:/data/mongot 15 volumes: 16 db: 17 configdb: 18 mongot:
替换占位符值并保存文件。
将 <username> 和 <password> 占位符值替换为您的值,并保存文件。您还可以通过文件设置用户名和密码,以增加一层安全性。使用 MONGODB_INITDB_ROOT_USERNAME_FILE 和 MONGODB_INITDB_ROOT_PASSWORD_FILE 环境变量指定包含用户名和密码的文件的路径。
要使用自动嵌入,请通过环境变量 VOYAGE_API_KEY 提供 Voyage AI API 密钥(从 Atlas 用户界面创建)。默认情况下,嵌入提供商终结点为 https://ai.mongodb.com/v1/embeddings (用于从 Atlas 用户界面创建的密钥)。
注意
如果您直接从 Voyage AI 创建了 API 密钥,则还必须通过环境变量 VOYAGE_EMBEDDING_PROVIDER_ENDPOINT 提供嵌入提供商终结点。此变量的值为 https://api.voyageai.com/v1/embeddings。
要学习更多信息,请参阅配置 mongot 以实现 MongoDB 向量搜索自动嵌入。
要在初始化过程中自动加载 MongoDB 示例数据集,请将 MONGODB_LOAD_SAMPLE_DATA 环境变量设置为 true。
1 services: 2 mongodb: 3 image: mongodb/mongodb-atlas-local:preview 4 hostname: mongodb 5 environment: 6 - MONGODB_INITDB_ROOT_USERNAME_FILE=<path-to-username-file> 7 - MONGODB_INITDB_ROOT_PASSWORD_FILE=<path-to-password-file> 8 - MONGODB_LOAD_SAMPLE_DATA=true 9 - VOYAGE_API_KEY=<voyage-api-key>
连接并使用 MongoDB Search 和 MongoDB 向量搜索 mongosh
(可选).如果您已加载示例数据集,请创建索引。
要验证加载的是相同数据,请运行以下命令:
show dbs __mdb_internal_search 56.00 KiB admin 252.00 KiB config 172.00 KiB local 193.25 MiB sample_airbnb 52.52 MiB sample_analytics 9.48 MiB sample_geospatial 1.15 MiB sample_guides 40.00 KiB sample_mflix 96.16 MiB sample_restaurants 6.43 MiB sample_supplies 1.04 MiB sample_training 46.91 MiB sample_weatherdata 2.58 MiB 要创建索引,请切换到
sample_mflix数据库。use sample_mflix 要在
sample_mflix.movies集合上创建名为movie-title-index的 MongoDB Search 索引,请运行以下命令:以下索引定义在
movies集合上创建一个名为movie-index的 MongoDB Search 索引。索引定义将mappings指定为dynamic: true,以自动为集合文档中的所有动态可索引字段编制索引。1 db.movies.createSearchIndex( 2 "movie-index", 3 { mappings: { dynamic: true } } 4 ) 要在
sample_mflix.embedded_movies集合上创建名为movie-vector-index的 MongoDB 向量搜索索引,请运行以下命令:以下索引定义在
embedded_movies集合的plot_embedding_voyage_4_large字段上创建一个命名为movie-vector-index的 MongoDB 向量搜索索引。该索引定义指定以下内容:使用
type作为vectorSearch创建 MongoDB 向量搜索索引。path作为plot_embedding_voyage_4_large用于索引字段中的向量嵌入。numDimensions作为2048用于指定向量嵌入的维数。similarity作为dotProduct用于指定用于测量查询向量与索引向量之间相似度的相似度函数。
1 db.embedded_movies.createSearchIndex( 2 "movie-vector-index", 3 "vectorSearch", 4 { 5 fields: [ 6 { type: "vector", path: "plot_embedding_voyage_4_large", numDimensions: 2048, similarity: "dotProduct" } 7 ] 8 } 9 ) 要验证索引是否已创建,请运行以下命令:
db.movies.getSearchIndexes().forEach(printjson) [ { id: '6a22ddd3709bac3ce7a37252', name: 'movie-index', status: 'READY', queryable: true, latestDefinitionVersion: { version: 0, createdAt: ISODate('2026-06-05T14:31:47.000Z') }, latestDefinition: { mappings: { dynamic: true } }, statusDetail: [ { hostname: '6a22dbdcb2393a40012a14b2', status: 'READY', queryable: true, mainIndex: { status: 'READY', queryable: true, definitionVersion: { version: 0, createdAt: ISODate('2026-06-05T14:31:47.000Z') }, definition: { mappings: { dynamic: true, fields: {} } } } } ], numDocs: 21349 }, { id: '6a22dde9709bac3ce7a37254', name: 'movie-vector-index', status: 'READY', queryable: true, latestDefinitionVersion: { version: 0, createdAt: ISODate('2026-06-05T14:32:09.000Z') }, latestDefinition: { fields: [ { type: 'vector', path: 'plot_embedding_voyage_4_large', numDimensions: 2048, similarity: 'dotProduct' } ] }, statusDetail: [ { hostname: '6a22dbdcb2393a40012a14b2', status: 'READY', queryable: true, mainIndex: { status: 'READY', queryable: true, definitionVersion: { version: 0, createdAt: ISODate('2026-06-05T14:32:09.000Z') }, definition: { fields: [ { type: 'vector', path: 'plot_embedding_voyage_4_large', numDimensions: 2048, similarity: 'dotProduct' } ] } } } ], numDocs: 21349 } ]
(可选).如果创建了索引,请在索引上运行查询。
要在
movie-index索引上运行 MongoDB Search 查询,请运行以下命令:此查询使用
movie-index索引在movies集合的plot字段中搜索术语courtroom lawyer。该查询使用fuzzy选项启用模糊匹配。该查询返回前 3 个结果,并仅投影title和plot字段。1 db.movies.aggregate([ 2 { 3 "$search": { 4 "index": "movie-index", 5 "text": { 6 "query": "courtroom lawyer", 7 "path": "plot", 8 "fuzzy": {} 9 } 10 } 11 }, 12 { 13 "$limit": 3 14 }, 15 { 16 "$project": { 17 "_id": 0, 18 "title": 1, 19 "plot": 1 20 } 21 } 22 ]) [ { plot: 'Academy Award-winning documentary filmmaker, Jean-Xavier de Lestrade, presents a gripping courtroom thriller, offering a rare and revealing inside look at a high-profile murder trial. In ...', title: 'Death on the Staircase' }, { plot: 'William Kunstler was one of the most famous lawyers of the 20th century. The New York Times called him "the most hated and most loved lawyer in America." His clients included Martin Luther ...', title: 'William Kunstler: Disturbing the Universe' }, { plot: "A dying millionnaire has her soul transferred into a younger, willing woman. But something goes wrong, and she finds herself in her lawyer's body - together with the lawyer.", title: 'All of Me' } ] 要在
movie-vector-index索引上运行 MongoDB 向量搜索查询,请执行以下步骤:创建名为
query-embeddings.js的文件:touch query-embeddings.js 将词组
courtroom lawyer的以下嵌入复制并粘贴到query-embeddings.js文件中:QUERY_EMBEDDING=[0.021390099078416824, 0.0055892206728458405, -0.02259857952594757, -0.005287100560963154, -0.04519715905189514, -0.026828259229660034, 0.004954768810421228, 0.01788550615310669, -0.016193633899092674, 0.010574201121926308, 0.0007590766181237996, -0.03963815048336983, 0.00014633940008934587, 0.02054416388273239, -0.025015540421009064, -0.0024169604294002056, 0.033112358301877975, -0.007250881288200617, -0.01492473017424345, 0.009969961829483509, 0.0055892206728458405, -0.006858124863356352, 0.008217665366828442, -0.011359713971614838, 0.005256888922303915, -0.04906429350376129, -0.016435330733656883, 0.03142048418521881, -0.009486569091677666, 0.03915475681424141, -0.014078794047236443, -0.027311652898788452, 0.014078794047236443, -0.01208480168133974, 0.0006080165621824563, 0.028157588094472885, 0.047855816781520844, 0.016797874122858047, -0.03552931547164917, -0.00486413249745965, -0.005679856985807419, 0.02332366816699505, -0.018006354570388794, 0.015106001868844032, 0.012386921793222427, -0.0066164289601147175, 0.0023716422729194164, -0.030937092378735542, -0.01492473017424345, -0.012145225889980793, 0.0016918722540140152, -0.015951938927173615, -0.010876321233808994, 0.03577101230621338, 0.010272081941366196, -0.019577378407120705, 0.03238726779818535, -0.010332505218684673, -0.0009063601610250771, -0.02078585885465145, 0.0002218694135081023, 0.004773496650159359, -0.030574548989534378, 0.01740211434662342, -0.0181272029876709, -0.018006354570388794, 0.009426145814359188, 0.007039397023618221, -0.0029909885488450527, -0.0018127203220501542, -0.016556179150938988, 0.000262466783169657, 0.027069956064224243, -0.005226676817983389, 0.025378083810210228, -0.0028248224407434464, -0.00036254405858926475, -0.023202819749712944, -0.03601270914077759, 0.023444514721632004, -0.013776673935353756, 0.015408121980726719, 0.0038218186236917973, -0.0049849809147417545, 0.012689041905105114, 0.0030514125246554613, -0.02259857952594757, -0.010695049539208412, 0.001503047184087336, -0.011420137248933315, 0.011661834083497524, 0.011057593859732151, -0.0007817356381565332, -0.02694910764694214, 0.04108832776546478, -0.02332366816699505, 0.030453700572252274, -0.03214557096362114, 0.02151094749569893, 0.021994339302182198, -0.014864305965602398, 0.02852013148367405, 0.0033082144800573587, 0.025619780644774437, -0.0006495580892078578, -0.03142048418521881, -0.02332366816699505, 0.017281265929341316, 0.007311305031180382, -0.004320316482335329, -0.015589394606649876, 0.005951764993369579, -0.014622610062360764, -0.025861475616693497, -0.010815897956490517, -0.04519715905189514, -0.0059819770976901054, 0.013655826449394226, -0.020060770213603973, 0.033837445080280304, -0.0015710241859778762, 0.003670758567750454, 0.036979492753744125, -0.020302467048168182, 0.005377736873924732, 0.023927908390760422, 0.006767489016056061, -0.009849113412201405, -0.02126925066113472, 0.02779504470527172, 0.007341517135500908, 0.03456253185868263, 0.003232684452086687, -0.007250881288200617, 0.008882328867912292, -0.022115187719464302, 0.03746288642287254, -0.002779504517093301, -0.0025982323568314314, -0.009546993300318718, -0.018248051404953003, -0.005015192553400993, 0.028882676735520363, -0.02876182831823826, -0.04205511137843132, 0.03577101230621338, -0.019939923658967018, -0.005921552889049053, -0.0020090981852263212, 0.0004305210604798049, 0.009909537620842457, 0.0027341863606125116, 0.022356882691383362, -0.01607278548181057, -0.027432499453425407, -0.005105828866362572, -0.018489746376872063, -0.0035801224876195192, 0.009969961829483509, 0.011299289762973785, -0.006102825049310923, 0.0012084802147001028, 0.006525793112814426, -0.022115187719464302, -0.0077040609903633595, 0.003021200420334935, 0.015347698703408241, -0.00870105717331171, -0.015951938927173615, 0.004954768810421228, -0.029486916959285736, -0.03033285215497017, 0.010030385106801987, 0.009909537620842457, 0.02078585885465145, -0.030937092378735542, 0.012809890322387218, -0.0194565299898386, 0.002688868436962366, -0.047614119946956635, 0.007190457079559565, 0.0007288646302185953, 0.020665010437369347, 0.026586564257740974, 0.005619432777166367, 0.006102825049310923, -0.028157588094472885, -0.027553347870707512, 0.004350528586655855, -0.0011480561224743724, 0.00029456705669872463, -0.021148402243852615, -0.02489469200372696, -0.023444514721632004, -0.02054416388273239, -0.025015540421009064, -0.010695049539208412, 0.029728611931204796, -0.010090809315443039, 0.00906360149383545, -0.04688902944326401, 0.04568054899573326, 0.028882676735520363, -0.0013142222305759788, 0.027069956064224243, -0.019939923658967018, 0.024048754945397377, -0.0298494603484869, 0.0033535324037075043, -0.01244734600186348, -0.06960845738649368, -0.006284096743911505, -0.01583109050989151, -0.021148402243852615, 0.013172433711588383, -0.019577378407120705, -0.019819075241684914, -0.001888250233605504, -0.013716249726712704, -0.014743458479642868, -0.007281092926859856, -0.04495546221733093, -0.012628617696464062, -0.004169256426393986, 0.03214557096362114, -0.006525793112814426, 0.012749466113746166, 0.00016899840557016432, -0.0023716422729194164, -0.0194565299898386, -0.00577049283310771, 0.015468546189367771, -0.029124371707439423, 0.012930737808346748, -0.013293282128870487, -0.04253850132226944, 0.036737795919179916, -0.0038218186236917973, 0.021631795912981033, 0.025378083810210228, 0.0010951851727440953, -0.05945722386240959, 0.04495546221733093, -0.0009063601610250771, 0.027915891259908676, -0.004803708754479885, -0.036737795919179916, -0.005196464713662863, -0.0024924904573708773, -0.036496102809906006, 0.011057593859732151, 0.026344867423176765, -0.01401836983859539, 0.029486916959285736, 0.016556179150938988, 0.02827843651175499, -0.004108832683414221, 0.021631795912981033, -0.015589394606649876, 0.006586216855794191, -0.047372423112392426, 0.021390099078416824, 0.014864305965602398, 0.07927630096673965, 0.006737276911735535, 0.0077040609903633595, 0.026586564257740974, 0.0022961122449487448, 0.026586564257740974, 0.009244873188436031, -0.0006835465901531279, 0.03528762236237526, 0.00960741750895977, 0.02054416388273239, -0.0014577292604371905, -0.020906707271933556, 0.011420137248933315, 0.0014728351961821318, -0.026344867423176765, 0.029003525152802467, -0.03480422869324684, 0.028640979900956154, 0.0006759936222806573, -0.010997169651091099, 0.01311200950294733, 0.03818797320127487, -0.03746288642287254, 0.017522962763905525, 0.004743284545838833, 0.027311652898788452, -0.015287274494767189, -0.009003177285194397, 0.0064955810084939, 0.0005136040854267776, 0.002779504517093301, -0.010392929427325726, 0.008036392740905285, 0.051481254398822784, 0.003987984731793404, -0.0008157241391018033, -0.006374733056873083, -0.019577378407120705, 0.017039570957422256, -0.006888336967676878, -0.022356882691383362, 0.003429062431678176, 0.043988678604364395, 0.005679856985807419, 0.020181618630886078, 0.001064973184838891, 0.020906707271933556, 0.029486916959285736, 0.03746288642287254, 0.002432066248729825, 0.01764381118118763, 0.010695049539208412, 0.040363237261772156, 0.006102825049310923, -0.015710242092609406, 0.0027341863606125116, 0.01607278548181057, 0.02102755568921566, 0.0071602449752390385, -0.012205650098621845, -0.02852013148367405, 0.019577378407120705, -0.0362544059753418, 0.022961122915148735, -0.026586564257740974, -0.013534978032112122, -0.02489469200372696, -0.023202819749712944, -0.021148402243852615, -0.01873144321143627, 0.005015192553400993, 0.003096730448305607, -0.00019165739649906754, -0.002356536453589797, -0.03166218101978302, -0.023807059973478317, -0.015045578591525555, 0.01208480168133974, -0.03867136687040329, -0.021390099078416824, -0.01969822682440281, -0.0076436372473835945, -0.02259857952594757, 0.013232857920229435, -0.03407914191484451, -0.00960741750895977, 0.02259857952594757, 0.019093986600637436, -0.005256888922303915, 0.00031156130717135966, 0.001117844134569168, -0.027190804481506348, 0.01347455382347107, 0.026586564257740974, 0.025498932227492332, -0.0019637802615761757, 0.013534978032112122, 0.04253850132226944, -0.027553347870707512, -0.0008421596139669418, 0.040363237261772156, -0.021390099078416824, 0.013595402240753174, -0.012326497584581375, -0.0045922244898974895, -0.006344520952552557, 0.017281265929341316, 0.004350528586655855, -0.014864305965602398, 0.01921483501791954, -0.040846630930900574, 0.019577378407120705, -0.014260065741837025, -0.007009184919297695, 0.0009743371629156172, 0.01389752235263586, 0.019335683435201645, 0.006344520952552557, 0.016193633899092674, 0.0010574201587587595, -0.03166218101978302, -0.007583213038742542, 0.006737276911735535, -0.0010423141065984964, -0.01969822682440281, -0.014139218255877495, -0.02308197133243084, -0.008096816949546337, -0.048097509890794754, 0.03432083874940872, -0.019335683435201645, 0.02622401900589466, 0.04133002087473869, 0.01335370633751154, 0.004562012851238251, 0.00046262130490504205, 0.004078620579093695, 0.016677025705575943, 0.04181341454386711, 0.019335683435201645, -0.05389821529388428, -0.0009403486619703472, -0.03190387785434723, 0.004320316482335329, 0.004259892739355564, 0.015468546189367771, 0.01492473017424345, 0.004259892739355564, 0.025498932227492332, -0.004803708754479885, -0.01740211434662342, 0.014803881756961346, -0.008217665366828442, -0.03166218101978302, -0.013414129614830017, -0.027190804481506348, 0.0298494603484869, -0.02151094749569893, 0.008821905590593815, 0.008096816949546337, -0.04688902944326401, 0.010151233524084091, -0.007734273094683886, 0.00622367300093174, 0.01764381118118763, -0.027915891259908676, 0.001155609148554504, -0.0014577292604371905, 0.008459361270070076, 0.012749466113746166, 0.026103172451257706, 0.009003177285194397, 0.015951938927173615, -0.001170715200714767, -0.016797874122858047, 0.0021752642933279276, -0.01583109050989151, -0.01764381118118763, 0.03190387785434723, -0.03746288642287254, 0.03190387785434723, 0.01244734600186348, -0.016918722540140152, 0.014622610062360764, 0.02489469200372696, 0.032870661467313766, -0.014622610062360764, -0.02175264246761799, -0.016556179150938988, -0.03915475681424141, -0.0007364175980910659, -0.03842967003583908, -0.027553347870707512, -0.011299289762973785, 0.010997169651091099, 0.00906360149383545, 0.00815724115818739, 0.009184448979794979, 0.03794627636671066, 0.006435156799852848, 0.01389752235263586, -0.016918722540140152, 0.018368897959589958, -0.01631448231637478, -0.010151233524084091, 0.004833920858800411, -0.009244873188436031, -0.014622610062360764, -0.0015181532362475991, -0.004441164433956146, -0.009244873188436031, 0.021994339302182198, -0.002447172300890088, -0.007522789295762777, 0.027190804481506348, -0.011178441345691681, -0.03190387785434723, 0.00486413249745965, 0.008338512852787971, -0.0031571544241160154, -0.02175264246761799, -0.028882676735520363, 0.027190804481506348, 0.0027946103364229202, -0.028399284929037094, -0.009909537620842457, 0.036737795919179916, 0.030937092378735542, 0.008278089575469494, 0.0018051672959700227, -0.00604240084066987, 0.022477731108665466, 0.025257235392928123, -0.01051377784460783, 0.02646571584045887, 0.00046262130490504205, -0.011661834083497524, 0.00960741750895977, 0.01873144321143627, -0.023686211556196213, 0.02151094749569893, 0.005347524769604206, -0.027069956064224243, 0.0010045490926131606, -0.03963815048336983, -0.018852291628718376, 0.025498932227492332, 0.004894344601780176, 0.011178441345691681, -0.03504592552781105, 0.0181272029876709, -0.00429010484367609, -0.009426145814359188, -0.029486916959285736, 0.021994339302182198, -0.021148402243852615, -0.025378083810210228, 0.023927908390760422, -0.013534978032112122, 0.021631795912981033, 0.004078620579093695, 0.01921483501791954, 0.0010951851727440953, 0.007915545254945755, 0.011178441345691681, -0.02259857952594757, 0.017281265929341316, 0.011722257360816002, -0.021390099078416824, -0.007553000934422016, -0.02803673967719078, 0.016677025705575943, -0.0011102911084890366, -0.0049849809147417545, -0.022719427943229675, 0.007250881288200617, -0.0097282649949193, 0.014864305965602398, -0.030937092378735542, 0.015045578591525555, -0.03117878921329975, 0.012024377472698689, 0.0035801224876195192, 0.001276457216590643, 0.0040181963704526424, -0.008036392740905285, -0.026828259229660034, -0.013232857920229435, 0.019819075241684914, 0.04253850132226944, 0.03794627636671066, 0.02102755568921566, 0.0006722171092405915, 0.009969961829483509, -0.004108832683414221, 0.02441130019724369, -0.004531800746917725, 0.0036103345919400454, -0.012386921793222427, -0.025619780644774437, 0.014985154382884502, 0.019819075241684914, -0.001820273231714964, 0.011722257360816002, 0.012266073375940323, 0.009244873188436031, -0.023202819749712944, 0.0362544059753418, -0.03915475681424141, 0.008338512852787971, -0.025257235392928123, -0.022477731108665466, 0.016918722540140152, -0.03963815048336983, 0.01401836983859539, -0.003459274535998702, -0.010997169651091099, 0.004350528586655855, -0.00858020968735218, 0.01788550615310669, -0.03142048418521881, 0.024290451779961586, -0.040604934096336365, 0.02356536313891411, 0.040604934096336365, 0.020906707271933556, -0.006827913224697113, 0.00667685316875577, -0.01969822682440281, -0.022115187719464302, 0.019819075241684914, -0.0059819770976901054, -0.027190804481506348, 0.040604934096336365, -0.013051586225628853, 0.001238692202605307, -0.012205650098621845, -0.011178441345691681, -0.014199642464518547, 0.009667841717600822, -0.012809890322387218, 0.012205650098621845, -0.007130032870918512, -0.0037311825435608625, 0.006012188736349344, 0.030937092378735542, 0.01764381118118763, -0.021873490884900093, -0.006284096743911505, -0.02622401900589466, -0.004199468530714512, 0.021148402243852615, 0.04495546221733093, -0.0003021200536750257, -0.020302467048168182, 0.014441338367760181, -0.01256819348782301, 0.022961122915148735, -0.0036103345919400454, -0.026103172451257706, -0.005377736873924732, -0.005891340784728527, -0.047855816781520844, -0.002643550280481577, 0.0466473363339901, 0.02779504470527172, -0.03794627636671066, 0.05027277395129204, 0.008459361270070076, 0.008761481381952763, 0.03842967003583908, 0.02259857952594757, -0.03238726779818535, 0.028157588094472885, 0.04713072627782822, -0.0003719853120855987, 0.014501762576401234, -0.0071602449752390385, -0.007734273094683886, 0.0067070648074150085, -0.0004871685814578086, 0.03262896463274956, -0.00013595401833299547, -0.011963954195380211, 0.07830951362848282, -0.018610594794154167, 0.0035499106161296368, 0.04229680448770523, 0.018852291628718376, -0.004713072907179594, -0.005861128680408001, -0.014501762576401234, 0.014501762576401234, -0.03456253185868263, -0.007190457079559565, -0.010695049539208412, 0.008096816949546337, 0.0025227023288607597, 0.026586564257740974, -0.0022659003734588623, 0.009546993300318718, 0.03915475681424141, 0.02441130019724369, -0.04108832776546478, 0.04229680448770523, 0.018248051404953003, 0.0009252426098100841, -0.00531731266528368, -0.019093986600637436, -0.00011140676360810176, -0.01347455382347107, 0.013051586225628853, 0.030937092378735542, -0.013776673935353756, 0.04108832776546478, -0.01583109050989151, -0.0181272029876709, -0.003429062431678176, -0.02489469200372696, 0.025015540421009064, -0.020423315465450287, 0.0004475153109524399, 0.0007930651190690696, 0.01969822682440281, -0.025378083810210228, 0.005075616762042046, -0.030816243961453438, -0.0194565299898386, 0.013172433711588383, 0.011480561457574368, 0.022236036136746407, 0.03166218101978302, 0.011601409874856472, -0.020423315465450287, -0.02259857952594757, 0.0129911620169878, 0.02646571584045887, -0.002568020485341549, 0.014864305965602398, 0.03528762236237526, 0.005619432777166367, 0.005166252609342337, 0.01897313818335533, 0.016918722540140152, 0.0029305643402040005, 0.015468546189367771, -0.005105828866362572, -0.016435330733656883, 0.015166426077485085, 0.004652648698538542, 0.025619780644774437, -0.016435330733656883, -0.012930737808346748, 0.02852013148367405, -0.03963815048336983, 0.026103172451257706, -0.007250881288200617, -0.01873144321143627, -0.023807059973478317, -0.013655826449394226, -0.029003525152802467, -0.023807059973478317, 0.02827843651175499, -0.016556179150938988, 0.019577378407120705, -0.032870661467313766, 0.050756167620420456, -0.012628617696464062, 0.025378083810210228, -0.024048754945397377, -0.019335683435201645, 0.011299289762973785, 0.02670741267502308, -0.003429062431678176, 0.008036392740905285, 0.014199642464518547, 0.007009184919297695, -0.008278089575469494, -0.022115187719464302, -0.000996996182948351, -0.005015192553400993, 0.004894344601780176, -0.007220669183880091, 0.02513638697564602, 0.01788550615310669, 0.016797874122858047, -0.0389130599796772, -0.008398937061429024, 0.014320489950478077, -0.029486916959285736, -0.01740211434662342, 0.011480561457574368, 0.0071602449752390385, -0.02622401900589466, -0.0023867483250796795, -0.014441338367760181, -0.01311200950294733, -0.00960741750895977, 0.04229680448770523, -0.02126925066113472, 0.014743458479642868, 0.020302467048168182, 0.012145225889980793, -0.02054416388273239, 0.0064955810084939, 0.009426145814359188, -0.015045578591525555, -0.04640563949942589, 0.020181618630886078, 0.024048754945397377, -0.009667841717600822, 0.007009184919297695, 0.01788550615310669, -0.012749466113746166, 0.00486413249745965, 0.02416960336267948, 0.008519785478711128, -0.023444514721632004, 0.0045922244898974895, 0.006827913224697113, -0.0022961122449487448, -0.025740627199411392, 0.01969822682440281, 0.013534978032112122, -0.027674196287989616, -0.012870313599705696, 0.00906360149383545, -0.010090809315443039, 0.02441130019724369, -0.017764657735824585, -0.004803708754479885, 0.03262896463274956, -0.026828259229660034, -0.04253850132226944, 0.010030385106801987, 0.022961122915148735, 0.005921552889049053, 0.020665010437369347, -0.028399284929037094, -0.009909537620842457, 0.0039577726274728775, 0.054381608963012695, -0.016193633899092674, 0.00858020968735218, 0.01969822682440281, -0.006314308848232031, -0.012870313599705696, 0.047614119946956635, -0.003096730448305607, -0.0027341863606125116, 0.014260065741837025, -0.03577101230621338, -0.003565016435459256, 0.003685864619910717, -0.013172433711588383, -0.010332505218684673, 0.019939923658967018, -0.04713072627782822, 0.01389752235263586, 0.03915475681424141, -0.03818797320127487, 0.04688902944326401, -0.024773843586444855, 0.03577101230621338, -0.016918722540140152, 0.004229680635035038, -0.02078585885465145, 0.009124025702476501, -0.016435330733656883, 0.004410952795296907, -0.027311652898788452, 0.0029456703923642635, 0.012870313599705696, 0.025378083810210228, 0.00031911430414766073, 0.02646571584045887, 2.0180674255243503e-05, 0.0018958032596856356, -0.025378083810210228, -0.016193633899092674, -0.011843105778098106, 0.019819075241684914, 0.020060770213603973, 0.022115187719464302, 0.005105828866362572, -0.03601270914077759, -0.02151094749569893, 0.011782681569457054, 0.03432083874940872, -0.036979492753744125, -0.024773843586444855, 0.01335370633751154, -0.0050454046577215195, 0.01740211434662342, -0.012266073375940323, -0.029728611931204796, 0.016918722540140152, -0.016193633899092674, 0.013172433711588383, 0.014622610062360764, 0.021873490884900093, -0.0019260152475908399, 0.033595748245716095, -0.0034894864074885845, 0.0037613946478813887, -0.02259857952594757, 0.0097282649949193, -0.03142048418521881, 0.006404945161193609, 0.024290451779961586, 0.028399284929037094, 0.030453700572252274, 0.03480422869324684, -0.02259857952594757, -0.021994339302182198, -0.015106001868844032, -0.04978938400745392, 0.009486569091677666, 0.0010121021186932921, 0.008640632964670658, -5.0274662498850375e-05, 0.00041352681000716984, -0.015045578591525555, -0.03915475681424141, 0.011480561457574368, -0.011118018068373203, 0.03214557096362114, 0.02102755568921566, -0.011299289762973785, 0.026103172451257706, -0.016677025705575943, 0.04302189499139786, 0.015710242092609406, -0.016435330733656883, -0.033595748245716095, -0.019093986600637436, 0.024048754945397377, 0.022236036136746407, 0.01969822682440281, -0.06042400747537613, 0.0033988505601882935, -0.036737795919179916, 0.014622610062360764, -0.033354051411151886, -0.016918722540140152, -0.012507770210504532, 0.010755473747849464, 0.0023867483250796795, -0.012749466113746166, -0.02779504470527172, 0.0014275171561166644, 0.01873144321143627, -0.0022961122449487448, -0.0032931084278970957, 0.03190387785434723, -0.025257235392928123, -0.003217578399926424, -0.021873490884900093, 0.018006354570388794, 0.018610594794154167, -0.03166218101978302, -0.02078585885465145, -0.033837445080280304, 0.005256888922303915, 0.001064973184838891, -0.015710242092609406, -0.022961122915148735, 0.005377736873924732, 0.0033535324037075043, -0.007522789295762777, -0.0049849809147417545, -0.021994339302182198, -0.048097509890794754, 0.010151233524084091, -0.015951938927173615, 0.028882676735520363, 0.007130032870918512, 0.013957945629954338, 0.015226850286126137, -0.009486569091677666, -0.005136040970683098, -0.007401940878480673, 0.00604240084066987, -0.03867136687040329, -0.026586564257740974, 0.0181272029876709, 0.03190387785434723, 0.006556004751473665, -0.015951938927173615, 0.008761481381952763, -0.0016692132921889424, -0.020906707271933556, -0.012749466113746166, -0.010815897956490517, 0.02936606854200363, 0.020060770213603973, -0.024290451779961586, 0.020906707271933556, 0.022961122915148735, 0.018852291628718376, 0.014864305965602398, 0.003927560523152351, -0.004471376538276672, 0.03504592552781105, 0.00029645528411492705, -0.010876321233808994, -0.005679856985807419, 0.04278019815683365, -0.03770458325743675, -0.04302189499139786, 0.0028248224407434464, -0.027553347870707512, 0.012507770210504532, 0.009365721605718136, -0.02441130019724369, -0.022477731108665466, -0.0038520304951816797, -0.018610594794154167, -0.016556179150938988, -0.0005173805984668434, -0.04882260039448738, 0.0005626985803246498, 0.021148402243852615, 0.03432083874940872, 0.018852291628718376, 0.018852291628718376, 0.019093986600637436, 0.0003908678190782666, -0.0298494603484869, -0.04205511137843132, 0.029124371707439423, 0.009546993300318718, -0.002432066248729825, 1.261292140952719e-06, -0.020302467048168182, -0.054623305797576904, -0.025619780644774437, -0.002915458520874381, 0.03456253185868263, 0.037221189588308334, 0.037221189588308334, 0.007855121046304703, 0.019939923658967018, 0.02489469200372696, -0.01740211434662342, -0.004652648698538542, -0.013716249726712704, 0.020906707271933556, -0.01335370633751154, 0.036979492753744125, 0.014501762576401234, 0.025619780644774437, -0.00960741750895977, 0.028157588094472885, 0.05728195980191231, -0.043746981769800186, 0.006465368904173374, 0.006253885105252266, 0.01921483501791954, 0.024290451779961586, 0.04713072627782822, -0.015468546189367771, -0.006888336967676878, -0.04519715905189514, 0.0004947215784341097, 0.011057593859732151, -0.003006094368174672, -0.033354051411151886, 0.003791606519371271, 0.002114840317517519, 0.0061632487922906876, -0.018006354570388794, 1.0090337127621751e-05, 0.006253885105252266, 0.02308197133243084, 0.010392929427325726, -0.01788550615310669, -0.0055287969298660755, 0.01873144321143627, -0.008821905590593815, 0.0005929105682298541, -0.013534978032112122, -0.003867136547341943, -0.01335370633751154, -0.008821905590593815, 0.001993992365896702, -0.00906360149383545, 0.016435330733656883, -0.013293282128870487, 0.01788550615310669, 0.010453353635966778, 0.016797874122858047, -0.007492577191442251, 0.012930737808346748, -0.0016692132921889424, 0.015589394606649876, 0.012749466113746166, 0.022356882691383362, 0.027553347870707512, 0.015710242092609406, 0.002099734265357256, -0.0017447432037442923, -0.02513638697564602, -0.0008874776540324092, 0.006646641064435244, 0.033837445080280304, -0.020665010437369347, 0.047372423112392426, 0.03190387785434723, -0.040363237261772156, 0.01311200950294733, 0.02308197133243084, -0.0389130599796772, -0.016193633899092674, 0.018368897959589958, 0.007130032870918512, -0.015106001868844032, -0.011178441345691681, -0.02827843651175499, 0.011238865554332733, 0.012145225889980793, -0.007522789295762777, 0.0362544059753418, -0.03963815048336983, -0.00011093470675405115, -0.0033988505601882935, 0.023686211556196213, -0.040363237261772156, -0.037221189588308334, 0.027432499453425407, 0.00031156130717135966, -0.008459361270070076, -0.03915475681424141, 0.013957945629954338, -0.03770458325743675, 0.018368897959589958, 0.03746288642287254, 0.009486569091677666, 0.027674196287989616, -0.02416960336267948, 0.006525793112814426, -0.0018429323099553585, -0.027432499453425407, -0.005861128680408001, -0.013655826449394226, 0.022236036136746407, 0.020181618630886078, 0.010211657732725143, -0.01873144321143627, 0.0298494603484869, -0.03528762236237526, 0.01764381118118763, -0.006465368904173374, -0.03142048418521881, 0.04978938400745392, -0.009365721605718136, 0.005861128680408001, -0.0035499106161296368, -0.036737795919179916, -0.029245220124721527, -0.0031571544241160154, -0.011601409874856472, -0.0009025836479850113, -0.023807059973478317, -0.004139044787734747, 0.01897313818335533, -0.016918722540140152, -0.04108832776546478, -0.005377736873924732, -0.0012689041905105114, 0.011661834083497524, -0.03842967003583908, -0.0019335682736709714, -0.0018429323099553585, -0.0022659003734588623, -0.02694910764694214, -0.012266073375940323, -0.024048754945397377, 0.00577049283310771, 0.024290451779961586, -0.02936606854200363, 0.022477731108665466, 0.023686211556196213, 0.009909537620842457, -0.0021903703454881907, 0.00870105717331171, 0.016435330733656883, 0.013957945629954338, -0.009969961829483509, -0.04133002087473869, -0.008217665366828442, -0.010272081941366196, 0.0006948761292733252, -0.002114840317517519, 0.0076436372473835945, 0.004652648698538542, 0.00486413249745965, 0.029245220124721527, -0.010272081941366196, -0.007855121046304703, 0.017281265929341316, -0.0019637802615761757, -0.025861475616693497, 0.007734273094683886, -0.005619432777166367, -0.003791606519371271, -0.01401836983859539, 0.0570402629673481, 0.02259857952594757, -0.014320489950478077, 0.04495546221733093, -0.009365721605718136, -0.016556179150938988, -0.01583109050989151, -0.0006759936222806573, 0.0025982323568314314, -0.016435330733656883, -0.010332505218684673, -0.013837098143994808, 0.014139218255877495, -0.02622401900589466, 0.03117878921329975, -0.00429010484367609, 0.005075616762042046, -0.013655826449394226, -0.01583109050989151, -0.0034139566123485565, -0.007553000934422016, 0.027915891259908676, -0.047372423112392426, 0.0013519872445613146, -0.0040484084747731686, 0.03262896463274956, 0.050756167620420456, -0.027674196287989616, -0.0009516781428828835, -0.011238865554332733, 0.01873144321143627, 0.003474380588158965, -0.0032024725805968046, 0.0013821992324665189, 0.01607278548181057, -0.02259857952594757, -0.0009894431568682194, 0.015951938927173615, -0.0013142222305759788, 0.01208480168133974, -0.010211657732725143, 0.01873144321143627, -0.019939923658967018, 0.00025113727315329015, -0.01897313818335533, 0.019093986600637436, -0.02416960336267948, 0.033354051411151886, 0.015951938927173615, -0.0050454046577215195, -0.014320489950478077, -0.007432152982801199, -0.008640632964670658, -0.006102825049310923, 0.014803881756961346, -0.001888250233605504, -0.005438160616904497, 0.02803673967719078, 0.0181272029876709, -0.022236036136746407, -0.005891340784728527, 0.025619780644774437, 0.012749466113746166, 0.011722257360816002, 0.0259823240339756, 0.0033837445080280304, 0.02489469200372696, -0.019819075241684914, 0.043746981769800186, 0.05752365663647652, 0.009788689203560352, -0.05945722386240959, -0.05220634490251541, 0.03190387785434723, -0.010151233524084091, -0.017039570957422256, 0.008519785478711128, -0.006404945161193609, 0.019335683435201645, 0.007311305031180382, -0.008882328867912292, -0.0009479016298428178, -0.010151233524084091, -0.0011102911084890366, -0.006465368904173374, -0.007371729239821434, -0.020181618630886078, -0.00531731266528368, 0.029245220124721527, -0.011178441345691681, -0.01740211434662342, 0.04495546221733093, 0.0049849809147417545, -0.0032780023757368326, -0.006314308848232031, -0.018610594794154167, -0.01873144321143627, -0.02936606854200363, -0.003262896556407213, 0.04012154042720795, 0.019819075241684914, 0.01631448231637478, 0.006374733056873083, -0.011420137248933315, 0.026828259229660034, 0.005347524769604206, -0.03818797320127487, 0.012930737808346748, -0.007039397023618221, -0.013534978032112122, 0.007855121046304703, 0.0060726129449903965, -0.02622401900589466, -0.001782508217729628, 0.012326497584581375, 0.01154098566621542, 0.003444168483838439, -0.004562012851238251, -0.007915545254945755, -0.0024018543772399426, 0.025498932227492332, 0.00870105717331171, 0.01389752235263586, -0.01764381118118763, -0.018368897959589958, -0.0298494603484869, -0.016193633899092674, -0.007975969463586807, 0.015951938927173615, -0.013957945629954338, 0.01401836983859539, 0.01716041937470436, 0.012628617696464062, 0.015468546189367771, -0.0016843192279338837, -0.027915891259908676, 0.04253850132226944, -0.01244734600186348, -0.017522962763905525, -0.010755473747849464, 0.008217665366828442, 0.026344867423176765, -0.013293282128870487, -0.02054416388273239, 0.009788689203560352, 0.00265865633264184, 0.010755473747849464, 0.03504592552781105, -0.04205511137843132, 0.006797701120376587, -0.02852013148367405, 0.018610594794154167, 0.0055287969298660755, -0.047614119946956635, -0.013655826449394226, 0.00265865633264184, 0.03746288642287254, -0.03009115718305111, 0.01631448231637478, -0.0025075962767004967, 0.02441130019724369, -0.006404945161193609, -0.019335683435201645, 0.009546993300318718, 0.019939923658967018, -0.024773843586444855, 0.000944125116802752, -0.013957945629954338, -0.004259892739355564, -0.01764381118118763, 0.020906707271933556, -0.008882328867912292, -0.02126925066113472, -0.006586216855794191, 0.013232857920229435, -0.016556179150938988, -0.0055287969298660755, 0.0007364175980910659, -0.013837098143994808, 0.04012154042720795, 0.0035952285397797823, 0.019335683435201645, -0.0362544059753418, -0.03528762236237526, 0.0033535324037075043, 0.0015181532362475991, 0.03033285215497017, -0.03770458325743675, -0.003685864619910717, 0.00960741750895977, -0.018610594794154167, -0.050756167620420456, -0.016677025705575943, -0.0028248224407434464, 0.0015332591719925404, -0.014260065741837025, -0.0005551455542445183, -0.009486569091677666, 0.014743458479642868, -0.02151094749569893, -0.0005929105682298541, -0.0026284444611519575, -0.029970308765769005, 0.0007250881171785295, -0.0298494603484869, 0.044713765382766724, 0.03238726779818535, -0.023202819749712944, 0.011903529986739159, -0.03504592552781105, 0.019577378407120705, 0.02694910764694214, 0.01764381118118763, 0.06864167749881744, -0.019577378407120705, -0.007250881288200617, -0.012326497584581375, 0.012809890322387218, -0.02803673967719078, -0.004803708754479885, 0.016918722540140152, -0.027553347870707512, -0.011057593859732151, 0.011661834083497524, 0.008096816949546337, 0.0045922244898974895, -0.021390099078416824, 0.0025075962767004967, -0.021994339302182198, 0.010574201121926308, 0.027432499453425407, -0.006858124863356352, -0.03480422869324684, -0.021873490884900093, 0.01583109050989151, -0.00324779050424695, -0.005740280728787184, 0.007190457079559565, 0.037221189588308334, 0.0027946103364229202, -0.009124025702476501, -0.018610594794154167, -0.005377736873924732, 0.03407914191484451, 0.00694876117631793, -0.023202819749712944, 0.003867136547341943, 0.014743458479642868, -0.036979492753744125, -0.019093986600637436, -0.013776673935353756, 0.011178441345691681, -0.012809890322387218, 0.0036103345919400454, 0.0014199642464518547, 0.019577378407120705, 0.0003304437850601971, -0.015166426077485085, 0.003670758567750454, 0.0076436372473835945, -0.025619780644774437, -0.0017598492559045553, 0.020665010437369347, 0.01631448231637478, 0.032870661467313766, -0.05389821529388428, 0.003791606519371271, 0.016918722540140152, 0.009909537620842457, 5.0274662498850375e-05, 0.007371729239821434, 0.011903529986739159, -0.06767489016056061, -0.009849113412201405, 0.033837445080280304, -0.016435330733656883, 0.007794697303324938, 0.0002114840317517519, 0.015710242092609406, 0.036979492753744125, -0.008096816949546337, -0.02513638697564602, 0.02489469200372696, 0.02054416388273239, 0.013172433711588383, 0.02151094749569893, -0.019093986600637436, 0.04181341454386711, 0.00667685316875577, 0.00622367300093174, -0.01740211434662342, 0.008821905590593815, 0.011420137248933315, 0.04858090355992317, 0.0031571544241160154, 0.025861475616693497, -0.010030385106801987, -0.003096730448305607, 0.0007855120929889381, 0.011178441345691681, 0.00014067464508116245, 0.02852013148367405, -0.02126925066113472, 0.02259857952594757, -0.023927908390760422, 0.032870661467313766, -0.0033082144800573587, 0.012870313599705696, -0.017039570957422256, -0.0010196551447734237, -0.030453700572252274, 0.005075616762042046, 0.05172295123338699, -0.0181272029876709, -0.002885246416553855, 0.014683034271001816, 0.0097282649949193, 0.005347524769604206, -0.033837445080280304, 0.02803673967719078, 0.0031722604762762785, 0.022356882691383362, 0.036979492753744125, -0.012507770210504532, 0.009849113412201405, -0.004108832683414221, -0.011601409874856472, -0.018006354570388794, -0.006253885105252266, -0.011963954195380211, -0.017764657735824585, 0.007009184919297695, 0.04012154042720795, -0.01788550615310669, -0.00858020968735218, -0.012326497584581375, 0.02102755568921566, -0.008338512852787971, -0.030574548989534378, 0.026103172451257706, -0.01051377784460783, 0.0010121021186932921, 0.0008119476260617375, 0.020060770213603973, -0.03190387785434723, 0.012689041905105114, 0.002673762384802103, 0.01873144321143627, 0.012386921793222427, 0.000262466783169657, -0.009969961829483509, -0.011480561457574368, 0.00906360149383545, 0.0007439706241711974, 0.02622401900589466, -0.002326324349269271, 0.02126925066113472, -0.008761481381952763, 0.030695397406816483, 0.036737795919179916, 0.029486916959285736, -0.01208480168133974, -0.0061330366879701614, -0.039879847317934036, -0.0259823240339756, -0.0010347611969336867, 0.008036392740905285, 0.007915545254945755, 0.0045015886425971985, -0.054139912128448486, 0.007734273094683886, -0.01256819348782301, -0.00870105717331171, -0.047614119946956635, 0.027069956064224243, -0.02126925066113472, -0.01583109050989151, 0.01788550615310669, -0.006404945161193609, 0.02356536313891411, -0.023444514721632004, -0.005136040970683098, 0.009244873188436031, 0.012326497584581375, -0.032870661467313766, 0.015106001868844032, 0.007190457079559565, -0.0362544059753418, 0.015408121980726719, -0.03033285215497017, 0.00012084801710443571, 0.025861475616693497, -0.03262896463274956, -0.0027643984649330378, -0.018610594794154167, -0.003867136547341943, 0.0362544059753418, -0.00043240931699983776, -0.00604240084066987, -0.012266073375940323, 0.0020393102895468473, 0.017039570957422256, -0.026586564257740974, -0.009909537620842457, -0.006465368904173374, -0.03432083874940872, -0.0027643984649330378, -0.040363237261772156, -0.03939645364880562, 0.009667841717600822, -0.0015483652241528034, 0.010755473747849464, 0.008217665366828442, -0.015468546189367771, 0.017764657735824585, 0.030212003737688065, -0.04350528493523598, 0.030453700572252274, 0.011480561457574368, 0.010755473747849464, 0.025861475616693497, 0.0050454046577215195, 0.004652648698538542, 0.04205511137843132, 0.03142048418521881, -0.021873490884900093, -0.009667841717600822, 0.03480422869324684, 0.028399284929037094, -0.02175264246761799, 0.008459361270070076, -0.0022054763976484537, 0.004078620579093695, 0.036737795919179916, 0.02803673967719078, -0.001993992365896702, 0.01335370633751154, 0.0060726129449903965, 0.023927908390760422, -0.040363237261772156, -0.024290451779961586, -0.0033988505601882935, -0.007432152982801199, 0.027311652898788452, -0.00010574201587587595, 0.004259892739355564, -0.016556179150938988, 0.00694876117631793, 0.017764657735824585, 0.03456253185868263, 0.03142048418521881, -0.014441338367760181, -0.01788550615310669, -0.015045578591525555, -0.044713765382766724, 0.02670741267502308, -0.05631517618894577, -0.02670741267502308, -0.016797874122858047, 0.015347698703408241, -0.011963954195380211, 0.016918722540140152, -0.0415717177093029, 0.040604934096336365, -0.010755473747849464, -0.012809890322387218, 0.033595748245716095, 0.04882260039448738, 0.0038520304951816797, -0.015951938927173615, 0.014622610062360764, -0.04181341454386711, 0.02078585885465145, -0.012024377472698689, 0.02078585885465145, 0.022356882691383362, 0.021631795912981033, 0.0389130599796772, 0.03033285215497017, 0.0035499106161296368, -0.013293282128870487, 0.039879847317934036, -0.01583109050989151, 0.01492473017424345, 0.04447207227349281, 0.03190387785434723, 0.030937092378735542, 0.010272081941366196, -0.00622367300093174, -0.020060770213603973, 0.011722257360816002, -0.007432152982801199, 0.004713072907179594, -0.013837098143994808, -0.006404945161193609, -0.03770458325743675, -0.00040597381303086877, -0.03528762236237526, 0.004350528586655855, 0.047855816781520844, 0.030695397406816483, 0.020665010437369347, 0.027553347870707512, 0.015045578591525555, 0.009486569091677666, 0.003640546463429928, -0.021148402243852615, 0.02876182831823826, 0.020665010437369347, -0.014864305965602398, -0.025015540421009064, 0.0035499106161296368, -0.030574548989534378, -0.02646571584045887, -0.03480422869324684, -0.023686211556196213, -0.021390099078416824, -0.0005929105682298541, 0.023686211556196213, 0.02054416388273239, -0.005407948978245258, 0.013534978032112122, -0.00960741750895977, -0.02513638697564602, 0.02175264246761799, 0.015408121980726719, 0.025378083810210228, 0.005830917041748762, -0.026103172451257706, 0.009365721605718136, 0.011480561457574368, -0.015347698703408241, -0.0020393102895468473, -0.03770458325743675, 0.021994339302182198, -0.04833920672535896, -0.005105828866362572, -0.022719427943229675, -0.007673849351704121, 0.018852291628718376, 0.024290451779961586, -0.0025982323568314314, 0.023807059973478317, 0.03142048418521881, -0.023686211556196213, 0.03142048418521881, -0.036496102809906006, -0.04688902944326401, 0.015408121980726719, 0.00025113727315329015, -0.0028399284929037094, 0.014683034271001816, -0.010392929427325726, -0.0022054763976484537, 0.011843105778098106, -0.006525793112814426, 0.005438160616904497, 0.018248051404953003, -0.004531800746917725, -0.03770458325743675, -0.0013973051682114601, -0.06380775570869446, 0.01764381118118763, 0.02803673967719078, 0.006737276911735535, 0.025378083810210228, 0.03432083874940872, 0.011601409874856472, 0.07975969463586807, -0.04447207227349281, 0.008640632964670658, 0.015106001868844032, 0.026586564257740974, 0.02175264246761799, 0.012689041905105114, 0.020302467048168182, 0.025740627199411392, 0.005649644881486893, -0.00311183650046587, -0.022477731108665466, -0.01716041937470436, 0.04592224583029747, 0.007281092926859856, -0.033837445080280304, 0.009365721605718136, -0.057765353471040726, -0.01063462533056736, 0.01764381118118763, -0.044713765382766724, 0.027915891259908676, -0.0025227023288607597, -0.015287274494767189, 0.02308197133243084, -0.029124371707439423, 0.03528762236237526, -0.017281265929341316, -0.023807059973478317, -0.002235688269138336, 0.01583109050989151, 0.05583178251981735, -0.01583109050989151, -0.016193633899092674, 0.00870105717331171, 0.01764381118118763, 0.005136040970683098, -0.002326324349269271, -0.003006094368174672, -0.025498932227492332, 0.03794627636671066, -0.017764657735824585, 0.006858124863356352, -0.023444514721632004, -0.0259823240339756, 0.011601409874856472, 0.0389130599796772, 0.005015192553400993, -0.023927908390760422, 0.03117878921329975, -0.012205650098621845, -0.009426145814359188, -0.015468546189367771, 0.008459361270070076, 0.04012154042720795, 0.01063462533056736, -0.017039570957422256, -0.0050454046577215195, -0.033354051411151886, -0.030212003737688065, 0.0016692132921889424, -0.002900352468714118, -0.03190387785434723, 0.023444514721632004, -0.0029456703923642635, -0.04205511137843132, 0.04326359182596207, -0.040846630930900574, -0.025015540421009064, 0.03117878921329975, -0.02332366816699505, 0.02779504470527172, -0.020302467048168182, -0.011118018068373203, -0.02078585885465145, -0.013837098143994808, 0.007673849351704121, -0.004259892739355564, -0.023807059973478317, -0.009124025702476501, -0.00011943183199036866, 0.0049849809147417545, 0.008338512852787971, 0.016797874122858047, 0.006556004751473665, 0.013232857920229435, -0.025619780644774437, 0.003670758567750454, 0.002145052421838045, -0.007855121046304703, -0.008398937061429024, -0.019939923658967018, -0.01401836983859539, 0.02151094749569893, -0.06622471660375595, -0.02622401900589466, 0.023686211556196213, -0.005105828866362572, -0.026586564257740974, -0.03166218101978302, 0.03190387785434723, 0.02936606854200363, -0.017039570957422256, 0.0055287969298660755, -0.01154098566621542, -0.0031420483719557524, 0.017522962763905525, 0.03190387785434723, -0.009788689203560352, -0.007069609127938747, -0.006797701120376587, 0.002688868436962366, 0.0596989206969738, 0.0066164289601147175, 0.0061330366879701614, 0.010211657732725143, 0.009667841717600822, 0.007734273094683886, 0.00622367300093174, -0.012749466113746166, 8.072269702097401e-05, -0.016797874122858047, 0.024290451779961586, 0.036496102809906006, -0.0033837445080280304, -0.05244803801178932, 0.0064955810084939, 0.03867136687040329, 0.05268973484635353, -0.01716041937470436, -0.010453353635966778, -0.00858020968735218, 0.022719427943229675, -0.016677025705575943, -0.03504592552781105, 0.011601409874856472, -0.014199642464518547, 0.01154098566621542, 0.04568054899573326, 5.0274662498850375e-05, -0.0018655912717804313, 0.011480561457574368, 0.0647745355963707, 0.0023867483250796795, 0.0071602449752390385, 0.02416960336267948, -0.044713765382766724, -0.005891340784728527, -0.06284096837043762, -0.013414129614830017, -0.013716249726712704, -0.05921552702784538, 0.051239561289548874, -0.007915545254945755, -0.012930737808346748, -0.03262896463274956, 0.04495546221733093, -0.014985154382884502, -0.02646571584045887, -0.04229680448770523, 0.0097282649949193, -0.022356882691383362, -0.05027277395129204, -0.015589394606649876, -0.008338512852787971, 0.03842967003583908, -0.003565016435459256, -0.03601270914077759, 0.007583213038742542, 0.009003177285194397, 0.017039570957422256, 0.005105828866362572, -0.02175264246761799, 0.013655826449394226, -0.004199468530714512, -0.04833920672535896, 0.014683034271001816, 0.011057593859732151, 0.005377736873924732, 0.04205511137843132, 0.00017749553080648184, 0.015951938927173615, 0.04592224583029747, 0.03480422869324684, 0.030574548989534378, 0.03528762236237526, 0.03166218101978302, 0.0064955810084939, 0.019093986600637436, 0.03262896463274956, -0.02175264246761799, 0.03190387785434723, 0.00032289078808389604, -0.0010574201587587595, 0.02489469200372696, -0.016918722540140152, 0.011843105778098106, -0.001993992365896702, 0.03262896463274956, 0.007734273094683886, 0.03407914191484451, -0.061632487922906876, 0.04592224583029747, -0.026586564257740974, 0.032870661467313766, 0.010997169651091099, -0.006918549071997404, -0.005891340784728527, 0.016193633899092674, 0.0010272081708535552, -0.04229680448770523, -0.01921483501791954, 0.04181341454386711, 0.016797874122858047, 0.02078585885465145, -0.008942753076553345, -0.010936745442450047, 0.036979492753744125, -0.0020242042373865843, -0.012930737808346748, 0.007341517135500908, 0.028640979900956154, -0.012024377472698689, 0.021148402243852615, -0.04568054899573326, -0.005921552889049053, 0.00031911430414766073, -0.02078585885465145, -0.017039570957422256, -0.002084628213196993, 0.002688868436962366, 0.025619780644774437, -0.006284096743911505, 0.03528762236237526, 0.014864305965602398, 0.0035952285397797823, -0.007522789295762777, -0.002568020485341549, 0.014199642464518547, -0.008459361270070076, 0.012870313599705696, 0.012809890322387218, 0.03142048418521881, -0.0045922244898974895, -0.0003568792890291661, 0.0045922244898974895, -0.002447172300890088, 0.022356882691383362, -0.014320489950478077, 0.004924556706100702, -0.04688902944326401, 0.03033285215497017, 0.013776673935353756, 0.0036103345919400454, -0.023202819749712944, 0.014441338367760181, -0.007069609127938747, -0.005498584825545549, -0.0259823240339756, -0.028882676735520363, -0.005136040970683098, -0.04592224583029747, -0.0067070648074150085, 0.010090809315443039, -0.016556179150938988, -0.0005173805984668434, -0.01438091415911913, 0.036496102809906006, -0.005951764993369579, 0.024290451779961586, -0.02441130019724369, 0.0029456703923642635, 0.006012188736349344, 0.016677025705575943, 0.05244803801178932, 0.03867136687040329, -0.012326497584581375, -0.00018127202929463238, -0.061390794813632965, -0.020665010437369347, 0.004743284545838833, -0.0005740280612371862, -0.037221189588308334, 0.008096816949546337, 0.0028399284929037094, -0.001170715200714767, 0.030937092378735542, 0.014743458479642868, 0.0040484084747731686, 0.020906707271933556, -0.0035499106161296368, -0.023686211556196213, 0.0020695223938673735, 0.05172295123338699, -0.008398937061429024, 0.006858124863356352, -0.011661834083497524, -0.013172433711588383, -0.0027643984649330378, 0.04302189499139786, 0.005196464713662863, -0.014683034271001816, 0.007613425143063068, -0.004229680635035038, 0.022236036136746407, -0.0298494603484869, -0.02102755568921566, 0.008761481381952763, 0.02102755568921566]; 将
query-embeddings.js文件加载到mongosh:load('/<path-to-file>/query-embeddings.js') 运行以下查询:
以下查询使用
$vectorSearch阶段执行以下操作:使用字符串
courtroom lawyer的向量嵌入,在plot_embedding_voyage_4_large字段中搜索近似最近邻 (ANN)。最多考虑
100个最近邻,但将输出限制为仅 3 个结果。
1 db.embedded_movies.aggregate([ 2 { 3 "$vectorSearch": { 4 "index": "movie-vector-index", 5 "path": "plot_embedding_voyage_4_large", 6 "queryVector": QUERY_EMBEDDING, 7 "numCandidates": 100, 8 "limit": 3 9 } 10 }, 11 { 12 "$project": { 13 "_id": 0, 14 "title": 1, 15 "plot": 1, 16 "score": { $meta: "vectorSearchScore" } 17 } 18 } 19 ]) [ { plot: 'An attorney defends an officer on trial for ordering his troops to fire on civilians after they stormed a U.S. embassy in a third world country.', title: 'Rules of Engagement', score: 0.695757269859314 }, { plot: 'An American attorney on business in China, ends up wrongfully on trial for murder and his only key to innocence is a female defense lawyer from the country.', title: 'Red Corner', score: 0.6952665448188782 }, { plot: 'A lawyer becomes a target by a corrupt politician and his NSA goons when he accidentally receives key evidence to a serious politically motivated crime.', title: 'Enemy of the State', score: 0.6868826150894165 } ]
了解详情
使用以下方式部署 Atlas Local:
Docker (
run),请参阅 创建本地 Atlas 部署。Atlas CLI (
setup),请参阅 创建本地 Atlas 部署。MongoDB MCP 服务器,请参阅 MongoDB MCP 服务器入门。
在以下平台上部署带 MongoDB Community Edition 的 mongot:
对于 Red Hat、Ubuntu、Debian、SUSE 或 Amazon Linux 等 Linux 发行版,请参阅使用 Tarball 部署 MongoDB Search 和 MongoDB 向量搜索。
Docker,请参阅 在 Docker 上部署 MongoDB Search 和 MongoDB 向量搜索。
关于 Kubernetes 操作符 的 MongoDB Controllers,请参阅使用 Kubernetes 操作符 的 MongoDB Controllers 部署 MongoDB Search 和 MongoDB 向量搜索。
要使用 MongoDB Enterprise 部署 mongot,请参阅 使用 Kubernetes 操作符的 MongoDB 控制器部署 MongoDB Search 和 MongoDB 向量搜索。