sourceName
stringclasses 1
value | url
stringclasses 20
values | action
stringclasses 1
value | body
stringlengths 23
1.11k
| format
stringclasses 1
value | metadata
dict | title
stringclasses 20
values | updated
stringclasses 1
value | embedding
sequencelengths 384
384
|
---|---|---|---|---|---|---|---|---|
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | # The Atlas Search 'cene: Season 1
# The Atlas Search 'cene: Season 1
Welcome to the first season of a video series dedicated to Atlas Search! This series of videos is designed to guide you through the journey from getting started and understanding the concepts, to advanced techniques.
## What is Atlas Search?
[Atlas Search][1] is an embedded full-text search in MongoDB Atlas that gives you a seamless, scalable experience for building relevance-based app features. Built on Apache Lucene, Atlas Search eliminates the need to run a separate search system alongside your database.
By integrating the database, search engine, and sync mechanism into a single, unified, and fully managed platform, Atlas Search is the fastest and easiest way to build relevance-based search capabilities directly into applications. | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.04333272948861122,
0.008474143221974373,
0.02093709260225296,
-0.013369143009185791,
0.021301070228219032,
0.00247253873385489,
0.021123070269823074,
0.01927790604531765,
0.024801388382911682,
-0.014641942456364632,
0.008706260472536087,
-0.01648327149450779,
0.04427856579422951,
0.006863763555884361,
0.027722662314772606,
-0.020478136837482452,
0.0037219722289592028,
0.062365900725126266,
-0.025491032749414444,
0.008854806423187256,
0.031342893838882446,
-0.011114431545138359,
-0.023541690781712532,
-0.1057276800274849,
0.01729816012084484,
0.019241461530327797,
-0.007581027690321207,
-0.03328658267855644,
-0.0850016251206398,
-0.22971926629543304,
-0.0009415414533577859,
-0.05507298931479454,
0.08056464046239853,
0.004419574048370123,
-0.022650446742773056,
-0.03316996619105339,
-0.0019354047253727913,
0.05767805501818657,
-0.04481960088014603,
0.026886366307735443,
0.09938295185565948,
0.039295658469200134,
-0.014291794039309025,
-0.055087439715862274,
-0.0421639010310173,
-0.02991711162030697,
0.010786914266645908,
0.02737140655517578,
0.0015137653099372983,
-0.03356200456619263,
0.02041527070105076,
-0.0425548292696476,
-0.0012765703722834587,
0.004183354787528515,
0.018206069245934486,
0.05741209164261818,
0.05593667924404144,
0.06380113959312439,
0.003643039846792817,
0.01848888397216797,
0.03669978305697441,
-0.004409701097756624,
-0.1929830014705658,
0.08786340802907944,
-0.003987571690231562,
0.06852537393569946,
-0.00464818486943841,
-0.0606236569583416,
0.03301879018545151,
0.004031666088849306,
-0.04604477062821388,
0.026141278445720673,
0.0008781641954556108,
0.06561145931482315,
0.008899795822799206,
0.02164638787508011,
-0.0509214922785759,
-0.011312317103147507,
-0.02504613623023033,
0.007767032366245985,
-0.03704658895730972,
-0.0077188266441226006,
-0.004116090480238199,
0.008501592092216015,
-0.03820176422595978,
-0.03594609722495079,
0.016563747078180313,
-0.04177143797278404,
0.05660353600978851,
-0.004798594396561384,
0.004955340176820755,
0.0017304831417277455,
-0.028725719079375267,
0.027393370866775513,
-0.0744129940867424,
-0.0704832375049591,
0.033331118524074554,
0.06499748677015305,
0.005337057169526815,
0.23179282248020172,
-0.052534427493810654,
0.04521854966878891,
0.06457174569368362,
-0.037897989153862,
0.007049575913697481,
-0.01266566477715969,
0.011851643212139606,
-0.010252637788653374,
-0.008741657249629498,
0.005404057912528515,
0.020416319370269775,
-0.009903994388878345,
0.029152357950806618,
-0.04530531167984009,
0.012331478297710419,
0.028264407068490982,
-0.005637615919113159,
0.03675062581896782,
-0.019664259627461433,
-0.0023105069994926453,
0.02126646786928177,
0.030123088508844376,
0.09973058104515076,
-0.05610109120607376,
0.013187319040298462,
-0.044121965765953064,
0.05026105418801308,
0.08850111812353134,
-0.0006532488623633981,
-0.005226775538176298,
0.021400853991508484,
-0.01315903477370739,
-0.05195998772978783,
0.02057526633143425,
0.04840495437383652,
0.015813639387488365,
-0.032755207270383835,
0.0002831690653692931,
-0.016736449673771858,
0.018358569592237473,
-0.05147107318043709,
-0.07954979687929153,
-0.00013541412772610784,
-0.0923558846116066,
-0.08090176433324814,
0.10491687804460526,
-0.046924889087677,
0.0197877399623394,
-0.07558436691761017,
-0.024858376011252403,
-0.0009505077614448965,
0.015010318718850613,
-0.04763888567686081,
-0.011994375847280025,
-0.011721881106495857,
0.015147898346185684,
0.0720449686050415,
0.046399351209402084,
-0.06841707229614258,
-0.020181437954306602,
-0.045488085597753525,
0.0020225653424859047,
-0.04411758482456207,
0.10752435773611069,
0.021541379392147064,
-0.12364625185728073,
-0.043190840631723404,
0.015943709760904312,
-0.005896321032196283,
-0.022402409464120865,
0.02546466700732708,
0.029621347784996033,
-0.05275847390294075,
0.04499458521604538,
0.09440711885690689,
0.010854766704142094,
-0.061580851674079895,
-0.015018546022474766,
-0.007936384528875351,
0.005963895935565233,
0.02149171195924282,
-0.04137484356760979,
0.01030275784432888,
0.047274764627218246,
-0.026943916454911232,
-0.035173721611499786,
-0.005876210518181324,
-0.03984655439853668,
0.042909976094961166,
0.01690639555454254,
0.001241639838553965,
0.03326432406902313,
0.03727968409657478,
-0.00954451970756054,
-0.027356548234820366,
-0.014101087115705013,
0.007685380522161722,
-0.03714090585708618,
0.01094045303761959,
-0.020375043153762817,
0.07459706813097,
0.011066780425608158,
-0.017436891794204712,
0.08043959736824036,
0.04106836020946503,
0.015412436798214912,
-0.041588589549064636,
-0.022056877613067627,
0.024911748245358467,
-0.007783971261233091,
-0.019143303856253624,
0.0037857387214899063,
0.005297715775668621,
-0.06225321814417839,
-0.026763999834656715,
-0.03596477210521698,
0.023687899112701416,
0.05258875712752342,
0.0004970773006789386,
0.05532999336719513,
0.0403895229101181,
-0.1022391989827156,
-0.05656604468822479,
-0.24513544142246246,
-0.011570478789508343,
0.01579768769443035,
0.03307824581861496,
0.01021560002118349,
-0.038601767271757126,
-0.0077671511098742485,
-0.02884325198829174,
0.0037095851730555296,
0.06625696271657944,
0.05136016756296158,
0.004774215631186962,
-0.03467375785112381,
0.004646436311304569,
0.003413455793634057,
0.052378978580236435,
0.041915878653526306,
0.016107672825455666,
0.007196581456810236,
0.009928175248205662,
0.06503660976886749,
0.008679949678480625,
0.003502331906929612,
-0.08192934840917587,
0.045558489859104156,
0.001335670705884695,
0.1868647336959839,
0.044636353850364685,
-0.0007661987328901887,
-0.06893769651651382,
0.06123678386211395,
-0.006895348895341158,
-0.038720082491636276,
-0.07702310383319855,
0.02714734710752964,
0.01566488668322563,
0.03883257880806923,
-0.022695111110806465,
-0.04035648703575134,
-0.03922802954912186,
-0.06935693323612213,
0.03982728347182274,
-0.015420587733387947,
-0.09517799317836761,
-0.03734306991100311,
-0.021063029766082764,
-0.005206495523452759,
0.021067410707473755,
-0.06459449976682663,
0.0713653713464737,
0.006519958842545748,
0.02713712677359581,
0.03913107514381409,
-0.00508738262578845,
-0.02151563949882984,
-0.07852667570114136,
-0.060706134885549545,
-0.02047622948884964,
-0.029210738837718964,
0.06169693171977997,
0.003311034059152007,
-0.0045975749380886555,
0.04804474115371704,
-0.04427996650338173,
0.04134085401892662,
-0.014372067525982857,
-0.00893827062100172,
-0.02863495610654354,
0.026783324778079987,
-0.04650985822081566,
-0.052724145352840424,
0.05908157676458359,
-0.03846827521920204,
0.008659043349325657,
0.0434141680598259,
0.026110952720046043,
0.06531955301761627,
-0.001679115230217576,
0.0016603039111942053,
-0.02125370502471924,
0.02739635668694973,
-0.04067950323224068,
0.04864036664366722,
-0.008486026898026466,
0.05668001249432564,
0.07762551307678223,
0.07191763818264008,
-0.045246295630931854,
0.024840813130140305,
-0.03070780634880066,
0.017339471727609634,
0.02704106643795967,
-0.04377022758126259,
-0.09592136740684509,
0.013938582502305508,
0.028672579675912857,
-0.28653550148010254,
0.059543490409851074,
0.005679713096469641,
0.018705377355217934,
-0.025125181302428246,
0.017880912870168686,
0.0004469776467885822,
0.031543854624032974,
-0.02659233845770359,
0.04147808626294136,
0.05123124644160271,
0.034559670835733414,
0.040593210607767105,
0.02182180806994438,
-0.011896810494363308,
0.055622879415750504,
0.07346300780773163,
-0.043948445469141006,
0.0367756150662899,
-0.021571308374404907,
0.04300399124622345,
0.016076181083917618,
0.23894985020160675,
-0.003221518127247691,
-0.00902983732521534,
0.01089343149214983,
-0.010820649564266205,
-0.005615185480564833,
0.024923380464315414,
0.0161475520581007,
-0.01970931887626648,
0.0013625967549160123,
0.04860660806298256,
-0.03806183487176895,
0.043393325060606,
0.08034639805555344,
-0.0007685510790906847,
0.06342820078134537,
0.04865399748086929,
-0.031224055215716362,
-0.05727363005280495,
0.024072973057627678,
-0.016481997445225716,
0.0007366577046923339,
0.10053982585668564,
-0.0440678596496582,
-0.0010688647162169218,
-0.03813851252198219,
-0.06553105264902115,
0.0025733965449035168,
-0.07449428737163544,
-0.01645854488015175,
-0.05218566581606865,
-0.008376078680157661,
-0.018614213913679123,
0.02081710658967495,
-0.041843246668577194,
0.008161162957549095,
-0.033256467431783676,
-0.03928753361105919,
0.015260044485330582,
-0.0818013921380043,
0.015848461538553238,
0.03484538570046425,
0.006453108973801136
] |
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | > Hip to the *'cene*
>
> The name of this video series comes from a contraction of "Lucene",
> the search engine library leveraged by Atlas. Or it's a short form of "scene".
## Episode Guide
### **[Episode 1: What is Atlas Search & Quick Start][2]**
In this first episode of the Atlas Search 'cene, learn what Atlas Search is, and get a quick start introduction to setting up Atlas Search on your data. Within a few clicks, you can set up a powerful, full-text search index on your Atlas collection data, and leverage the fast, relevant results to your users queries.
### **[Episode 2: Configuration / Development Environment][3]**
In order to best leverage Atlas Search, configuring it for your querying needs leads to success. In this episode, learn how Atlas Search maps your documents to its index, and discover the configuration control you have. | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.05399884656071663,
-0.0029614008963108063,
0.018389998003840446,
-0.02181326411664486,
0.02867722511291504,
0.01909821666777134,
0.014562747441232204,
0.025323189795017242,
0.004523050971329212,
-0.0012164791114628315,
0.0032280415762215853,
-0.015654992312192917,
0.02656267024576664,
0.020170288160443306,
0.028149627149105072,
0.0045599183067679405,
-0.00027926231268793344,
0.05402538925409317,
-0.027845222502946854,
0.014043186791241169,
0.03822312131524086,
-0.023143496364355087,
0.007098224479705095,
-0.11790483444929123,
-0.010376131162047386,
0.030233420431613922,
0.0009822832653298974,
-0.027784768491983414,
-0.0718483030796051,
-0.24578219652175903,
-0.01064087450504303,
-0.0437135212123394,
0.0789693221449852,
0.00980768445879221,
-0.018183287233114243,
-0.03649505600333214,
-0.01635059155523777,
0.05896548181772232,
-0.04601151496171951,
0.004188267048448324,
0.10975638031959534,
0.02897893823683262,
-0.022595630958676338,
-0.0692356526851654,
-0.009910032153129578,
-0.012191927060484886,
0.02668214589357376,
0.02604066953063011,
-0.0051556057296693325,
-0.03644069284200668,
-0.006018561776727438,
-0.033522073179483414,
0.010271954350173473,
0.00816725380718708,
0.014780649915337563,
0.06187382712960243,
0.07317586988210678,
0.047088783234357834,
0.016432756558060646,
0.010039099492132664,
0.040172360837459564,
0.023128559812903404,
-0.17007166147232056,
0.08318191766738892,
-0.010593504644930363,
0.05848205089569092,
-0.003999370615929365,
-0.03672194108366966,
0.005958891473710537,
0.028124328702688217,
-0.04446180537343025,
0.031599368900060654,
-0.012487819418311119,
0.06646406650543213,
0.02198028564453125,
0.00802487600594759,
-0.04650651663541794,
0.002870910568162799,
0.0013792789541184902,
-0.028150880709290504,
-0.03152487426996231,
0.016812236979603767,
-0.014337182976305485,
0.009832599200308323,
-0.01135218795388937,
-0.04645782336592674,
-0.0008145943866111338,
-0.037064407020807266,
0.023608291521668434,
0.007859904319047928,
0.009506615810096264,
-0.024546772241592407,
-0.03352879732847214,
0.0352279394865036,
-0.0463244654238224,
-0.06775780022144318,
0.02442636899650097,
0.05907805263996124,
0.002923971274867654,
0.2084866762161255,
-0.0628492683172226,
0.05776333063840866,
0.09285982698202133,
-0.021691272035241127,
0.010919783264398575,
-0.028159426525235176,
-0.00580910500138998,
-0.01180404145270586,
0.00006904161273268983,
-0.0013575779739767313,
0.04474072530865669,
0.01243710145354271,
0.02240869402885437,
-0.04709385335445404,
0.016644440591335297,
0.0077789160422980785,
0.013247745111584663,
0.051739852875471115,
-0.00155807810369879,
-0.03618023544549942,
0.005562592297792435,
0.016553515568375587,
0.0791996493935585,
-0.060739632695913315,
0.020418930798768997,
-0.06194833666086197,
0.04893462359905243,
0.08431081473827362,
0.002625479595735669,
-0.002514657098799944,
0.02531924657523632,
-0.00031443507759831846,
-0.05158144608139992,
0.03281490132212639,
0.039115600287914276,
-0.005696298088878393,
0.003462764900177717,
-0.009152725338935852,
-0.01820320449769497,
0.004085156135261059,
-0.050011225044727325,
-0.07447870075702667,
-0.024194873869419098,
-0.10076199471950531,
-0.06298119574785233,
0.12805147469043732,
-0.0514213889837265,
0.005982646252959967,
-0.06780213862657547,
-0.030634218826889992,
0.019782021641731262,
0.001725724316202104,
-0.041632577776908875,
-0.004637967795133591,
0.0059013147838413715,
0.023931536823511124,
0.06573230773210526,
0.07884830236434937,
-0.0819517970085144,
-0.010143703781068325,
-0.04180562496185303,
-0.018986601382493973,
-0.03879629075527191,
0.10458791255950928,
0.036198705434799194,
-0.12659776210784912,
-0.035996079444885254,
0.012583892792463303,
-0.010466684587299824,
-0.003931534476578236,
0.017741380259394646,
0.024984830990433693,
-0.06374292075634003,
0.02314191497862339,
0.11177263408899307,
-0.001583293080329895,
-0.03787809610366821,
0.00906492117792368,
0.00009114775457419455,
0.011539777740836143,
0.03254096582531929,
-0.040251053869724274,
-0.003832095768302679,
0.0501694455742836,
-0.037254102528095245,
-0.06003926321864128,
-0.009405496530234814,
-0.03207113593816757,
0.0233994722366333,
0.048385635018348694,
-0.019731776788830757,
0.04339819774031639,
0.030424129217863083,
-0.012573391199111938,
-0.03218938410282135,
-0.016831418499350548,
-0.006662973202764988,
-0.02609252743422985,
-0.037188880145549774,
0.013797611929476261,
0.0804855227470398,
0.018063776195049286,
-0.02524527534842491,
0.1055774986743927,
0.011681434698402882,
0.005757778417319059,
-0.03603684902191162,
-0.02335730567574501,
0.03582004830241203,
0.011079148389399052,
-0.021720968186855316,
0.010916725732386112,
0.01748494803905487,
-0.05519581958651543,
-0.013398717157542706,
-0.025725841522216797,
0.0336335152387619,
0.05335047096014023,
-0.02871282584965229,
0.06828682869672775,
0.03432648256421089,
-0.10116534680128098,
-0.061672091484069824,
-0.25610917806625366,
0.003690647426992655,
-0.0020871623419225216,
0.013606996275484562,
-0.0026600584387779236,
-0.02934207394719124,
0.023186683654785156,
-0.02787484973669052,
0.009941230528056622,
0.05441487953066826,
0.06503547728061676,
-0.019543657079339027,
-0.03483103960752487,
0.0015047716442495584,
0.014409647323191166,
0.052073847502470016,
0.04467429965734482,
0.034062474966049194,
-0.00849111657589674,
0.0022014824207872152,
0.06277826428413391,
-0.0048661972396075726,
-0.0015847667818889022,
-0.09211139380931854,
0.04356278106570244,
-0.005036728456616402,
0.17605914175510406,
0.04727626219391823,
0.007316152099519968,
-0.0575280636548996,
0.06805775314569473,
0.008536167442798615,
-0.015984389930963516,
-0.08871690183877945,
0.021069318056106567,
0.017807429656386375,
0.05047119781374931,
-0.008844603784382343,
-0.053666163235902786,
-0.032166555523872375,
-0.07915215939283371,
0.03034157305955887,
-0.0021158589515835047,
-0.0903104916214943,
-0.0473811998963356,
-0.00673718610778451,
-0.042582061141729355,
0.015389841049909592,
-0.04615948721766472,
0.04408461973071098,
-0.000545161310583353,
0.020361710339784622,
0.004689688794314861,
0.0072164833545684814,
-0.040798187255859375,
-0.08022990077733994,
-0.06055503711104393,
-0.026866231113672256,
-0.011536781676113605,
0.059257134795188904,
-0.005704752169549465,
-0.02782701700925827,
0.037981901317834854,
-0.05732853710651398,
0.04945724457502365,
-0.02831641025841236,
-0.002009298885241151,
-0.056644633412361145,
0.03466874361038208,
-0.042096421122550964,
-0.049658410251140594,
0.0559065081179142,
-0.03613580763339996,
-0.019489696249365807,
0.037140052765607834,
0.025741731747984886,
0.0669282004237175,
-0.006627298425883055,
0.009798457846045494,
-0.026119207963347435,
0.03382336348295212,
-0.041540395468473434,
0.044325705617666245,
-0.002377801574766636,
0.050024207681417465,
0.06677990406751633,
0.07850731164216995,
-0.057447995990514755,
0.026037512347102165,
-0.024967724457383156,
0.012636788189411163,
0.029276901856064796,
-0.048792846500873566,
-0.07002100348472595,
0.031000548973679543,
0.02937716618180275,
-0.2932507395744324,
0.061169445514678955,
0.05054613575339317,
0.01449021976441145,
-0.019783305004239082,
0.03398168832063675,
0.02717958763241768,
0.0034047269728034735,
-0.0031805867329239845,
0.032939184457063675,
0.047716304659843445,
0.04047085717320442,
0.0649564117193222,
-0.0016601720126345754,
-0.008264346048235893,
0.057323187589645386,
0.09869076311588287,
-0.022433072328567505,
0.025348329916596413,
-0.021811405196785927,
0.029993949458003044,
0.018684322014451027,
0.2165994942188263,
-0.012768576852977276,
-0.01433495618402958,
0.009297718293964863,
-0.021835219115018845,
-0.005596651695668697,
0.02794298157095909,
0.016836797818541527,
-0.0033095600083470345,
0.002702374942600727,
0.0533890500664711,
-0.062269844114780426,
0.04503490775823593,
0.0509219616651535,
-0.01391006913036108,
0.057050663977861404,
0.04738561436533928,
-0.01062301266938448,
-0.04425959661602974,
0.014625603333115578,
-0.024767663329839706,
0.0009530924144200981,
0.08726657181978226,
-0.042967539280653,
0.016729438677430153,
-0.03628496453166008,
-0.041935987770557404,
-0.01539265364408493,
-0.0772622600197792,
-0.014581282623112202,
-0.04520127549767494,
0.005426112096756697,
-0.026113878935575485,
0.03530718386173248,
-0.06426473706960678,
-0.010925211012363434,
-0.04267504811286926,
-0.021245578303933144,
0.015366362407803535,
-0.09305969625711441,
0.027215618640184402,
0.018906686455011368,
0.02054859697818756
] |
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | ### **[Episode 3: Indexing][4]**
While Atlas Search automatically indexes your collections content, it does demand attention to the indexing configuration details in order to match users queries appropriately. This episode covers how Atlas Search builds an inverted index, and the options one must consider.
### **[Episode 4: Searching][5]**
Atlas Search provides a rich set of query operators and relevancy controls. This episode covers the common query operators, their relevancy controls, and ends with coverage of the must-have Query Analytics feature.
### **[Episode 5: Faceting][6]**
Facets produce additional context for search results, providing a list of subsets and counts within. This episode details the faceting options available in Atlas Search.
### **[Episode 6: Advanced Search Topics][7]**
In this episode, we go through some more advanced search topics including embedded documents, fuzzy search, autocomplete, highlighting, and geospatial. | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.051897041499614716,
-0.005160131957381964,
0.02444884181022644,
0.020137501880526543,
0.04741182178258896,
0.007022537756711245,
0.025010867044329643,
0.010959460400044918,
-0.02913862094283104,
-0.0008940236293710768,
0.025229420512914658,
-0.026444939896464348,
-0.004209971986711025,
0.019271085038781166,
0.0322609506547451,
0.0009836186654865742,
-0.03307507187128067,
0.047115106135606766,
-0.04549193009734154,
0.018683448433876038,
0.057220399379730225,
-0.023716222494840622,
-0.022002240642905235,
-0.07066970318555832,
0.008620252832770348,
0.030818695202469826,
-0.01990300975739956,
-0.05148803070187569,
-0.031898919492959976,
-0.259422242641449,
-0.021097013726830482,
-0.04989992827177048,
0.08438587188720703,
-0.012742949649691582,
-0.000008001663445611484,
-0.011038010939955711,
-0.05755298212170601,
0.0783286839723587,
-0.04257296025753021,
0.006312807090580463,
0.05984245613217354,
0.02133990079164505,
-0.008860252797603607,
-0.06989187002182007,
-0.060783784836530685,
-0.03279343619942665,
-0.0002975843381136656,
-0.004396000411361456,
-0.01596635952591896,
-0.022778848186135292,
-0.007496158592402935,
-0.035055167973041534,
-0.00460126344114542,
-0.0020070259924978018,
0.014934037812054157,
0.052023690193891525,
0.06246182695031166,
0.03493081405758858,
0.025686128064990044,
0.029491685330867767,
0.05155286192893982,
0.03941062465310097,
-0.15115098655223846,
0.07983317226171494,
0.025565272197127342,
0.012966603972017765,
-0.01880604587495327,
-0.025706978514790535,
-0.006891882978379726,
0.048491377383470535,
-0.05084146931767464,
0.04228654503822327,
-0.02186930924654007,
0.04655242711305618,
0.003504920518025756,
0.0329718254506588,
-0.033338334411382675,
-0.024633051827549934,
-0.009145212359726429,
-0.022755973041057587,
-0.002616931451484561,
-0.00023475004127249122,
-0.03663558512926102,
-0.0014708497328683734,
-0.005751440301537514,
-0.0611795037984848,
0.0010001021437346935,
-0.042910896241664886,
0.009358437731862068,
0.02199193276464939,
0.00523018604144454,
-0.006847047712653875,
-0.012048513628542423,
0.03227885439991951,
-0.04599377512931824,
-0.01828278973698616,
0.02430899627506733,
0.04455959051847458,
-0.04171222820878029,
0.23230811953544617,
-0.027410654351115227,
0.07336019724607468,
0.06275083869695663,
-0.02628302201628685,
0.004769754130393267,
-0.03491441160440445,
0.017199644818902016,
-0.00332553219050169,
-0.02637864463031292,
-0.01575612463057041,
0.009881620295345783,
0.0015178595203906298,
0.03984120115637779,
-0.03762391582131386,
0.016396470367908478,
0.04730861261487007,
0.03807120397686958,
0.04872443526983261,
0.016004890203475952,
-0.025059888139367104,
-0.004780829418450594,
0.029843095690011978,
0.09182628244161606,
-0.024506429210305214,
0.027170661836862564,
-0.03504597023129463,
0.05475837364792824,
0.1082296371459961,
-0.016851460561156273,
0.011464898474514484,
0.04379330202937126,
-0.013054709881544113,
-0.06858500838279724,
0.017267121002078056,
0.023529592901468277,
-0.021975114941596985,
-0.003807733068242669,
-0.010018480010330677,
0.012976836413145065,
-0.0001892266736831516,
-0.03196815773844719,
-0.052211783826351166,
-0.001828957349061966,
-0.09710679948329926,
-0.04983386769890785,
0.16621555387973785,
-0.0662241131067276,
0.018411576747894287,
-0.053433313965797424,
-0.03617537394165993,
-0.004465856589376926,
0.027304381132125854,
-0.018988896161317825,
-0.0006324483547359705,
0.012855077162384987,
0.03185456618666649,
0.06577767431735992,
0.04888654127717018,
-0.09928508847951889,
0.00761668523773551,
-0.04357806593179703,
-0.013208165764808655,
-0.05272940546274185,
0.1286480724811554,
0.017433077096939087,
-0.13091839849948883,
-0.031163662672042847,
0.018414516001939774,
-0.012195190414786339,
-0.012301050126552582,
0.012827010825276375,
0.020359795540571213,
-0.06443949788808823,
0.025450414046645164,
0.09374009072780609,
0.021609187126159668,
-0.05261754244565964,
0.02464507520198822,
0.007598061580210924,
0.005458486266434193,
0.04623531922698021,
-0.06430081278085709,
-0.002387596759945154,
0.044389232993125916,
-0.03382246941328049,
-0.04757705330848694,
-0.023554988205432892,
-0.007313662674278021,
0.01782158762216568,
0.040622297674417496,
-0.02218690887093544,
-0.011682401411235332,
-0.016377994790673256,
-0.009831801988184452,
-0.030716165900230408,
-0.04808251932263374,
0.015208038501441479,
-0.01510495413094759,
0.018155289813876152,
-0.011550416238605976,
0.0768667683005333,
0.012107414193451405,
-0.011499100364744663,
0.06904328614473343,
0.017040997743606567,
0.03102981112897396,
-0.039988525211811066,
-0.03219163045287132,
0.02928716316819191,
0.0029282618779689074,
-0.029466943815350533,
0.04395821690559387,
-0.004297344479709864,
-0.023141849786043167,
-0.007501321379095316,
-0.05311054736375809,
0.04503603279590607,
0.040385015308856964,
-0.04922505468130112,
0.060456160455942154,
0.013817272149026394,
-0.07260487973690033,
-0.05290985479950905,
-0.25525200366973877,
-0.00594599824398756,
-0.014454266056418419,
-0.0032250897493213415,
-0.0037326940800994635,
-0.0713127925992012,
0.045159682631492615,
0.017723748460412025,
0.013750539161264896,
0.07661785185337067,
0.023495689034461975,
-0.026871494948863983,
-0.028371941298246384,
0.020740514621138573,
-0.004236919339746237,
0.04018224775791168,
0.03561806678771973,
0.021013624966144562,
-0.0557139590382576,
-0.024059640243649483,
0.05802372097969055,
0.020572878420352936,
0.0047713229432702065,
-0.11672964692115784,
0.05269792303442955,
0.018295813351869583,
0.18608136475086212,
0.06207124888896942,
-0.008258256129920483,
-0.020091930404305458,
0.06520963460206985,
-0.010988229885697365,
-0.04919879138469696,
-0.08254163712263107,
0.03696298226714134,
0.024796336889266968,
0.02988618239760399,
0.011339876800775528,
-0.04755590856075287,
-0.03405848145484924,
-0.066371850669384,
0.037171464413404465,
0.016043199226260185,
-0.05623537302017212,
-0.040685102343559265,
-0.014001837000250816,
-0.017011404037475586,
-0.03191593661904335,
-0.012479793280363083,
0.03952331095933914,
-0.006387475878000259,
-0.003304413752630353,
0.007210458163172007,
0.016133813187479973,
-0.057621147483587265,
-0.06630731374025345,
-0.06734408438205719,
-0.038234855979681015,
-0.03623218834400177,
0.03611438348889351,
0.00018253838061355054,
-0.031070217490196228,
-0.008186881430447102,
-0.03851969912648201,
0.029926275834441185,
-0.019360212609171867,
0.02280048280954361,
-0.005702707450836897,
0.0026994410436600447,
-0.048851363360881805,
-0.030557701364159584,
0.02962154895067215,
-0.013403093442320824,
-0.017011279240250587,
0.003884192556142807,
0.03963123634457588,
0.05999428406357765,
-0.0018005730817094445,
0.022389201447367668,
-0.07696673274040222,
0.03850514069199562,
-0.021710164844989777,
0.05643036589026451,
-0.012173522263765335,
0.08145912736654282,
0.028649579733610153,
0.04982414096593857,
-0.026468832045793533,
0.06427665799856186,
-0.024887865409255028,
0.00541750667616725,
0.005473228171467781,
-0.05828762426972389,
-0.07360804826021194,
0.0429927222430706,
0.01067270990461111,
-0.2875077426433563,
0.052785761654376984,
0.03992615267634392,
0.013450577855110168,
-0.02916310913860798,
0.01299564354121685,
0.04298475384712219,
0.02051827870309353,
-0.0033746217377483845,
0.006041037850081921,
0.035621076822280884,
0.07655530422925949,
0.007600940298289061,
-0.016977591440081596,
0.019987504929304123,
0.04480353370308876,
0.0676637664437294,
-0.009932184591889381,
0.0400409922003746,
-0.022423116490244865,
-0.0027523322496563196,
0.04366528242826462,
0.2488347589969635,
0.022735314443707466,
0.020525937899947166,
0.0069596716202795506,
-0.010670348070561886,
-0.017805058509111404,
0.003617362817749381,
0.0032484689727425575,
0.007549547590315342,
-0.028743406757712364,
0.10192561149597168,
-0.0248276237398386,
0.08750780671834946,
0.06060076504945755,
-0.01569022424519062,
0.037135571241378784,
0.04588029533624649,
-0.0002465351135469973,
-0.05388825386762619,
-0.0007763390894979239,
-0.032074760645627975,
0.031580448150634766,
0.09576592594385147,
-0.044021125882864,
-0.016907501965761185,
-0.030613647773861885,
0.0013377226423472166,
0.03476012498140335,
-0.03562573716044426,
-0.036251045763492584,
-0.023605097085237503,
-0.008050494827330112,
0.012290100567042828,
0.043518271297216415,
-0.07529652118682861,
-0.007872402667999268,
-0.01382853090763092,
-0.02185225486755371,
0.011572279036045074,
-0.0914779007434845,
-0.014273002743721008,
0.004623700398951769,
0.014286601915955544
] |
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | In this episode, we go through some more advanced search topics including embedded documents, fuzzy search, autocomplete, highlighting, and geospatial.
### **[Episode 7: Query Analytics][8]**
Are your users finding what they are looking for? Are your top queries returning the best results? This episode covers the important topic of query analytics. If you're using search, you need this!
### **[Episode 8: Tips & Tricks][9]**
In this final episode of The Atlas Search 'cene Season 1, useful techniques to introspect query details and see the relevancy scoring computation details. Also shown is how to get facets and search results back in one API call. | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.06676021963357925,
-0.004111364483833313,
0.004736207891255617,
-0.013263901695609093,
0.030556093901395798,
0.01958758383989334,
0.03644321858882904,
0.0224448349326849,
0.006258488167077303,
-0.0028273065108805895,
-0.005389469675719738,
-0.024699581786990166,
0.014987430535256863,
0.0380328968167305,
0.04337989166378975,
-0.0011837705969810486,
-0.0032263752073049545,
0.053115591406822205,
-0.04344338923692703,
0.005567796062678099,
0.026066476479172707,
-0.012734340503811836,
-0.01339627429842949,
-0.0965215265750885,
-0.005380951799452305,
0.006771787069737911,
-0.011258012615144253,
-0.06593237072229385,
-0.050652820616960526,
-0.25136610865592957,
-0.016041914001107216,
-0.024172114208340645,
0.0985855683684349,
-0.005473715253174305,
-0.002864743582904339,
-0.021798094734549522,
-0.018274962902069092,
0.05820035561919212,
-0.017515556886792183,
0.026560675352811813,
0.08116031438112259,
0.020573705434799194,
-0.013295111246407032,
-0.04801011085510254,
-0.03540431335568428,
-0.022015590220689774,
0.018419504165649414,
0.016560688614845276,
-0.04002087935805321,
-0.021935835480690002,
0.003108647419139743,
-0.04263781011104584,
0.0014704210916534066,
-0.0099651413038373,
0.019402267411351204,
0.04344813898205757,
0.06005667522549629,
0.02139526791870594,
0.02613407000899315,
0.015288450755178928,
0.046368785202503204,
-0.009672620333731174,
-0.16868098080158234,
0.07461615651845932,
-0.006041634362190962,
0.015714284032583237,
-0.030827773734927177,
-0.03453097119927406,
-0.015854420140385628,
0.04346814006567001,
-0.002043291460722685,
0.03352968767285347,
-0.018407700583338737,
0.051279887557029724,
0.02384682558476925,
0.04302898794412613,
-0.022437963634729385,
-0.008096083998680115,
-0.005622686818242073,
-0.003465992398560047,
-0.030094986781477928,
0.014041547663509846,
-0.028373204171657562,
0.007716845721006393,
-0.007465854287147522,
-0.05534490942955017,
0.00009858568955678493,
-0.021630212664604187,
0.05677415058016777,
-0.005294758826494217,
0.035456135869026184,
-0.01586315408349037,
-0.042218808084726334,
0.03611033782362938,
-0.0442642904818058,
-0.031885046511888504,
0.01483351644128561,
0.03424755111336708,
0.004625923465937376,
0.2286965250968933,
-0.07254470884799957,
0.05500181019306183,
0.07822903245687485,
-0.018808357417583466,
0.0031638441141694784,
-0.040381189435720444,
-0.002948101842775941,
0.005091541446745396,
-0.0037940191105008125,
0.00749967060983181,
-0.005012684501707554,
-0.002874875208362937,
0.04530678689479828,
-0.024083755910396576,
0.01330890879034996,
0.042317915707826614,
0.06383220106363297,
0.040164537727832794,
0.004304861184209585,
-0.03654899075627327,
-0.01201238390058279,
0.006800635252147913,
0.09138433635234833,
-0.04216361790895462,
0.04487483575940132,
-0.030493739992380142,
0.05082661658525467,
0.10843587666749954,
-0.00027746130945160985,
0.0007599033997394145,
0.044587746262550354,
-0.02787509374320507,
-0.06314961612224579,
0.021271634846925735,
0.05009722709655762,
-0.019327763468027115,
0.02534487470984459,
0.002848051954060793,
-0.009147333912551403,
0.004382413346320391,
-0.05195567011833191,
-0.05775560811161995,
-0.009189917705953121,
-0.112250916659832,
-0.08422962576150894,
0.14987051486968994,
-0.06177366524934769,
0.010218949057161808,
-0.07040812075138092,
-0.035374514758586884,
-0.047018494457006454,
0.018324796110391617,
-0.0381004698574543,
0.00233478588052094,
-0.010386666283011436,
0.0608317106962204,
0.05188465490937233,
0.05001641437411308,
-0.07882969826459885,
0.003270363202318549,
-0.023854035884141922,
-0.02536843903362751,
-0.05974044278264046,
0.11848671734333038,
0.0306243896484375,
-0.13471181690692902,
-0.01729446090757847,
0.03186171129345894,
-0.0043498799204826355,
-0.010680234991014004,
0.021939365193247795,
0.017420243471860886,
-0.07202965766191483,
0.03589390963315964,
0.0989278256893158,
-0.012994564138352871,
-0.024789754301309586,
0.021178361028432846,
-0.010214095935225487,
-0.011927113868296146,
0.02865610085427761,
-0.051500353962183,
0.0024508589413017035,
0.05875605344772339,
-0.019269779324531555,
-0.06435862183570862,
-0.00806804746389389,
-0.016369737684726715,
0.03686905652284622,
0.04700523614883423,
-0.00806481298059225,
-0.03014727123081684,
-0.0048660654574632645,
-0.011421709321439266,
-0.024190537631511688,
-0.039848197251558304,
0.007155167404562235,
-0.029186153784394264,
0.025095682591199875,
-0.008780095726251602,
0.0951601192355156,
-0.014713575132191181,
-0.018613353371620178,
0.07167071849107742,
0.028830522671341896,
0.014364538714289665,
-0.042563922703266144,
-0.025763506069779396,
0.03936219960451126,
0.026780901476740837,
-0.016422396525740623,
0.016379332169890404,
0.013715490698814392,
-0.02789716236293316,
-0.0014322370989248157,
-0.0549907349050045,
0.029106905683875084,
0.041514065116643906,
-0.05671759694814682,
0.05162911117076874,
0.02397110126912594,
-0.0674872174859047,
-0.04559769481420517,
-0.25839340686798096,
-0.008024747483432293,
0.0031453364063054323,
-0.00019286241149529815,
0.009263607673346996,
-0.06494158506393433,
0.03054124489426613,
-0.0035603204742074013,
0.02763635851442814,
0.09610258787870407,
0.06170383468270302,
-0.004142829682677984,
-0.025971880182623863,
-0.0028285998851060867,
0.0064449673518538475,
0.026201777160167694,
0.04204842075705528,
0.022350473329424858,
-0.04849009960889816,
-0.010198180563747883,
0.05284688249230385,
0.02183501608669758,
0.003036012640222907,
-0.13150204718112946,
0.02706749550998211,
0.00029840480419807136,
0.17895396053791046,
0.07022072374820709,
-0.00189413211774081,
-0.03514019027352333,
0.048810046166181564,
-0.002187929581850767,
-0.0570877306163311,
-0.08355903625488281,
0.03693246841430664,
-0.006921148393303156,
0.0340888574719429,
0.0007168165175244212,
-0.04413033276796341,
-0.02890782803297043,
-0.062393710017204285,
0.040348201990127563,
0.0029706943314522505,
-0.05618084967136383,
-0.027189141139388084,
-0.022444164380431175,
-0.035524699836969376,
-0.00927801989018917,
-0.04469681531190872,
0.05311385542154312,
-0.0034834537655115128,
0.014289630576968193,
0.03704043850302696,
0.003899824572727084,
-0.04493959993124008,
-0.08360768854618073,
-0.05540985241532326,
-0.026246292516589165,
-0.05253569036722183,
0.08419955521821976,
-0.012681673280894756,
-0.020361796021461487,
0.007506528869271278,
-0.05178311467170715,
0.052106987684965134,
-0.03393715247511864,
0.011349220760166645,
-0.0284282173961401,
0.016295185312628746,
-0.054568611085414886,
-0.046385206282138824,
0.03942436724901199,
-0.030458299443125725,
-0.017965150997042656,
0.006196142174303532,
0.03512810915708542,
0.08720941841602325,
-0.019003767520189285,
0.00465036416426301,
-0.030331257730722427,
0.06285806000232697,
-0.02284286357462406,
0.07407515496015549,
-0.020597262308001518,
0.06676051765680313,
0.039092786610126495,
0.07728279381990433,
-0.028914853930473328,
0.06353657692670822,
-0.034310899674892426,
0.0013356768758967519,
-0.0020664860494434834,
-0.04242819547653198,
-0.07836176455020905,
0.03210547938942909,
0.039843663573265076,
-0.2588760256767273,
0.04661114886403084,
0.06214522197842598,
-0.001529568457044661,
-0.02295581065118313,
0.019175643101334572,
0.03035399131476879,
0.023800453171133995,
-0.01382435392588377,
0.01813315600156784,
0.05028609186410904,
0.05516590550541878,
0.020325394347310066,
-0.009055009111762047,
0.008583939634263515,
0.03186286985874176,
0.06599147617816925,
-0.019037587568163872,
0.04868357256054878,
0.0015894380630925298,
0.03454246371984482,
0.026896074414253235,
0.21669761836528778,
-0.008306127041578293,
0.032584868371486664,
0.011692437343299389,
-0.027089396491646767,
-0.034277357161045074,
0.04176056385040283,
-0.004269218537956476,
-0.02164006605744362,
0.003699499648064375,
0.06905657052993774,
-0.03551694378256798,
0.06405136734247208,
0.05327004939317703,
-0.021141663193702698,
0.04952428489923477,
0.01764468476176262,
-0.03549310192465782,
-0.01801331900060177,
0.0030037625692784786,
-0.01665792614221573,
0.0197406318038702,
0.07392540574073792,
-0.05320803076028824,
-0.02025775983929634,
-0.04296409711241722,
-0.02201935090124607,
0.008936305530369282,
-0.06112658232450485,
-0.05224117264151573,
-0.06340957432985306,
0.01655336283147335,
-0.009809047915041447,
0.0712084099650383,
-0.06716804951429367,
-0.00007837833254598081,
-0.028494780883193016,
-0.035098686814308167,
0.025842979550361633,
-0.08945272862911224,
0.016936877742409706,
0.013027588836848736,
0.03858236223459244
] |
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | [1]: https://www.mongodb.com/atlas/search
[2]: https://www.mongodb.com/developer/videos/what-is-atlas-search-quick-start/
[3]: https://www.mongodb.com/developer/videos/atlas-search-configuration-development-environment/
[4]: https://www.mongodb.com/developer/videos/mastering-indexing-for-perfect-query-matches/
[5]: https://www.mongodb.com/developer/videos/query-operators-relevancy-controls-for-precision-searches/
[6]: https://www.mongodb.com/developer/videos/faceting-mastery-unlock-the-full-potential-of-atlas-search-s-contextual-insights/
[7]: https://www.mongodb.com/developer/videos/atlas-search-mastery-elevate-your-search-with-fuzzy-geospatial-highlighting-hacks/
[8]: https://www.mongodb.com/developer/videos/atlas-search-query-analytics/ | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.0772363692522049,
-0.016209488734602928,
0.023629581555724144,
0.005377569235861301,
0.05635572597384453,
-0.006048074923455715,
0.0033894714433699846,
-0.0009399149566888809,
-0.010975291021168232,
-0.015849722549319267,
0.010561182163655758,
-0.057873550802469254,
-0.006855860818177462,
0.017523357644677162,
0.02532271109521389,
0.015396623872220516,
-0.0011087291641160846,
0.03776315227150917,
-0.051196105778217316,
0.030399717390537262,
0.04632962495088577,
-0.00021266502153594047,
-0.010681047104299068,
-0.06894334405660629,
0.03001227416098118,
0.020772825926542282,
-0.012157184071838856,
-0.05347423255443573,
-0.03553394228219986,
-0.20429271459579468,
0.0004070092982146889,
-0.042178925126791,
0.07398594170808792,
-0.021453840658068657,
-0.015010562725365162,
-0.010019776411354542,
-0.016585756093263626,
0.08204368501901627,
-0.02786402590572834,
0.003942098934203386,
0.0795159563422203,
0.017724541947245598,
-0.0024568478111177683,
-0.040705226361751556,
-0.02891560085117817,
-0.03813088312745094,
0.026423219591379166,
0.0019418621668592095,
-0.015653913840651512,
-0.05780036747455597,
-0.014971693977713585,
-0.0697532668709755,
0.019925158470869064,
0.014357770793139935,
0.025710340589284897,
0.05022221803665161,
0.039191871881484985,
0.043714798986911774,
0.016970565542578697,
-0.000021580466636805795,
0.055790822952985764,
0.02405554987490177,
-0.17484255135059357,
0.08638804405927658,
0.012418567202985287,
0.05900479853153229,
-0.01599872298538685,
-0.02860156074166298,
-0.007758708205074072,
0.02560359612107277,
-0.03887965902686119,
0.026906097307801247,
0.008934677578508854,
0.054701995104551315,
-0.002514268271625042,
0.0069020092487335205,
-0.03993731737136841,
-0.03649751842021942,
-0.0017540166154503822,
-0.021155888214707375,
-0.026555487886071205,
0.007366609759628773,
-0.02112186700105667,
0.00207161414436996,
0.006566648371517658,
-0.0422639325261116,
0.009659194387495518,
-0.02002832479774952,
0.03531314805150032,
-0.0005161729641258717,
0.005943585187196732,
-0.03407587856054306,
0.011998206377029419,
0.02934017777442932,
-0.07891485840082169,
-0.0034076904412359,
0.017758077010512352,
0.03708447888493538,
0.0048610675148665905,
0.21922966837882996,
-0.04321898892521858,
0.06274160742759705,
0.05102993920445442,
-0.0418221689760685,
0.02325606532394886,
-0.015594987198710442,
0.00846977811306715,
0.013242593966424465,
-0.019781162962317467,
0.002253467682749033,
0.03704618290066719,
-0.031273193657398224,
0.026394085958600044,
-0.04209769517183304,
0.024669796228408813,
0.010107102803885937,
0.012745030224323273,
0.0708407461643219,
0.01761581003665924,
0.0011554468655958772,
-0.02731214463710785,
-0.0009348688181489706,
0.0986897423863411,
-0.05685202404856682,
0.046961210668087006,
-0.0555543377995491,
0.01170188095420599,
0.09289349615573883,
0.006604459602385759,
0.008065201342105865,
0.023222558200359344,
0.02194949798285961,
-0.05340149998664856,
0.027896272018551826,
0.0011837348574772477,
0.009557495824992657,
0.0004988322616554797,
-0.0025262904819101095,
0.010123896412551403,
0.010605364106595516,
-0.051016394048929214,
-0.0718097984790802,
0.0033313820604234934,
-0.08143757283687592,
-0.029727591201663017,
0.17017680406570435,
-0.07966241240501404,
0.027213336899876595,
-0.05269778519868851,
-0.047030676156282425,
0.013835114426910877,
0.024299923330545425,
-0.05341131240129471,
0.032587528228759766,
-0.008158097974956036,
0.012793302536010742,
0.06006487086415291,
0.03746073693037033,
-0.06279774755239487,
-0.013501503504812717,
-0.03811845928430557,
-0.015348752029240131,
-0.04064116254448891,
0.12449153512716293,
0.025997132062911987,
-0.14832468330860138,
-0.03255622461438179,
0.014246522448956966,
-0.017970098182559013,
-0.02115454711019993,
-0.004152716137468815,
0.043803438544273376,
-0.06200529262423515,
0.02076725661754608,
0.12361594289541245,
-0.007134248502552509,
-0.056817427277565,
0.012957942672073841,
0.019089335575699806,
0.010028202086687088,
0.0027980580925941467,
-0.08662611246109009,
-0.012406552210450172,
0.022428063675761223,
-0.03625759854912758,
-0.04327011853456497,
0.003660986665636301,
-0.027277443557977676,
0.020753610879182816,
0.0323510468006134,
-0.05244406312704086,
-0.03683875501155853,
-0.0022064754739403725,
-0.006877044215798378,
-0.0173349529504776,
-0.04218167066574097,
0.023189719766378403,
-0.0262138694524765,
0.02787122316658497,
-0.02635352686047554,
0.09332182258367538,
-0.0012256876798346639,
-0.014358681626617908,
0.04731953889131546,
-0.0035480994265526533,
0.0334245003759861,
-0.03724542260169983,
-0.02177400328218937,
0.04264586791396141,
-0.010993151925504208,
-0.02056492120027542,
0.014842194505035877,
-0.023825492709875107,
-0.04373606666922569,
0.0028907936066389084,
-0.05269135907292366,
0.03001234494149685,
0.028381897136569023,
-0.05754148215055466,
0.07418866455554962,
0.031335264444351196,
-0.08483565598726273,
-0.08440923690795898,
-0.2479100525379181,
-0.013516063801944256,
-0.027309345081448555,
0.024241389706730843,
0.023007310926914215,
-0.05973760038614273,
0.021610472351312637,
0.005777416285127401,
0.00879818107932806,
0.06791209429502487,
0.07621216773986816,
0.001213639508932829,
-0.029097450897097588,
-0.006346837151795626,
0.010902618058025837,
0.047656040638685226,
0.024887310341000557,
0.022915279492735863,
-0.020441344007849693,
-0.02863943949341774,
0.03904593363404274,
0.006444972008466721,
0.018940728157758713,
-0.11145173758268356,
0.060677241533994675,
-0.008279278874397278,
0.1985347867012024,
0.06390918791294098,
-0.016381671652197838,
-0.05581036955118179,
0.05618101358413696,
-0.02643510140478611,
-0.014575673267245293,
-0.10823466628789902,
0.07009560614824295,
0.014901136979460716,
0.024568751454353333,
-0.0013815783895552158,
-0.00048570591025054455,
-0.05181169882416725,
-0.02890678495168686,
0.030617190524935722,
0.03422845900058746,
-0.06814529001712799,
-0.038937296718358994,
-0.031102826818823814,
-0.025852449238300323,
0.009743285365402699,
-0.03644287586212158,
0.035041216760873795,
-0.0010418968740850687,
0.033989451825618744,
0.03772580996155739,
-0.007413829676806927,
-0.04679776355624199,
-0.030666979029774666,
-0.08805057406425476,
-0.02146395854651928,
-0.08296302706003189,
0.045482341200113297,
-0.010106577537953854,
-0.03559590131044388,
0.03587210178375244,
-0.062213677912950516,
0.041004639118909836,
-0.007744393311440945,
-0.002549974247813225,
-0.026444898918271065,
0.026102734729647636,
-0.02535005658864975,
-0.02994181402027607,
0.08324573189020157,
-0.023594822734594345,
0.006934097036719322,
0.028704440221190453,
0.02823483757674694,
0.04198981449007988,
-0.017221728339791298,
0.003604903584346175,
-0.044741254299879074,
0.025314174592494965,
-0.013970782980322838,
0.03815688565373421,
0.012618995271623135,
0.036420147866010666,
0.019970690831542015,
0.05343249812722206,
-0.03971240296959877,
0.05705495551228523,
-0.03476766496896744,
0.004998122341930866,
-0.011669238097965717,
-0.051697101444005966,
-0.07894094288349152,
0.04136265814304352,
0.030344126746058464,
-0.2656024098396301,
0.04240141808986664,
0.05040574073791504,
0.0031251513864845037,
-0.0387222059071064,
0.011668859981000423,
0.0664103552699089,
-0.004696172196418047,
0.001166843343526125,
0.01626485399901867,
0.031267404556274414,
0.021083833649754524,
0.035900551825761795,
0.0057595414109528065,
-0.0043970444239676,
0.059296563267707825,
0.06038947403430939,
-0.03006669692695141,
0.05298721790313721,
-0.01703060418367386,
0.029387380927801132,
0.022006098181009293,
0.28099048137664795,
-0.002952344249933958,
0.007150367368012667,
0.025419089943170547,
-0.029518481343984604,
-0.024851931259036064,
0.05269560590386391,
-0.003397991880774498,
0.026533817872405052,
-0.0021295463666319847,
0.05113186687231064,
-0.033975835889577866,
0.053339291363954544,
0.08237994462251663,
-0.03162825480103493,
0.008730007335543633,
0.04623840004205704,
-0.004554688930511475,
-0.04434366151690483,
0.025257904082536697,
-0.023217901587486267,
0.02487962879240513,
0.11300811916589737,
-0.04078684002161026,
-0.0020800656639039516,
-0.04064136743545532,
-0.026639027521014214,
0.039486031979322433,
-0.04805035889148712,
-0.06093648821115494,
0.0015878319973126054,
-0.009149334393441677,
0.009810238145291805,
0.047122880816459656,
-0.030430886894464493,
-0.01912904530763626,
-0.015560443513095379,
-0.027612922713160515,
0.024894380941987038,
-0.08406808227300644,
0.002104673534631729,
0.025951674208045006,
0.028012599796056747
] |
devcenter | https://www.mongodb.com/developer/products/atlas/atlas-search-cene-1 | created | [8]: https://www.mongodb.com/developer/videos/atlas-search-query-analytics/
[9]: https://www.mongodb.com/developer/videos/tips-and-tricks-the-atlas-search-cene-season-1-episode-8/ | md | {
"tags": [
"Atlas"
],
"pageDescription": "The Atlas Search 'cene: Season 1",
"contentType": "Video"
} | The Atlas Search 'cene: Season 1 | 2024-05-20T17:32:23.500Z | [
-0.06959200650453568,
-0.017777325585484505,
0.003730013268068433,
-0.018731290474534035,
0.05623701959848404,
0.010634814389050007,
0.007514973636716604,
0.02913835644721985,
0.00411106925457716,
-0.008122571744024754,
0.008557385765016079,
-0.049779560416936874,
0.01478045154362917,
0.021783635020256042,
0.03805803880095482,
0.0008596904808655381,
-0.0011014349292963743,
0.06175808981060982,
-0.05293804407119751,
0.010889589786529541,
0.04118361696600914,
-0.013940968550741673,
0.006228483747690916,
-0.07847117632627487,
0.034004971385002136,
0.014750071801245213,
-0.004830151796340942,
-0.05536234378814697,
-0.03881371393799782,
-0.20395243167877197,
0.0002705059596337378,
-0.044253069907426834,
0.08046739548444748,
-0.02456999570131302,
0.0010516623733565211,
-0.031190918758511543,
0.0012354094069451094,
0.06460429728031158,
-0.04252903535962105,
0.04958915710449219,
0.09373648464679718,
0.016708718612790108,
-0.02803358994424343,
-0.05108475312590599,
-0.01006054226309061,
-0.026839638128876686,
0.029689958319067955,
0.013591576367616653,
0.018083520233631134,
-0.023197544738650322,
0.006033646408468485,
-0.04971859231591225,
-0.0039163995534181595,
0.0037089369725435972,
0.04202200472354889,
0.037718966603279114,
0.05461803451180458,
0.032408665865659714,
0.01921105571091175,
0.0010263017611578107,
0.05154355615377426,
-0.003050470259040594,
-0.19785846769809723,
0.09555946290493011,
0.010052935220301151,
0.05591098219156265,
-0.014915134757757187,
-0.037397757172584534,
0.000160576484631747,
0.040028296411037445,
-0.044494688510894775,
0.013689931482076645,
0.015268582850694656,
0.03674083203077316,
-0.004698272328823805,
0.01817546784877777,
-0.030082030221819878,
-0.021434877067804337,
-0.012844055891036987,
0.0035205939784646034,
-0.04929312318563461,
-0.006574911531060934,
-0.015846945345401764,
0.005933657754212618,
0.01351402048021555,
-0.06115582212805748,
0.027146335691213608,
-0.02298765257000923,
0.03824132680892944,
-0.0005508085596375167,
0.0203729048371315,
-0.030493685975670815,
0.004720980767160654,
0.018642403185367584,
-0.08395189046859741,
-0.025479216128587723,
0.03585243970155716,
0.022866757586598396,
0.01965947262942791,
0.2467576116323471,
-0.06408469378948212,
0.04607710242271423,
0.062437161803245544,
-0.02699677273631096,
-0.0002004827547352761,
-0.03567417711019516,
-0.004060202278196812,
-0.00432621082291007,
0.0015554663259536028,
0.01524590514600277,
0.015250525437295437,
-0.01947544515132904,
0.02606353536248207,
-0.0439569391310215,
0.02293643169105053,
0.026172533631324768,
0.012515629641711712,
0.06060358136892319,
-0.02789468877017498,
-0.0032895884942263365,
0.008612804114818573,
-0.00901350099593401,
0.08729448169469833,
-0.06047455966472626,
0.05734988674521446,
-0.05392554774880409,
0.03469805046916008,
0.09420675039291382,
0.013957862742245197,
0.02022131346166134,
0.02240670658648014,
0.002672698814421892,
-0.07865037769079208,
0.01958126202225685,
0.015544915571808815,
0.001292233937419951,
0.01156672928482294,
-0.013748620636761189,
-0.005699610337615013,
-0.002360703656449914,
-0.03169149532914162,
-0.10876273363828659,
-0.012191535905003548,
-0.07289928197860718,
-0.04365088790655136,
0.1408553421497345,
-0.06331341713666916,
0.029564401134848595,
-0.05636302009224892,
-0.05765295773744583,
-0.014480110257863998,
0.020603707060217857,
-0.045504484325647354,
0.019144022837281227,
-0.014120078645646572,
0.021427953615784645,
0.07721668481826782,
0.04567259922623634,
-0.07759163528680801,
0.001798823825083673,
-0.04435943812131882,
-0.020804885774850845,
-0.020527707412838936,
0.0955549106001854,
0.04260504990816116,
-0.12137076258659363,
-0.020937733352184296,
0.04106566309928894,
0.007761459797620773,
-0.043934743851423264,
0.008255256339907646,
0.023536330088973045,
-0.08269903808832169,
0.02281017228960991,
0.12671220302581787,
-0.0043335724622011185,
-0.054421670734882355,
0.008573167957365513,
0.012714309617877007,
-0.004495292901992798,
0.008352063596248627,
-0.060638684779405594,
-0.017587317153811455,
0.0600220263004303,
-0.041192978620529175,
-0.0446687713265419,
0.011678618378937244,
-0.025181138888001442,
0.035420142114162445,
0.033798132091760635,
-0.030352218076586723,
-0.041985493153333664,
-0.003840919816866517,
0.010388257913291454,
-0.040145158767700195,
-0.03788347169756889,
0.01742156222462654,
-0.03896406292915344,
0.018431099131703377,
-0.03579624369740486,
0.10322048515081406,
-0.01783902384340763,
-0.019274530932307243,
0.05846073478460312,
-0.005131606478244066,
0.02416701428592205,
-0.03967169672250748,
-0.022199541330337524,
0.0369793139398098,
-0.009928648360073566,
-0.027790911495685577,
0.0017079366371035576,
-0.002903078682720661,
-0.03902949020266533,
-0.013463894836604595,
-0.02235277183353901,
0.03796694055199623,
0.01569724641740322,
-0.02798118256032467,
0.04019518569111824,
0.03835204616189003,
-0.08926612138748169,
-0.06550359725952148,
-0.26505717635154724,
-0.018007544800639153,
-0.0058098467998206615,
0.02177421562373638,
0.003360860049724579,
-0.058552615344524384,
0.026111634448170662,
-0.018557531759142876,
0.011850321665406227,
0.1023440957069397,
0.07127275317907333,
-0.0012660844950005412,
-0.021991318091750145,
-0.03975239768624306,
0.017893286421895027,
0.06952963024377823,
0.02221452072262764,
0.017792129889130592,
-0.012488635256886482,
-0.0014722640626132488,
0.031357746571302414,
-0.016597209498286247,
0.01056397520005703,
-0.1183554008603096,
0.05585377663373947,
-0.013455270789563656,
0.17484281957149506,
0.07151271402835846,
-0.018566308543086052,
-0.05600224807858467,
0.059830572456121445,
0.0016704044537618756,
-0.03521322086453438,
-0.08732713758945465,
0.04330902546644211,
0.002839182736352086,
0.022017959505319595,
0.009933172725141048,
-0.005873925518244505,
-0.036595720797777176,
-0.06848083436489105,
0.054303281009197235,
0.014527658000588417,
-0.0927615612745285,
-0.014194568619132042,
-0.023049049079418182,
-0.01853489689528942,
0.005600443109869957,
-0.04545531049370766,
0.029449541121721268,
-0.001867222716100514,
0.02956509217619896,
0.044800784438848495,
0.0011836182093247771,
-0.025814371183514595,
-0.05942567437887192,
-0.05473121255636215,
-0.01109924353659153,
-0.06133204698562622,
0.06687120348215103,
-0.011285443790256977,
-0.02726968191564083,
0.03278036415576935,
-0.05622046813368797,
0.039565760642290115,
-0.01164640299975872,
-0.016070334240794182,
-0.03389972820878029,
0.029291074723005295,
-0.01862158626317978,
-0.025398537516593933,
0.0629098117351532,
-0.023701559752225876,
0.01672433316707611,
0.04684342071413994,
0.03828132525086403,
0.036017827689647675,
-0.027289586141705513,
-0.009982503019273281,
-0.03179987519979477,
0.023168258368968964,
-0.02913508005440235,
0.03747102990746498,
0.00923808105289936,
0.043596301227808,
0.055462680757045746,
0.07015886157751083,
-0.04676813259720802,
0.057625170797109604,
-0.0345449335873127,
-0.002005180576816201,
-0.013171804137527943,
-0.055840760469436646,
-0.08005788922309875,
0.021889731287956238,
0.0563713014125824,
-0.262616366147995,
0.04825906455516815,
0.02309255301952362,
0.02706635184586048,
-0.016408981755375862,
0.00933845341205597,
0.058920297771692276,
0.003439590334892273,
-0.0017868855502456427,
0.02605099231004715,
0.03281574696302414,
0.021603509783744812,
0.030352437868714333,
-0.010303228162229061,
-0.015949789434671402,
0.04738062992691994,
0.05715685337781906,
-0.0336037315428257,
0.07599790394306183,
-0.00907635036855936,
0.05791492760181427,
0.01076579187065363,
0.24946247041225433,
0.030488794669508934,
-0.007123169023543596,
0.008255630731582642,
-0.02529960498213768,
-0.01399421226233244,
0.047170378267765045,
-0.0013186604483053088,
-0.024683816358447075,
0.009502681903541088,
0.030606267973780632,
-0.026546690613031387,
0.04670872911810875,
0.08019501715898514,
-0.03377465531229973,
0.044267527759075165,
0.030011916533112526,
-0.019331464543938637,
-0.03305155783891678,
0.004535655025392771,
-0.030395999550819397,
0.018728099763393402,
0.10071039944887161,
-0.04580856114625931,
-0.019817901775240898,
-0.02031630650162697,
-0.03259139508008957,
0.01533195935189724,
-0.05705614760518074,
-0.04757549613714218,
-0.024546416476368904,
0.006168886553496122,
0.0031678341329097748,
0.06572311371564865,
-0.029292872175574303,
0.0068168132565915585,
-0.02455238811671734,
-0.03798121213912964,
0.02005990408360958,
-0.08861981332302094,
0.013922447338700294,
0.00803864374756813,
0.03240083158016205
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | # Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI
In the realm of property rentals, reviews play a pivotal role. MongoDB Atlas triggers, combined with the power of OpenAI's models, can help summarize and analyze these reviews in real-time. In this article, we'll explore how to utilize MongoDB Atlas triggers to process Airbnb reviews, yielding concise summaries and relevant tags.
This article is an additional feature added to the hotels and apartment sentiment search application developed in Leveraging OpenAI and MongoDB Atlas for Improved Search Functionality.
## Introduction
MongoDB Atlas triggers allow users to define functions that execute in real-time in response to database operations. These triggers can be harnessed to enhance data processing and analysis capabilities. In this example, we aim to generate summarized reviews and tags for a sample Airbnb dataset.
Our original data model has each review embedded in the listing document as an array: | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.02477567084133625,
-0.004139764234423637,
0.0033128077629953623,
0.009702196344733238,
0.046617407351732254,
0.02175799570977688,
0.023161737248301506,
0.03339182958006859,
0.003896396839991212,
-0.019296376034617424,
-0.010015616193413734,
-0.00755298463627696,
0.02327808551490307,
0.08023861050605774,
0.03140760213136673,
-0.002401107456535101,
0.0062610977329313755,
-0.020432496443390846,
-0.017879419028759003,
0.027169331908226013,
0.02362944558262825,
-0.02310277335345745,
0.003389892866834998,
-0.058844227343797684,
0.009357134811580181,
0.017486538738012314,
-0.0471007414162159,
-0.03283112496137619,
-0.06562191992998123,
-0.22188816964626312,
-0.01158834807574749,
-0.04672367498278618,
0.09096957743167877,
-0.03158755227923393,
0.019189881160855293,
-0.008132786490023136,
-0.006726088933646679,
0.04399454966187477,
-0.017528647556900978,
0.012341368943452835,
0.05727590247988701,
0.02248852699995041,
0.016540730372071266,
-0.06479787826538086,
0.010143670253455639,
-0.03643680363893509,
0.027408437803387642,
-0.0012756148353219032,
-0.030361808836460114,
-0.0029079820960760117,
0.03462143987417221,
-0.08806359022855759,
-0.021436301991343498,
0.00602630665525794,
0.05190899595618248,
0.03877805173397064,
0.0031378164421766996,
0.03627441078424454,
0.017899516969919205,
0.03765137121081352,
0.08873807638883591,
0.027530046179890633,
-0.14177069067955017,
0.07192060351371765,
0.06671439111232758,
0.06186169758439064,
-0.048324428498744965,
-0.0017431285232305527,
0.004902997054159641,
0.03508768975734711,
-0.016840485855937004,
0.010352395474910736,
0.02534988895058632,
0.034345902502536774,
0.0092273885384202,
0.03330320492386818,
-0.005541947670280933,
-0.02645975910127163,
-0.007137765642255545,
0.01885661669075489,
-0.013788633048534393,
-0.03331386670470238,
-0.0381036140024662,
-0.020455099642276764,
-0.03559814766049385,
-0.015466976910829544,
0.011857781559228897,
-0.03135042265057564,
0.023356130346655846,
-0.001960638677701354,
0.005712807644158602,
-0.03242114558815956,
0.00046487877261824906,
0.04701297730207443,
-0.08889680355787277,
-0.021777035668492317,
0.014928964897990227,
0.021462896838784218,
-0.015268445014953613,
0.2408120185136795,
-0.04889160767197609,
0.0698009580373764,
0.0281190387904644,
-0.03698185458779335,
-0.0032210536301136017,
-0.06222153082489967,
0.021942825987935066,
-0.027777306735515594,
-0.01918068900704384,
0.013719769194722176,
-0.05544498935341835,
-0.022928511723876,
0.031004877761006355,
-0.04560722038149834,
0.036321498453617096,
0.020424645394086838,
0.06337903439998627,
0.06640960276126862,
0.024923203513026237,
-0.016996068879961967,
-0.01813586987555027,
0.005941918585449457,
0.05094078928232193,
-0.006068997085094452,
0.0035517229698598385,
-0.0675528347492218,
0.06304855644702911,
0.09314879775047302,
0.011829876340925694,
0.02301434613764286,
0.036491766571998596,
0.006777485366910696,
-0.0881175771355629,
0.013532282784581184,
0.02158370614051819,
0.04938328266143799,
0.0042826272547245026,
-0.0045249611139297485,
0.04252837970852852,
0.010440434329211712,
-0.04809702932834625,
-0.037101928144693375,
-0.010011439211666584,
-0.08174360543489456,
-0.0640404000878334,
0.15083013474941254,
-0.02967706508934498,
0.04067924618721008,
-0.06949367374181747,
-0.01876037009060383,
0.018664540722966194,
0.04914969950914383,
-0.057383161038160324,
-0.03468559309840202,
-0.0001441297645214945,
0.032469671219587326,
0.032093413174152374,
0.07627666741609573,
-0.044897064566612244,
-0.00565537391230464,
-0.0032037070486694574,
-0.026379257440567017,
-0.06544432789087296,
0.08992085605859756,
-0.012924066744744778,
-0.12468693405389786,
-0.023318329825997353,
0.016619857400655746,
-0.015571905300021172,
-0.04039478674530983,
0.03998470678925514,
0.03575365990400314,
-0.07758451998233795,
0.03702624514698982,
0.07931943237781525,
0.01173643209040165,
-0.007979514077305794,
0.0009220060892403126,
0.0054300688207149506,
-0.020895805209875107,
0.004456746857613325,
-0.030983351171016693,
-0.045438800007104874,
0.08483320474624634,
0.003968090284615755,
-0.044920094311237335,
-0.0189597737044096,
-0.06746981292963028,
0.03670250624418259,
0.03811357915401459,
-0.0685405433177948,
-0.021701199933886528,
-0.008360820822417736,
0.03427956625819206,
-0.024272646754980087,
-0.05099979788064957,
-0.00047142451512627304,
-0.00592984352260828,
0.046611301600933075,
-0.041393183171749115,
0.06454195082187653,
-0.001046262215822935,
-0.04648666828870773,
0.03132496774196625,
0.023615822196006775,
0.02652597241103649,
-0.0213563721626997,
0.0018568354425951838,
0.02047073468565941,
-0.010859020054340363,
0.00290919141843915,
0.008921528235077858,
0.002586579183116555,
-0.024396328255534172,
0.009414661675691605,
-0.017020951956510544,
0.036238767206668854,
0.03568551316857338,
0.004366038832813501,
0.05741508677601814,
0.01643182896077633,
-0.05086427554488182,
-0.03989960998296738,
-0.250104695558548,
-0.010099457576870918,
0.02231781929731369,
0.0034453985281288624,
0.00413340562954545,
-0.0911557748913765,
-0.005808325484395027,
-0.029834497720003128,
-0.013003186322748661,
0.0829680934548378,
0.03441615030169487,
-0.02940663881599903,
-0.003184668021276593,
0.04291582852602005,
-0.006667773239314556,
0.07515126466751099,
0.009415085427463055,
0.032163284718990326,
-0.04648883640766144,
-0.012032649479806423,
0.05243302136659622,
0.029505301266908646,
0.0023408702109009027,
-0.09722843766212463,
0.02594924345612526,
-0.032015495002269745,
0.22752048075199127,
0.01353283692151308,
0.005319986958056688,
-0.0514121912419796,
0.0700196772813797,
-0.02179809659719467,
-0.014159108512103558,
-0.13811688125133514,
0.0704147145152092,
0.00865048635751009,
0.09756986796855927,
0.015645073726773262,
-0.055431753396987915,
-0.039661094546318054,
-0.02159222587943077,
0.08651374280452728,
0.017249111086130142,
-0.09360399842262268,
-0.03548436239361763,
-0.020484406501054764,
-0.004103911574929953,
-0.009860341437160969,
-0.08902379870414734,
0.031437795609235764,
-0.027797235175967216,
0.009772964753210545,
0.06225069984793663,
0.01887676492333412,
-0.04315359145402908,
-0.05595838651061058,
-0.09686221927404404,
0.00845502782613039,
-0.03137277811765671,
0.04444529116153717,
0.009749538265168667,
-0.04029909148812294,
0.03941213712096214,
-0.034457042813301086,
0.026305241510272026,
-0.026382699608802795,
-0.019866982474923134,
0.016262413933873177,
-0.025983983650803566,
-0.025202816352248192,
-0.04490601643919945,
0.087392657995224,
-0.049275413155555725,
0.005189306102693081,
0.05228985846042633,
0.013920167461037636,
0.02599245496094227,
-0.02656446024775505,
-0.025883125141263008,
-0.05097761005163193,
0.0341004841029644,
-0.03626818209886551,
0.03706355765461922,
0.019482437521219254,
0.039889343082904816,
0.053299106657505035,
0.04182882606983185,
-0.027349842712283134,
0.02543840929865837,
-0.02891516126692295,
0.0012863441370427608,
0.0012563582276925445,
-0.055553097277879715,
-0.03761973977088928,
0.02746685966849327,
0.004119709134101868,
-0.299271821975708,
0.030998166650533676,
-0.028151685371994972,
0.02478531002998352,
0.01546681858599186,
0.03601254150271416,
0.029122190549969673,
0.031595371663570404,
-0.039060428738594055,
0.027690358459949493,
0.032165300101041794,
0.03276560455560684,
0.005326658952981234,
-0.014134841971099377,
-0.017994349822402,
0.011734559200704098,
0.03199554607272148,
-0.04912369325757027,
0.030364032834768295,
-0.05103688687086105,
0.016674745827913284,
0.06540735810995102,
0.2341759353876114,
-0.004007433075457811,
0.029275953769683838,
0.01545638870447874,
0.012724814005196095,
0.007094117347151041,
0.0295840036123991,
-0.010886956937611103,
-0.0002463348500896245,
-0.02853827178478241,
0.07116414606571198,
-0.03516176715493202,
0.05296819284558296,
0.07267698645591736,
-0.03232896327972412,
0.041802894324064255,
0.04441029578447342,
-0.0026675311382859945,
-0.030998120084404945,
0.007240061182528734,
-0.008200799115002155,
0.0347643718123436,
0.06742137670516968,
-0.020417802035808563,
-0.03873642534017563,
-0.04624646529555321,
0.013155940920114517,
0.003632923820987344,
-0.02946421131491661,
-0.06379932910203934,
-0.025984499603509903,
0.013505503535270691,
0.01972179114818573,
0.009849895723164082,
-0.048507269471883774,
-0.03239745646715164,
-0.02856515347957611,
-0.007772515062242746,
-0.002743778983131051,
-0.08607843518257141,
0.013379600830376148,
-0.0013835140271112323,
-0.007217815611511469
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | ```javascript
"reviews": { "_id": "2663437",
"date": { "$date": "2012-10-20T04:00:00.000Z" }, \
"listing_id": "664017",
"reviewer_id": "633940",
"reviewer_name": "Patricia",
"comments": "I booked the room at Marinete's apartment for my husband. He was staying in Rio for a week because he was studying Portuguese. He loved the place. Marinete was very helpfull, the room was nice and clean. \r\nThe location is perfect. He loved the time there. \r\n\r\n" },
{ "_id": "2741592",
"date": { "$date": "2012-10-28T04:00:00.000Z" },
"listing_id": "664017", | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.047046247869729996,
0.013360108248889446,
0.03314833715558052,
-0.026793386787176132,
0.01846095733344555,
-0.014731922186911106,
0.038464728742837906,
0.050045598298311234,
0.0033412629272788763,
-0.008582023903727531,
-0.004438611213117838,
-0.01506042666733265,
-0.01605268009006977,
0.05935155972838402,
0.013178565539419651,
-0.025449885055422783,
-0.012207665480673313,
-0.009256395511329174,
-0.06505393981933594,
0.02276722900569439,
0.07932984828948975,
0.014331318438053131,
-0.026081731542944908,
-0.10092028975486755,
0.016608066856861115,
0.057177141308784485,
-0.02428765781223774,
-0.02035825327038765,
-0.07636494189500809,
-0.15122085809707642,
-0.013883283361792564,
-0.06258244067430496,
0.06449975073337555,
-0.016498805955052376,
-0.004990781657397747,
-0.02546721324324608,
0.014288815669715405,
0.03717201203107834,
-0.03436586633324623,
0.05788465961813927,
0.027350490912795067,
-0.011043659411370754,
-0.016714055091142654,
-0.05201639235019684,
-0.033179186284542084,
-0.05344676226377487,
-0.01825823076069355,
-0.028082383796572685,
-0.013505150564014912,
0.035519078373909,
-0.003747275099158287,
-0.0509379506111145,
0.011758880689740181,
-0.004996201954782009,
0.06716395914554596,
0.04853809252381325,
-0.001649963203817606,
0.057931069284677505,
0.026415569707751274,
0.02707808092236519,
0.058546870946884155,
0.031048139557242393,
-0.20403990149497986,
0.09073536843061447,
0.05031488463282585,
0.037163812667131424,
-0.04695281758904457,
-0.03568372130393982,
-0.030171407386660576,
0.04128658398985863,
-0.001637155655771494,
0.01752813532948494,
0.025193409994244576,
0.0414009727537632,
0.019641149789094925,
-0.020726656541228294,
-0.01493719033896923,
-0.03583557531237602,
0.016490163281559944,
0.047818660736083984,
-0.04429275915026665,
-0.06440902501344681,
-0.016532955691218376,
-0.04837801679968834,
-0.020154708996415138,
-0.05353430286049843,
0.03066888079047203,
-0.04150013253092766,
0.007738419808447361,
0.034552525728940964,
-0.020594395697116852,
-0.04756614938378334,
-0.014634087681770325,
0.03528789430856705,
-0.08837930858135223,
-0.019360395148396492,
0.02799135260283947,
0.0253839623183012,
-0.03750764578580856,
0.2460787296295166,
-0.05847138911485672,
0.05712392181158066,
0.033957384526729584,
-0.06302189081907272,
0.005492804571986198,
-0.06547700613737106,
-0.0016174468910321593,
-0.054170314222574234,
0.0034852398093789816,
0.003541752463206649,
-0.05502491071820259,
-0.017890863120555878,
0.04881570115685463,
-0.04339718073606491,
0.025669904425740242,
0.022890077903866768,
0.0527501255273819,
0.07459714263677597,
0.04632802680134773,
-0.005187774542719126,
0.056587040424346924,
0.008043716661632061,
0.01797020435333252,
-0.011094599962234497,
0.036290548741817474,
-0.04570576176047325,
0.05712566524744034,
0.1064000055193901,
0.018039520829916,
0.06651781499385834,
0.06633312255144119,
-0.020332662388682365,
-0.05620419979095459,
0.006222068332135677,
-0.02660454995930195,
0.037122245877981186,
-0.01836622692644596,
-0.003236017655581236,
0.08773359656333923,
-0.004610003437846899,
-0.03545555844902992,
-0.10838709771633148,
-0.05762365087866783,
-0.04474649578332901,
-0.022491376847028732,
0.10195263475179672,
-0.04016347602009773,
0.04468219354748726,
-0.009615829214453697,
-0.022650275379419327,
-0.02912467159330845,
0.05842965841293335,
-0.02991374582052231,
-0.04057599604129791,
-0.02556604892015457,
0.047420892864465714,
0.03950486332178116,
0.028373295441269875,
-0.05452371761202812,
0.010213790461421013,
-0.005713754333555698,
-0.03084273636341095,
-0.03938412666320801,
0.07151556760072708,
0.04407554119825363,
-0.10827667266130447,
-0.01683640293776989,
0.021527156233787537,
0.03154052793979645,
-0.05365550145506859,
0.0161081925034523,
0.03111451491713524,
-0.08270969986915588,
0.014354406856000423,
0.0860624760389328,
0.022884251549839973,
0.02147005870938301,
0.029806144535541534,
0.013606333173811436,
-0.03143605962395668,
0.00645924499258399,
-0.0323185920715332,
-0.07876064628362656,
0.05895368754863739,
0.011020644567906857,
-0.03410482779145241,
0.008459473960101604,
-0.04716121405363083,
0.02197868749499321,
0.07032205164432526,
-0.010581622831523418,
-0.036504749208688736,
-0.020663941279053688,
0.009513293392956257,
-0.0012909425422549248,
-0.012714657001197338,
-0.010013104416429996,
-0.010047427378594875,
0.010659588500857353,
-0.01817316934466362,
0.09923072904348373,
-0.026336487382650375,
-0.015319828875362873,
0.024592015892267227,
0.012321673333644867,
0.030442502349615097,
-0.009130069985985756,
-0.015530090779066086,
0.02405153401196003,
0.030238976702094078,
-0.061182714998722076,
0.0036068421322852373,
0.05780329927802086,
-0.013018335215747356,
-0.02054320089519024,
-0.01285208947956562,
-0.014006304554641247,
0.005453160498291254,
0.0707523375749588,
0.056377701461315155,
-0.0017640518490225077,
-0.09076762944459915,
-0.03683022782206535,
-0.22781477868556976,
-0.004030704963952303,
0.04100816696882248,
0.0014945287257432938,
0.032780274748802185,
-0.05282396823167801,
0.02054085209965706,
-0.05000057816505432,
0.048470962792634964,
0.09653186798095703,
0.03796551749110222,
-0.021483812481164932,
-0.05307970568537712,
0.013925604522228241,
-0.021473756060004234,
0.05562249571084976,
0.01034422218799591,
0.003521801671013236,
0.002308915602043271,
-0.0017645753687247634,
-0.008916329592466354,
-0.004613857716321945,
-0.008876195177435875,
-0.08358772844076157,
0.01573813147842884,
-0.023233968764543533,
0.22964046895503998,
0.09348729252815247,
-0.020854050293564796,
-0.06662264466285706,
0.07168616354465485,
0.00211604917421937,
0.005023926962167025,
-0.11088120192289352,
0.05517246946692467,
0.009374282322824001,
0.07038804143667221,
-0.005896500777453184,
-0.021299876272678375,
-0.04266014322638512,
-0.0034982049837708473,
0.028587529435753822,
0.025645222514867783,
-0.01709512248635292,
-0.040019452571868896,
-0.07988708466291428,
-0.006647714879363775,
-0.010880764573812485,
-0.04569237306714058,
0.03588927909731865,
0.02320997603237629,
-0.006680149585008621,
0.06680694222450256,
0.019787130877375603,
-0.002012827666476369,
-0.02796800248324871,
-0.06424207985401154,
-0.0034163095988333225,
-0.028936218470335007,
0.04014316946268082,
-0.008092649281024933,
-0.04634246230125427,
0.015308622270822525,
-0.018344486132264137,
0.02770165167748928,
0.014233836904168129,
-0.01855415664613247,
0.0008960515260696411,
0.010955410078167915,
-0.021648626774549484,
-0.04561934247612953,
0.08240493386983871,
0.004023443441838026,
0.018025031313300133,
0.05235918238759041,
0.020327594131231308,
0.02303556352853775,
-0.01514534279704094,
0.012487652711570263,
-0.03017064556479454,
0.04803241789340973,
-0.0009706690325401723,
0.07180372625589371,
0.02498752810060978,
0.034308984875679016,
0.02124236524105072,
0.025006424635648727,
-0.004721452482044697,
-0.007939278148114681,
-0.0612952783703804,
-0.029954906553030014,
-0.02121550217270851,
-0.06666778773069382,
-0.028969913721084595,
0.013333109207451344,
-0.00011614421964623034,
-0.3284452557563782,
0.023255519568920135,
-0.0035598273389041424,
0.01616727001965046,
0.02604006789624691,
0.02035144902765751,
0.017764609307050705,
0.009310698136687279,
-0.030954059213399887,
0.037401579320430756,
0.03528023138642311,
0.045302215963602066,
0.01660115271806717,
-0.018685543909668922,
-0.010968036018311977,
0.03946557641029358,
-0.005999394226819277,
-0.038575269281864166,
0.057350222021341324,
-0.03565259650349617,
0.04043980687856674,
0.06254392862319946,
0.2217269390821457,
-0.0031294231303036213,
0.03260170668363571,
0.03705486282706261,
-0.013736126944422722,
0.03422810882329941,
0.048297666013240814,
-0.01773400977253914,
0.026372481137514114,
-0.017031816765666008,
0.08640621602535248,
-0.03665424510836601,
0.03271816298365593,
0.01808423548936844,
-0.0727839469909668,
0.027315432205796242,
0.03696808964014053,
-0.027423281222581863,
-0.022764045745134354,
0.01329104509204626,
-0.015825334936380386,
-0.02150847762823105,
0.09718519449234009,
-0.031135492026805878,
-0.01896659843623638,
-0.04659169912338257,
0.005929746199399233,
-0.02512918971478939,
-0.05082964152097702,
-0.027337100356817245,
-0.03627578169107437,
0.021262703463435173,
0.009649881161749363,
0.030841033905744553,
0.0004781798052135855,
-0.020767252892255783,
-0.0453062541782856,
-0.01803404651582241,
-0.039263978600502014,
-0.08456069976091385,
0.024263188242912292,
0.015366345643997192,
-0.03392327204346657
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | "listing_id": "664017",
"reviewer_id": "3932440",
"reviewer_name": "Carolina",
"comments": "Es una muy buena anfitriona, preocupada de que te encuentres cómoda y te sugiere que actividades puedes realizar. Disfruté mucho la estancia durante esos días, el sector es central y seguro." }, ... ]
``` | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.030334945768117905,
-0.009156111627817154,
0.06746015697717667,
0.008061906322836876,
-0.0019449418177828193,
0.013199279084801674,
0.02676151879131794,
0.06135082244873047,
-0.023230483755469322,
0.005505756940692663,
-0.012951171956956387,
-0.058555614203214645,
0.013168364763259888,
0.04605277627706528,
0.007639732677489519,
-0.01667330414056778,
-0.0041660526767373085,
0.01414114236831665,
0.006575664971023798,
0.018727464601397514,
0.08135320991277695,
-0.01088747102767229,
-0.008803235366940498,
-0.019610779359936714,
0.035580869764089584,
0.002406136365607381,
-0.04995321109890938,
-0.02885969914495945,
-0.08415573090314865,
-0.1554282158613205,
-0.015935152769088745,
-0.028288207948207855,
0.07986931502819061,
-0.034920625388622284,
0.007179520558565855,
-0.040512196719646454,
-0.0021536732092499733,
0.009440040215849876,
-0.027778172865509987,
0.055215343832969666,
0.010066990740597248,
-0.007919341325759888,
-0.04990650340914726,
-0.0452481284737587,
-0.016677094623446465,
-0.03926631435751915,
0.003470278112217784,
0.01621992699801922,
-0.00015399327094200999,
0.013196594081819057,
0.030573226511478424,
-0.0449858084321022,
-0.010515264235436916,
0.014261799864470959,
0.006738857366144657,
0.07339745759963989,
0.031236810609698296,
0.0030820651445537806,
0.043437857180833817,
0.050768692046403885,
0.08307110518217087,
0.07652866840362549,
-0.2696308493614197,
0.04460601136088371,
0.045925408601760864,
0.011195342987775803,
0.01526645664125681,
-0.029108062386512756,
-0.022777458652853966,
0.04670504480600357,
-0.027434956282377243,
-0.02709817700088024,
0.038590207695961,
0.07455983757972717,
0.02903556264936924,
-0.022819427773356438,
-0.034815240651369095,
0.023756129667162895,
-0.04074404388666153,
0.014291846193373203,
-0.007810625713318586,
-0.012973563745617867,
-0.035294532775878906,
-0.04342374578118324,
-0.00009208577102981508,
-0.051865994930267334,
0.012242164462804794,
-0.010674168355762959,
0.05799872800707817,
0.035558875650167465,
-0.02769548073410988,
-0.017872421070933342,
-0.004351580515503883,
0.04447941109538078,
-0.0692075714468956,
-0.0256422720849514,
0.016158882528543472,
-0.02282799780368805,
-0.08651354908943176,
0.20491965115070343,
-0.05396979674696922,
0.024999335408210754,
0.04684223607182503,
-0.017199639230966568,
0.00964658334851265,
-0.02199803851544857,
-0.002863704925402999,
0.00827630702406168,
-0.0035920303780585527,
0.018583783879876137,
-0.02774006873369217,
-0.0047577968798577785,
0.026718586683273315,
-0.028332706540822983,
-0.006484867073595524,
0.036183375865221024,
0.06003139540553093,
0.05597369372844696,
-0.000030001143386471085,
-0.030499054118990898,
0.00608161510899663,
0.024725645780563354,
0.01782931759953499,
-0.05160515755414963,
0.02661222219467163,
-0.1267707347869873,
0.03592833876609802,
0.12367448210716248,
0.04187918081879616,
0.06092390790581703,
0.057322125881910324,
0.01920860819518566,
-0.05134724825620651,
0.003704762551933527,
-0.010821528732776642,
0.04567672312259674,
0.018835769966244698,
0.014704274944961071,
0.06386193633079529,
-0.025641435757279396,
-0.025330787524580956,
-0.11355908215045929,
-0.04805793613195419,
-0.08870768547058105,
-0.024877777323126793,
0.08316431939601898,
-0.04612481966614723,
0.02816358208656311,
-0.042759187519550323,
-0.005324887111783028,
-0.03205157816410065,
0.04268341138958931,
-0.04305211082100868,
-0.003573785303160548,
-0.005640050861984491,
0.031805962324142456,
0.006461679469794035,
0.05473050847649574,
-0.05298018455505371,
0.02024099975824356,
0.012716933153569698,
-0.04565635696053505,
-0.03054393269121647,
0.13898904621601105,
0.052256494760513306,
-0.06010299175977707,
-0.011682984419167042,
0.003453593235462904,
-0.0025111637078225613,
-0.03997647389769554,
0.00015529300435446203,
0.024758268147706985,
-0.09598615020513535,
0.020483488216996193,
0.08327332884073257,
0.006924724671989679,
-0.011885734274983406,
0.0055951992981135845,
0.01436772383749485,
-0.008417320437729359,
0.03819963335990906,
-0.006219691596925259,
-0.03314949572086334,
0.08461910486221313,
0.0267665833234787,
-0.022715546190738678,
-0.021030506119132042,
-0.04454166442155838,
0.021293895319104195,
0.07400402426719666,
-0.06282535195350647,
-0.001681551686488092,
-0.05387962982058525,
0.016556184738874435,
-0.02635110728442669,
-0.0005800295039080083,
0.006771097891032696,
-0.010164303705096245,
0.013175435364246368,
-0.02219110168516636,
0.11697451770305634,
0.028256744146347046,
-0.04889978840947151,
0.025047924369573593,
-0.00823504664003849,
0.05801874026656151,
-0.006934724282473326,
-0.012527062557637691,
0.04129549860954285,
0.037496309727430344,
-0.023823916912078857,
0.02719384990632534,
0.05759980157017708,
-0.018314870074391365,
-0.0412813164293766,
0.0764918327331543,
-0.008210768923163414,
0.028096554800868034,
0.04963088035583496,
0.0701725110411644,
0.020156262442469597,
-0.05332586169242859,
-0.05550776794552803,
-0.24877336621284485,
-0.005061725154519081,
-0.009296577423810959,
-0.03908105939626694,
0.01619447022676468,
-0.053208645433187485,
0.009209887124598026,
-0.025275791063904762,
0.019781310111284256,
0.06114400178194046,
0.0662955790758133,
0.00424692640081048,
-0.020641464740037918,
0.04796377196907997,
-0.03237077593803406,
0.041601039469242096,
0.020022302865982056,
0.012057146057486534,
0.0012649500276893377,
-0.05692454054951668,
0.012801123782992363,
0.029568322002887726,
-0.01038135215640068,
-0.02656491845846176,
0.009853653609752655,
-0.0200984887778759,
0.16364367306232452,
0.08139647543430328,
-0.02577003464102745,
-0.03475228697061539,
0.05195799469947815,
0.020406322553753853,
-0.015376375056803226,
-0.13305656611919403,
0.038937393575906754,
0.002935234224423766,
0.06183131784200668,
-0.0294222179800272,
-0.020424099639058113,
-0.04751601442694664,
0.037596896290779114,
0.05328309163451195,
-0.001218145596794784,
-0.021859237924218178,
-0.009949448518455029,
-0.05398616939783096,
-0.0328889936208725,
0.056258030235767365,
-0.07930559664964676,
0.04240274429321289,
0.011289707385003567,
0.004626164678484201,
0.02082107402384281,
0.027958961203694344,
0.03912164643406868,
-0.052502185106277466,
-0.12342356890439987,
0.013056749477982521,
-0.040190160274505615,
0.031483862549066544,
-0.018228396773338318,
-0.001841384102590382,
0.020345522090792656,
-0.05311087146401405,
0.016599927097558975,
0.03459411486983299,
-0.017249038442969322,
-0.03163383528590202,
0.009405551478266716,
-0.02048685774207115,
-0.015640947967767715,
0.06656762957572937,
-0.016371794044971466,
-0.048447977751493454,
0.050902191549539566,
0.007069510407745838,
0.0034047169610857964,
-0.04353158175945282,
-0.006501561030745506,
-0.08629278093576431,
0.0441882498562336,
-0.013111460022628307,
0.06559770554304123,
0.04514818266034126,
0.02538945898413658,
0.01556972973048687,
0.03987014666199684,
-0.03489123284816742,
0.023515433073043823,
-0.06062713637948036,
0.030184157192707062,
-0.014586597681045532,
-0.056052856147289276,
-0.03934077173471451,
0.029511230066418648,
-0.006916277576237917,
-0.3121669590473175,
0.027426864951848984,
0.020355068147182465,
-0.014293094165623188,
-0.024531418457627296,
-0.006034830119460821,
0.03087213635444641,
0.004596512299031019,
-0.008643368259072304,
0.05172782018780708,
0.020335353910923004,
0.027228256687521935,
0.005478469654917717,
0.00939194206148386,
-0.024253586307168007,
-0.0042197019793093204,
-0.01403012964874506,
-0.0379391685128212,
0.10844230651855469,
-0.044546496123075485,
0.04262218996882439,
0.02551017515361309,
0.20284251868724823,
0.006824109703302383,
0.0020859376527369022,
0.04625613987445831,
-0.044015489518642426,
0.011876343749463558,
-0.0369180366396904,
0.004159900359809399,
0.05024399980902672,
0.001305114128626883,
0.07578082382678986,
-0.04691695794463158,
0.007209102623164654,
0.027006827294826508,
-0.038495611399412155,
0.039995379745960236,
0.026295678690075874,
-0.045338038355112076,
-0.08226586133241653,
0.016376353800296783,
-0.03610612079501152,
0.0023718473967164755,
0.10561072826385498,
-0.016025476157665253,
-0.03658805787563324,
-0.044135451316833496,
0.003149292664602399,
-0.006070299074053764,
-0.04925628378987312,
-0.013404462486505508,
-0.004741355776786804,
0.004222602117806673,
0.026530425995588303,
0.04876098036766052,
-0.05612391605973244,
-0.04378914833068848,
-0.053023554384708405,
-0.03653886914253235,
-0.047988638281822205,
-0.04911765828728676,
0.018438022583723068,
0.0033307194244116545,
0.034657012671232224
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | ## Prerequisites
- App Services application (e.g., application-0). Ensure linkage to the cluster with the Airbnb data.
- OpenAI account with API access.
![Open AI Key
### Secrets and Values
1. Navigate to your App Services application.
2. Under "Values," create a secret named `openAIKey` with your OPEN AI API key.
3. Create a linked value named OpenAIKey and link to the secret.
## The trigger code
The provided trigger listens for changes in the sample_airbnb.listingsAndReviews collection. Upon detecting a new review, it samples up to 50 reviews, sends them to OpenAI's API for summarization, and updates the original document with the summarized content and tags.
Please notice that the trigger reacts to updates that were marked with `"process" : false` flag. This field indicates that there were no summary created for this batch of reviews yet. | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.01802649348974228,
-0.03896863013505936,
-0.004243589472025633,
-0.03542868047952652,
0.025339286774396896,
0.05924767628312111,
0.02433825097978115,
0.028019333258271217,
0.011712748557329178,
-0.0223247017711401,
-0.011218799278140068,
-0.0760888084769249,
0.009846837259829044,
0.08673348277807236,
0.014031164348125458,
0.004166781436651945,
-0.0036479078698903322,
-0.030477873980998993,
-0.011406146921217442,
0.042369578033685684,
0.026303937658667564,
-0.00555499829351902,
0.02736741676926613,
-0.045277491211891174,
0.012002442963421345,
0.03551030904054642,
-0.046138424426317215,
-0.014489355497062206,
-0.06812554597854614,
-0.18071050941944122,
-0.05024458467960358,
-0.04784328117966652,
0.06399117410182953,
-0.015144563280045986,
0.02088591270148754,
-0.008603121154010296,
-0.020527280867099762,
0.022046370431780815,
-0.033269137144088745,
0.02317359670996666,
0.05876413360238075,
0.011449131183326244,
0.008907574228942394,
-0.062199175357818604,
-0.0013334676623344421,
-0.03515695407986641,
-0.0006374628283083439,
0.039497144520282745,
-0.02102643810212612,
-0.02608826383948326,
0.03708275035023689,
-0.05978168174624443,
-0.03821225091814995,
-0.008227396756410599,
0.04120766371488571,
0.03184019401669502,
0.008929395116865635,
0.02300865203142166,
0.038698166608810425,
0.08027838170528412,
0.08113003522157669,
0.04729108139872551,
-0.17509356141090393,
0.08803015947341919,
0.08757328987121582,
0.07198555767536163,
-0.06481370329856873,
-0.023623939603567123,
0.04190688207745552,
0.012527256272733212,
-0.057320114225149155,
0.041062209755182266,
0.04128122329711914,
0.02659524418413639,
0.021466730162501335,
0.015999235212802887,
-0.018493229523301125,
-0.015465609729290009,
0.004943282343447208,
0.020349053665995598,
-0.044989507645368576,
-0.043062932789325714,
-0.02298278920352459,
0.003876374801620841,
-0.04956740140914917,
-0.012967274524271488,
0.017029453068971634,
-0.028286665678024292,
0.04231425002217293,
-0.0007289025234058499,
-0.018489424139261246,
-0.045626867562532425,
-0.012560851871967316,
0.028213398531079292,
-0.07264155149459839,
-0.010819126851856709,
0.011927861720323563,
-0.01725088432431221,
-0.06745391339063644,
0.21831145882606506,
-0.05935465916991234,
0.023791901767253876,
0.00473343301564455,
-0.01414005272090435,
0.025652943179011345,
-0.0838601291179657,
0.02274210937321186,
-0.01644844003021717,
0.01561114750802517,
0.05594789236783981,
-0.034926075488328934,
-0.014055327512323856,
0.047848474234342575,
-0.028923388570547104,
0.03152645379304886,
0.0498892106115818,
0.05879078432917595,
0.06358187645673752,
0.004797175992280245,
-0.015651842579245567,
-0.004144492093473673,
0.00024799996754154563,
0.02168973907828331,
-0.022741345688700676,
-0.006728982552886009,
-0.060166895389556885,
0.07568279653787613,
0.0826311782002449,
-0.005345598328858614,
0.060022566467523575,
0.05674458295106888,
0.013511446304619312,
-0.08977818489074707,
0.004631095100194216,
0.00820054579526186,
0.03940806910395622,
0.0243186354637146,
0.016420017927885056,
0.04427483677864075,
-0.024474818259477615,
-0.08340572565793991,
-0.04703540354967117,
0.01519345585256815,
-0.0899100974202156,
-0.026688681915402412,
0.14531473815441132,
-0.002997768111526966,
0.05316225439310074,
-0.052727002650499344,
-0.036821313202381134,
0.014834541827440262,
0.04384782910346985,
-0.051317304372787476,
-0.05468029901385307,
0.007296423893421888,
0.029645919799804688,
0.026922130957245827,
0.0888754203915596,
-0.023302383720874786,
0.0388985276222229,
-0.018196379765868187,
-0.08017821609973907,
-0.050967272371053696,
0.11076948046684265,
0.027247557416558266,
-0.10424261540174484,
-0.009947799146175385,
0.02237711101770401,
-0.02711396850645542,
-0.011337014846503735,
0.036606237292289734,
0.049112919718027115,
-0.07190603762865067,
0.03345741704106331,
0.057977501302957535,
-0.018849333748221397,
0.010072348639369011,
0.019640151411294937,
0.009039638563990593,
-0.010194753296673298,
-0.004058660473674536,
-0.036728087812662125,
-0.06084124743938446,
0.08445572853088379,
0.041714929044246674,
-0.054991282522678375,
-0.028810011222958565,
-0.0639372244477272,
0.025493569672107697,
0.027607515454292297,
-0.07757475227117538,
-0.008092572912573814,
-0.03279512748122215,
0.028936175629496574,
-0.02159530483186245,
-0.04228920489549637,
-0.018720146268606186,
-0.014614485204219818,
0.012600960209965706,
-0.06033440679311752,
0.06563792377710342,
0.015996647998690605,
-0.04631106182932854,
0.029377058148384094,
0.010021745227277279,
0.03112543374300003,
-0.010145323351025581,
-0.008707035332918167,
0.061776891350746155,
0.005717504769563675,
-0.02116347663104534,
0.02806796133518219,
0.009252035990357399,
-0.015077359974384308,
-0.026072196662425995,
0.0010846431832760572,
0.0039029924664646387,
0.014320735819637775,
0.02090124972164631,
0.057737089693546295,
0.02574131079018116,
-0.002512923674657941,
-0.028560612350702286,
-0.2380126267671585,
-0.0013608346926048398,
0.006022075656801462,
-0.04211058467626572,
-0.0032736121211200953,
-0.06185617670416832,
0.012268492951989174,
-0.021037494763731956,
0.003957999404519796,
0.0812806561589241,
0.11312779784202576,
-0.008933699689805508,
0.002946719527244568,
0.06063570827245712,
-0.011030328460037708,
0.053035441786050797,
0.011641314253211021,
0.04416387528181076,
-0.0379096157848835,
0.0260260421782732,
0.019540773704648018,
0.03288211673498154,
0.023697972297668457,
-0.07655319571495056,
0.020811328664422035,
-0.046590521931648254,
0.1954270303249359,
-0.004439463373273611,
0.03156537562608719,
-0.03585968539118767,
0.04410548508167267,
0.025842512026429176,
-0.020570291206240654,
-0.1655258983373642,
0.015569236129522324,
0.04281504079699516,
0.043848227709531784,
0.03702375292778015,
-0.04258731007575989,
-0.03172871842980385,
-0.01938280090689659,
0.06144198402762413,
-0.01420647744089365,
-0.0834597647190094,
-0.03072812594473362,
-0.03560662642121315,
-0.03944428265094757,
-0.0004982016980648041,
-0.08121111243963242,
-0.003067869460210204,
-0.0011608835775405169,
0.008102252148091793,
0.043448783457279205,
0.04297029599547386,
-0.02339506708085537,
-0.05548056587576866,
-0.06367287784814835,
0.028406202793121338,
-0.0276480745524168,
0.030139930546283722,
0.007790152449160814,
-0.028812067583203316,
-0.01571892388164997,
-0.05667291581630707,
0.08643783628940582,
-0.01842845417559147,
-0.027524784207344055,
0.015339406207203865,
0.021398646757006645,
-0.06204511970281601,
-0.03400101140141487,
0.06302151083946228,
-0.029188117012381554,
0.01207065861672163,
0.05694779381155968,
-0.007286142557859421,
0.007186575792729855,
-0.06227656081318855,
-0.02043166011571884,
-0.04520479217171669,
0.026071419939398766,
-0.03187418729066849,
0.012481293641030788,
0.020898526534438133,
0.03396611660718918,
0.06096627563238144,
0.034545380622148514,
0.006113494746387005,
0.021863950416445732,
-0.03561881557106972,
-0.007865557447075844,
0.018325870856642723,
-0.05626401677727699,
-0.0016768061323091388,
0.030887886881828308,
0.00805504061281681,
-0.30489078164100647,
0.01314031146466732,
-0.004482088144868612,
0.025338908657431602,
0.00848217774182558,
0.013323076069355011,
0.03858798369765282,
0.0038364368956536055,
-0.0714210644364357,
0.02837987057864666,
0.005402494687587023,
0.0048578279092907906,
-0.014591658487915993,
-0.04483062028884888,
0.004927836824208498,
0.01815488561987877,
0.0520201250910759,
-0.033495720475912094,
0.020334821194410324,
-0.06732091307640076,
-0.00657240767031908,
0.05337141081690788,
0.2302224338054657,
-0.011616485193371773,
0.021825147792696953,
0.02321527898311615,
-0.006116754841059446,
0.021219931542873383,
0.04642309248447418,
-0.029342185705900192,
0.048884663730859756,
-0.02315404638648033,
0.055978208780288696,
-0.019824732095003128,
0.07084361463785172,
0.028852714225649834,
-0.033244144171476364,
0.04214802011847496,
0.06253758817911148,
0.012557042762637138,
-0.027478070929646492,
-0.004871553275734186,
-0.008676417171955109,
0.046776797622442245,
0.05892984941601753,
-0.040813226252794266,
-0.06404493004083633,
-0.036694787442684174,
0.009991960600018501,
0.006920890416949987,
-0.03159690275788307,
-0.06883613765239716,
-0.02473052591085434,
0.005888038780540228,
0.0308793094009161,
0.062120676040649414,
-0.05504105985164642,
-0.016723817214369774,
-0.05487603694200516,
-0.008041457273066044,
-0.007853987626731396,
-0.08127798140048981,
0.03255319967865944,
0.002323440508916974,
0.01737217605113983
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | Example of a review update operation that will fire this trigger:
```javascript
listingsAndReviews.updateOne({"_id" : "1129303"}, { $push : { "reviews" : new_review } , $set : { "process" : false" }});
```
### Sample reviews function
To prevent overloading the API with a large number of reviews, a function sampleReviews is defined to randomly sample up to 50 reviews:
```javscript
function sampleReviews(reviews) {
if (reviews.length <= 50) {
return reviews;
}
const sampledReviews = ];
const seenIndices = new Set();
while (sampledReviews.length < 50) {
const randomIndex = Math.floor(Math.random() * reviews.length);
if (!seenIndices.has(randomIndex)) {
seenIndices.add(randomIndex);
sampledReviews.push(reviews[randomIndex]);
}
}
return sampledReviews;
}
``` | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.09217647463083267,
-0.021917041391134262,
0.02973153442144394,
-0.03574100881814957,
0.0037330961786210537,
0.045699745416641235,
0.02375026047229767,
0.04615376517176628,
0.03743452578783035,
-0.02945530228316784,
-0.020444029942154884,
0.004793725907802582,
-0.00028507609385997057,
0.047485120594501495,
-0.007940123789012432,
-0.025449104607105255,
-0.021243570372462273,
-0.012475226074457169,
-0.0699862539768219,
-0.013088800013065338,
0.042831163853406906,
0.0021758433431386948,
-0.014575054869055748,
-0.0645737275481224,
0.010308267548680305,
0.02660398744046688,
-0.0426623560488224,
-0.008088703267276287,
-0.07175824791193008,
-0.2247321456670761,
-0.03409657999873161,
-0.07779476791620255,
0.031584955751895905,
-0.05193047225475311,
-0.012415778823196888,
-0.019976671785116196,
-0.025976598262786865,
0.02923499047756195,
-0.030072269961237907,
0.07534939050674438,
0.06311415135860443,
0.03353377431631088,
-0.036869436502456665,
-0.09224501997232437,
-0.050244659185409546,
-0.04751376435160637,
-0.015776915475726128,
-0.03217494860291481,
-0.019553586840629578,
0.007865636609494686,
0.013948368839919567,
-0.06761880964040756,
0.026143601164221764,
-0.027065832167863846,
0.052431486546993256,
0.017751745879650116,
0.009271309711039066,
0.06073126196861267,
0.052336253225803375,
0.033208537846803665,
0.07971804589033127,
0.02278807759284973,
-0.127580463886261,
0.07258307188749313,
0.04786764830350876,
0.040042802691459656,
-0.040256839245557785,
-0.04142626002430916,
0.010209803469479084,
0.06981770694255829,
-0.028929980471730232,
0.04508860409259796,
0.020765583962202072,
0.07643774151802063,
0.014130440540611744,
-0.05515994504094124,
-0.01625516451895237,
-0.003062950912863016,
0.010179414413869381,
0.059245891869068146,
-0.026993781328201294,
-0.08647973835468292,
-0.010958099737763405,
-0.041410718113183975,
0.005892799235880375,
-0.060656528919935226,
0.03734279051423073,
-0.02582252211868763,
0.08883586525917053,
0.0528113916516304,
-0.012297756969928741,
0.010102500207722187,
0.004711255431175232,
0.020624103024601936,
-0.07916577905416489,
-0.015023255720734596,
0.016212223097682,
0.014771927148103714,
-0.060627590864896774,
0.18833942711353302,
-0.041582077741622925,
0.01786588318645954,
0.011794322170317173,
-0.022241169586777687,
0.02097221650183201,
-0.05513298511505127,
-0.0020340937189757824,
0.0007977612549439073,
-0.007648366503417492,
-0.007753029000014067,
-0.02493153139948845,
-0.027970654889941216,
0.042891114950180054,
-0.04306451231241226,
0.018252946436405182,
0.04997922480106354,
0.0755087286233902,
0.02398611791431904,
0.010837000794708729,
-0.03675612062215805,
0.07474467903375626,
0.016346292570233345,
0.04335543140769005,
-0.029736552387475967,
0.02578224241733551,
-0.024897869676351547,
0.057330112904310226,
0.12355068325996399,
-0.006506682373583317,
0.06515335291624069,
0.041314590722322464,
0.011739884503185749,
-0.09251278638839722,
-0.012074204161763191,
0.00964083056896925,
0.03121207468211651,
-0.011072280816733837,
0.015487886033952236,
0.05579577013850212,
0.013035084120929241,
-0.05608025938272476,
-0.03756016865372658,
-0.014891030266880989,
-0.1199033260345459,
-0.023920990526676178,
0.14125730097293854,
-0.01784425601363182,
0.07626306265592575,
-0.022754449397325516,
-0.023463381454348564,
-0.0014380782376974821,
0.06580062955617905,
-0.0765605941414833,
-0.048397619277238846,
-0.026805106550455093,
0.027530474588274956,
-0.0008233989938162267,
0.061508145183324814,
-0.01866152323782444,
0.009342136792838573,
-0.03946748003363609,
-0.0039580571465194225,
-0.008885846473276615,
0.05198793113231659,
0.003388717770576477,
-0.05431104078888893,
-0.016470547765493393,
0.010979961603879929,
0.015349139459431171,
-0.04825776442885399,
-0.017513317987322807,
0.03110312484204769,
-0.07378412038087845,
-0.019126910716295242,
0.07041292637586594,
-0.015013156458735466,
-0.01829412393271923,
0.002286662580445409,
0.03067222237586975,
0.0037697600200772285,
0.03334100544452667,
-0.04923252388834953,
-0.05932307988405228,
0.07471668720245361,
0.007425002753734589,
-0.06276979297399521,
0.0020557374227792025,
-0.047855183482170105,
0.04929781332612038,
0.07878412306308746,
-0.02865765616297722,
-0.0018730524461716413,
0.002050968585535884,
-0.022567931562662125,
-0.015848562121391296,
-0.05557692050933838,
-0.0457751601934433,
-0.0073911710642278194,
0.017531991004943848,
-0.04148399457335472,
0.05953707545995712,
0.015976177528500557,
-0.019826706498861313,
0.012780139222741127,
-0.0009053584653884172,
0.05172070115804672,
-0.003267361083999276,
0.0011388249695301056,
0.0370187908411026,
0.01892123930156231,
-0.06625887006521225,
0.03174419701099396,
0.06071733683347702,
0.00951051339507103,
-0.01503518782556057,
-0.012012770399451256,
-0.043496277183294296,
0.022369928658008575,
0.047857530415058136,
0.01216793805360794,
0.06245148181915283,
-0.03965812176465988,
-0.005368456244468689,
-0.25740182399749756,
-0.02371976338326931,
0.017926236614584923,
-0.011639725416898727,
0.020405158400535583,
-0.04156210646033287,
0.02151607908308506,
-0.011126640252768993,
-0.020194806158542633,
0.07731259614229202,
0.048830896615982056,
-0.01600337214767933,
-0.005123564042150974,
0.02574792318046093,
0.0073777479119598866,
0.039729613810777664,
0.0018960604211315513,
0.000686112092807889,
-0.00932577159255743,
0.0006433518137782812,
-0.00804485846310854,
0.029293475672602654,
-0.023514045402407646,
-0.0696370080113411,
0.032220836728811264,
-0.011882704682648182,
0.19930139183998108,
0.04619966819882393,
-0.007095274515450001,
-0.05189310386776924,
0.05511702597141266,
-0.02265246957540512,
0.02554824762046337,
-0.04630821570754051,
0.004180917516350746,
0.05605154111981392,
0.005411460995674133,
0.03226877376437187,
-0.013615360483527184,
0.03396700695157051,
-0.04642258584499359,
0.007896975614130497,
0.0053180307149887085,
-0.06856212764978409,
-0.020139440894126892,
-0.04289501905441284,
-0.0364401750266552,
0.030586404725909233,
-0.04653627425432205,
0.013924715109169483,
0.02300143614411354,
-0.02895762212574482,
0.08317307382822037,
0.02528463676571846,
0.00165563786868006,
-0.011668349616229534,
-0.06371986120939255,
0.01816137693822384,
-0.013975391164422035,
0.028641624376177788,
-0.02350645884871483,
-0.025747831910848618,
-0.004902593791484833,
-0.03349592536687851,
0.07205939292907715,
0.004298421088606119,
0.04672194644808769,
-0.02164672687649727,
0.015685196965932846,
-0.045963071286678314,
-0.045899827033281326,
0.08411529660224915,
-0.02956746704876423,
0.020727811381220818,
0.02368517965078354,
0.05415266007184982,
0.006575938779860735,
-0.035467542707920074,
-0.0282608475536108,
-0.03245944529771805,
0.057179052382707596,
0.007240314036607742,
0.006157088093459606,
0.03647718206048012,
-0.01533431001007557,
0.0030164269264787436,
0.030508683994412422,
0.021506216377019882,
0.0059079378843307495,
-0.04532165080308914,
-0.03521521016955376,
0.027941713109612465,
-0.0605512410402298,
-0.020871231332421303,
0.03355919569730759,
-0.011656616814434528,
-0.321175217628479,
-0.005457086488604546,
0.013217487372457981,
0.024406882002949715,
0.018482109531760216,
0.023651106283068657,
0.0001299177820328623,
0.019373752176761627,
-0.04473475366830826,
0.049491316080093384,
-0.03427230566740036,
0.06027483195066452,
0.022415610030293465,
0.011047499254345894,
0.010691298171877861,
0.05209321156144142,
-0.011752850376069546,
-0.02792169898748398,
0.07387495785951614,
-0.07389748096466064,
0.04677031189203262,
0.02958201803267002,
0.25720855593681335,
0.025534652173519135,
0.022131843492388725,
0.05408031865954399,
-0.018921976909041405,
0.020681731402873993,
0.050229549407958984,
-0.021164163947105408,
0.0085824653506279,
0.02064410224556923,
0.0715475082397461,
-0.06282845884561539,
0.04419594258069992,
0.013142585754394531,
-0.03969031944870949,
0.07070142775774002,
0.02861141972243786,
-0.004832865670323372,
-0.03543425351381302,
-0.0020906582940369844,
-0.0064340615645051,
0.008183404803276062,
0.11474262177944183,
-0.04023898392915726,
-0.07563026994466782,
-0.04564556106925011,
-0.02465924806892872,
0.04491497203707695,
-0.08133848756551743,
-0.033988095819950104,
0.0057878619991242886,
-0.012493669055402279,
0.024229522794485092,
0.029930677264928818,
0.004774225410073996,
-0.0461718924343586,
-0.06552919000387192,
-0.018492911010980606,
-0.00926276110112667,
-0.07755199074745178,
0.0127804484218359,
0.03558782488107681,
-0.021622350439429283
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | return sampledReviews;
}
```
### Main trigger logic
The main trigger logic is invoked when an update change event is detected with a `"process" : false` field.
```javascript
exports = async function(changeEvent) {
// A Database Trigger will always call a function with a changeEvent.
// Documentation on ChangeEvents: https://www.mongodb.com/docs/manual/reference/change-events
// This sample function will listen for events and replicate them to a collection in a different Database
function sampleReviews(reviews) {
// Logic above...
if (reviews.length <= 50) {
return reviews;
}
const sampledReviews = [];
const seenIndices = new Set();
while (sampledReviews.length < 50) {
const randomIndex = Math.floor(Math.random() * reviews.length);
if (!seenIndices.has(randomIndex)) {
seenIndices.add(randomIndex);
sampledReviews.push(reviews[randomIndex]);
}
} | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.07496263831853867,
-0.0022931282874196768,
0.015449314378201962,
-0.032833877950906754,
0.0274550449103117,
0.023118797689676285,
0.040175266563892365,
0.06100309640169144,
0.019930480048060417,
-0.014482250437140465,
-0.013135907240211964,
-0.04342693090438843,
0.0036264185328036547,
0.047674015164375305,
-0.02095816656947136,
0.002703540027141571,
-0.01807858981192112,
-0.029787622392177582,
-0.054402049630880356,
-0.018537817522883415,
0.025597235187888145,
-0.01623210869729519,
-0.007547144778072834,
-0.04344843327999115,
0.024264786392450333,
0.04574121907353401,
-0.02343820221722126,
-0.018024537712335587,
-0.04892485588788986,
-0.201643705368042,
0.004162245895713568,
-0.07264216989278793,
0.052506789565086365,
-0.040060415863990784,
0.028708696365356445,
-0.03929087147116661,
-0.026130525395274162,
0.018791355192661285,
-0.01616848260164261,
0.053473662585020065,
0.03630411624908447,
0.014896911568939686,
-0.017054758965969086,
-0.10572299361228943,
-0.02843661420047283,
-0.07110124081373215,
0.014137199148535728,
-0.028764739632606506,
-0.0037981951609253883,
0.024997157976031303,
-0.023311275988817215,
-0.044306106865406036,
-0.0014175660908222198,
-0.039604302495718,
0.03213300555944443,
0.022547973319888115,
0.018557891249656677,
0.023029720410704613,
0.07583139091730118,
0.011393454857170582,
0.06795749068260193,
0.02980867587029934,
-0.19807907938957214,
0.05515174940228462,
0.021751802414655685,
0.05736469477415085,
-0.05721746012568474,
-0.04458491504192352,
0.013509864918887615,
0.030797503888607025,
-0.031935662031173706,
0.03050854802131653,
0.008315620012581348,
0.03988949581980705,
0.017581209540367126,
-0.0477352999150753,
0.0034276864025741816,
-0.048898689448833466,
-0.029942477121949196,
0.04593777656555176,
-0.047746721655130386,
-0.0331011526286602,
-0.032292697578668594,
-0.04819203540682793,
0.007647664286196232,
-0.043030329048633575,
0.028709454461932182,
-0.021959854289889336,
0.08678987622261047,
0.052601367235183716,
-0.02029002457857132,
0.004849100951105356,
0.025314942002296448,
0.02367878332734108,
-0.05697169527411461,
-0.016454797238111496,
0.044884443283081055,
0.02223832719027996,
-0.008404476568102837,
0.2225561887025833,
-0.0508568249642849,
0.09141030162572861,
-0.002402417128905654,
0.0006341562257148325,
0.016250362619757652,
-0.05961715057492256,
-0.021025948226451874,
-0.029333090409636497,
0.0002551089564803988,
0.015363156795501709,
0.0006724353297613561,
-0.034513089805841446,
0.0451420322060585,
-0.07880260795354843,
0.03271746635437012,
0.05544019490480423,
0.05529196932911873,
0.062227763235569,
0.010679000057280064,
-0.0070558758452534676,
0.055280156433582306,
0.032746393233537674,
0.06368280202150345,
-0.043703433126211166,
0.06570141017436981,
-0.03786842152476311,
0.041625116020441055,
0.10271148383617401,
0.01521786954253912,
0.05412554740905762,
0.028515508398413658,
-0.005988148972392082,
-0.09826472401618958,
-0.018174435943365097,
0.026360809803009033,
0.0031045011710375547,
0.0017104612197726965,
0.015351771377027035,
0.058333318680524826,
0.006993281189352274,
-0.05766817182302475,
-0.06768467277288437,
-0.022439634427428246,
-0.10863856226205826,
-0.06193459406495094,
0.11520440131425858,
-0.041677944362163544,
0.05964813753962517,
-0.04872995242476463,
-0.014225360006093979,
0.01061604917049408,
0.053489621728658676,
-0.06574176996946335,
-0.03417592495679855,
0.005753057077527046,
0.01704416610300541,
0.015243067406117916,
0.04314130172133446,
-0.05373825877904892,
0.03960990905761719,
-0.02333180420100689,
0.011364265345036983,
0.0037250493187457323,
0.10368924587965012,
0.028381582349538803,
-0.0782671570777893,
-0.003856681054458022,
0.007102642673999071,
-0.003825129009783268,
-0.03436167910695076,
-0.03234032168984413,
0.022711247205734253,
-0.06539502739906311,
-0.010493150912225246,
0.06963307410478592,
-0.00004102628008695319,
-0.032164428383111954,
-0.028759460896253586,
0.014171907678246498,
-0.03320571780204773,
0.04108956456184387,
-0.038515325635671616,
-0.07304202765226364,
0.09573255479335785,
0.017783354967832565,
-0.06904588639736176,
0.022338297218084335,
-0.033873774111270905,
0.0662643313407898,
0.07979460805654526,
-0.029397575184702873,
-0.02799024060368538,
-0.005361609626561403,
0.03825961425900459,
-0.019529571756720543,
-0.04011058807373047,
-0.05087842047214508,
-0.01700548641383648,
0.014819314703345299,
-0.0343700535595417,
0.059727709740400314,
0.01589396595954895,
-0.017133206129074097,
0.02550623193383217,
0.01299163419753313,
0.04996761679649353,
-0.05746567249298096,
0.0007413316052407026,
0.04506829380989075,
0.005852960515767336,
-0.05737406015396118,
0.03353483974933624,
0.034005068242549896,
0.00955498032271862,
-0.027728702872991562,
-0.016299603506922722,
-0.009193995967507362,
0.035618361085653305,
0.020815519616007805,
-0.016747070476412773,
0.04015985503792763,
-0.055129438638687134,
-0.005078641232103109,
-0.25972506403923035,
0.002644042484462261,
0.00035863634548150003,
0.009486228227615356,
0.045801497995853424,
-0.041892196983098984,
0.0012650445569306612,
-0.005616643000394106,
0.010609691962599754,
0.10263623297214508,
0.07194598764181137,
0.018929095938801765,
-0.013069923967123032,
0.005323098506778479,
0.016129594296216965,
0.049254342913627625,
-0.013448280282318592,
0.021941257640719414,
-0.018264247104525566,
-0.0036546699702739716,
-0.024153243750333786,
0.019959257915616035,
-0.004684478044509888,
-0.07664462178945541,
0.037933170795440674,
-0.01594049669802189,
0.21878890693187714,
0.043760672211647034,
-0.008004787378013134,
-0.0382009781897068,
0.04228693246841431,
-0.001046253484673798,
0.023174574598670006,
-0.07887931913137436,
0.04535384476184845,
0.03762592375278473,
0.015495705418288708,
0.043048884719610214,
-0.010541808791458607,
-0.022593025118112564,
-0.007724500261247158,
0.025905758142471313,
0.01778534986078739,
-0.10611838847398758,
-0.052637405693531036,
-0.05147404596209526,
-0.03976066783070564,
0.022142665460705757,
-0.04252907633781433,
0.01278329361230135,
-0.014973876066505909,
-0.033334337174892426,
0.04306114464998245,
-0.0056842598132789135,
-0.02702643908560276,
0.001164979999884963,
-0.08419813215732574,
0.02880089171230793,
-0.047015175223350525,
0.036730386316776276,
-0.02031746879220009,
-0.0039393166080117226,
0.020788118243217468,
-0.04223479703068733,
0.03690194711089134,
-0.004197784699499607,
0.018501322716474533,
-0.013749067671597004,
0.022012919187545776,
-0.032853174954652786,
-0.03806466609239578,
0.06268005818128586,
-0.035560254007577896,
0.022043749690055847,
0.0468054823577404,
0.06061355024576187,
0.001196813303977251,
-0.04630329832434654,
-0.03382441774010658,
-0.047687482088804245,
0.03734448924660683,
0.008528084494173527,
-0.015546031296253204,
0.01904279924929142,
0.007629006169736385,
0.03153424337506294,
0.024697110056877136,
-0.011319203302264214,
-0.009218420833349228,
-0.022722961381077766,
-0.0027144437190145254,
0.022253697738051414,
-0.08418134599924088,
-0.04570277780294418,
0.030845725908875465,
-0.013379332609474659,
-0.27968651056289673,
-0.0018909084610641003,
0.0017903369152918458,
0.06184662505984306,
0.030888009816408157,
0.010326907970011234,
0.027943678200244904,
0.036060310900211334,
-0.04838666692376137,
0.020816657692193985,
0.008094586431980133,
0.03628511354327202,
0.02911214530467987,
0.013241283595561981,
-0.0003100672329310328,
0.038580842316150665,
0.034884508699178696,
-0.05056041106581688,
0.07651234418153763,
-0.05301107093691826,
0.02440408058464527,
0.05953720211982727,
0.24033302068710327,
0.06662867963314056,
0.010180160403251648,
0.006142169237136841,
-0.006133990362286568,
0.00630230363458395,
0.0387791208922863,
-0.011956890113651752,
0.007113437633961439,
-0.004385525360703468,
0.07126495987176895,
-0.05158428102731705,
0.015092143788933754,
0.0471465028822422,
-0.05033038184046745,
0.07384224236011505,
0.034304820001125336,
-0.02254323475062847,
-0.044037461280822754,
-0.009625077247619629,
-0.02326490730047226,
-0.017632707953453064,
0.11283566802740097,
-0.03462710604071617,
-0.08428514003753662,
-0.04090392217040062,
-0.0021161192562431097,
0.040667157620191574,
-0.07153429090976715,
-0.016036638990044594,
0.021809687837958336,
-0.017541643232107162,
0.016499998047947884,
0.039888039231300354,
-0.03858783468604088,
-0.007085135672241449,
-0.04976162686944008,
-0.008788827806711197,
0.04210188239812851,
-0.06754235923290253,
0.02747255004942417,
0.015230474062263966,
0.006723036989569664
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | return sampledReviews;
}
// Access the _id of the changed document:
const docId = changeEvent.documentKey._id;
const doc= changeEvent.fullDocument;
// Get the MongoDB service you want to use (see "Linked Data Sources" tab)
const serviceName = "mongodb-atlas";
const databaseName = "sample_airbnb";
const collection = context.services.get(serviceName).db(databaseName).collection(changeEvent.ns.coll);
// This function is the endpoint's request handler.
// URL to make the request to the OpenAI API.
const url = 'https://api.openai.com/v1/chat/completions';
// Fetch the OpenAI key stored in the context values.
const openai_key = context.values.get("openAIKey"); | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.031809691339731216,
-0.01273814681917429,
0.015823574736714363,
-0.00680987723171711,
0.050974052399396896,
0.03372253477573395,
0.02040598727762699,
0.06981812417507172,
-0.011519516818225384,
0.000307806592900306,
-0.02120952121913433,
-0.056947194039821625,
-0.012161685153841972,
0.060925304889678955,
-0.010835953988134861,
0.011247111484408379,
-0.011471063829958439,
-0.02755378559231758,
-0.04299550876021385,
0.012273651547729969,
0.013118808157742023,
-0.030895309522747993,
0.018571380525827408,
-0.05924880877137184,
0.024718027561903,
0.04404658079147339,
-0.021624401211738586,
-0.04618893563747406,
-0.05494978278875351,
-0.17999114096164703,
-0.011570911854505539,
-0.007399440743029118,
0.07987846434116364,
-0.03145277872681618,
0.041850291192531586,
-0.027825267985463142,
-0.011053187772631645,
0.005353499203920364,
0.011000110767781734,
0.052847255021333694,
0.051561739295721054,
-0.0003537769662216306,
-0.0009798125829547644,
-0.0989837571978569,
-0.03476640582084656,
-0.06597261130809784,
0.009182784706354141,
0.010092373006045818,
0.017621135339140892,
0.013866394758224487,
-0.03049089014530182,
-0.07098471373319626,
0.015743227675557137,
-0.016674982383847237,
0.029291970655322075,
0.025252103805541992,
0.009297432377934456,
0.014852561056613922,
0.05331885442137718,
0.054975710809230804,
0.05428227409720421,
0.04309140890836716,
-0.19172976911067963,
0.056896381080150604,
0.008653108030557632,
0.08910434693098068,
-0.08698095381259918,
-0.0144597003236413,
0.03044041059911251,
-0.006525237113237381,
-0.043080348521471024,
0.026637738570570946,
0.021423090249300003,
0.04021797701716423,
0.012217558920383453,
-0.004374530632048845,
-0.01624738797545433,
-0.020860377699136734,
-0.01265689730644226,
0.02526019886136055,
-0.04207911714911461,
-0.01724781095981598,
-0.027655377984046936,
-0.028592228889465332,
-0.023044107481837273,
-0.050336241722106934,
0.017151392996311188,
-0.05221233889460564,
0.06672387570142746,
0.05154924467206001,
-0.029171036556363106,
-0.029188640415668488,
0.017566753551363945,
0.058628492057323456,
-0.09061633795499802,
-0.02509089931845665,
0.048081446439027786,
0.053212862461805344,
0.028530092909932137,
0.2334432303905487,
-0.08635558933019638,
0.09535431861877441,
0.03438353165984154,
-0.0446711890399456,
0.003524955129250884,
-0.059622544795274734,
-0.019029946997761726,
-0.050206735730171204,
-0.01975741609930992,
0.05194282904267311,
-0.030929062515497208,
-0.015273891389369965,
0.027253057807683945,
-0.025707392022013664,
0.03592824563384056,
0.04238838329911232,
0.05172335356473923,
0.06548035889863968,
-0.006425125058740377,
-0.009595464915037155,
0.01168400701135397,
0.023889819160103798,
0.04942238703370094,
-0.025404617190361023,
0.0396316759288311,
-0.05402592569589615,
0.07480344921350479,
0.0851636603474617,
0.01298057846724987,
0.02827543392777443,
0.052705585956573486,
-0.0018322422401979566,
-0.0858597680926323,
-0.01227512490004301,
0.012563210912048817,
0.020465144887566566,
-0.003094237996265292,
0.010293894447386265,
0.021275391802191734,
0.021381260827183723,
-0.04175903648138046,
-0.07604578137397766,
-0.01340852864086628,
-0.06821862608194351,
-0.06720255315303802,
0.11292827129364014,
-0.0459405779838562,
0.05834844708442688,
-0.031945135444402695,
-0.0435030423104763,
0.05881494656205177,
0.06924419850111008,
-0.07936245948076248,
0.0008523789583705366,
0.015897640958428383,
-0.0024063391610980034,
0.043415408581495285,
0.06538186222314835,
-0.04183708503842354,
0.05549822747707367,
0.004675063770264387,
-0.03834758326411247,
-0.011364771984517574,
0.12034301459789276,
0.053992368280887604,
-0.11287659406661987,
-0.01895863376557827,
0.0037714557256549597,
-0.02062935382127762,
0.007599737495183945,
-0.02187850885093212,
0.016303587704896927,
-0.047328926622867584,
-0.0030180218163877726,
0.09572190046310425,
0.01914766989648342,
-0.03831923007965088,
-0.0057138362899422646,
0.022971082478761673,
-0.047088347375392914,
-0.008301015943288803,
-0.051880206912755966,
-0.08254296332597733,
0.08969958126544952,
0.019389886409044266,
-0.05526884272694588,
0.011049008928239346,
-0.0510280542075634,
0.0294200386852026,
0.08225330710411072,
-0.030819721519947052,
-0.0348614901304245,
0.004460695665329695,
0.04037276282906532,
-0.020624682307243347,
-0.02746335230767727,
-0.06543847918510437,
-0.015430510975420475,
0.034056659787893295,
-0.052837420254945755,
0.07895945757627487,
0.01890033669769764,
-0.028916358947753906,
0.012792798690497875,
-0.005096099805086851,
0.021782828494906425,
-0.018728390336036682,
0.0041205501183867455,
0.0564998984336853,
-0.023286454379558563,
-0.05309305340051651,
0.011157267726957798,
0.010793673805892467,
0.02224847488105297,
0.009030287154018879,
-0.027755049988627434,
0.009121428243815899,
0.007960419170558453,
-0.016224537044763565,
0.014987432397902012,
0.014908455312252045,
-0.08242657035589218,
-0.01616801880300045,
-0.24583186209201813,
0.006271451711654663,
-0.005602109711617231,
-0.00595696410164237,
0.04685549810528755,
-0.060517817735672,
0.026630517095327377,
-0.00354283326305449,
0.018327895551919937,
0.07862052321434021,
0.0824793353676796,
0.037099942564964294,
-0.02049809694290161,
0.0056786201894283295,
0.007595801260322332,
0.06089705601334572,
0.02291620709002018,
-0.004994178656488657,
-0.023531321436166763,
-0.004781022667884827,
-0.009076527319848537,
0.002942122519016266,
0.0020020692609250546,
-0.06799757480621338,
0.0698273703455925,
-0.040578845888376236,
0.2062780261039734,
0.023237772285938263,
0.002274193335324526,
-0.024712394922971725,
0.05311451852321625,
0.005116678308695555,
0.021049359813332558,
-0.1452331840991974,
0.03495350480079651,
0.042503707110881805,
0.03430681675672531,
0.04045886546373367,
0.003519999561831355,
-0.07001601904630661,
-0.003299024421721697,
0.03510104864835739,
0.007441684138029814,
-0.11011064797639847,
-0.04137743264436722,
-0.04560588672757149,
-0.04612895846366882,
-0.007339121773838997,
-0.05746893957257271,
-0.00357953947968781,
-0.03675001114606857,
0.0031896040309220552,
0.02824372798204422,
-0.004454579204320908,
-0.025183621793985367,
-0.020480766892433167,
-0.050728484988212585,
0.030611902475357056,
-0.03494076058268547,
0.05207158252596855,
-0.004187587648630142,
0.00041079637594521046,
0.05936555564403534,
-0.058307498693466187,
0.03486242517828941,
-0.013281792402267456,
-0.005007954780012369,
-0.01710132509469986,
0.028895726427435875,
-0.04814024642109871,
-0.013758184388279915,
0.04493384063243866,
-0.03827877715229988,
0.03360878303647041,
0.04023284465074539,
0.02503342181444168,
0.013113537803292274,
-0.05032692477107048,
-0.026391973719000816,
-0.03049708530306816,
0.000494657491799444,
0.012845508754253387,
0.014741812832653522,
0.010187632404267788,
0.022889534011483192,
0.046172287315130234,
0.030528485774993896,
-0.00992745254188776,
0.007098116911947727,
-0.040957771241664886,
-0.001934807631187141,
0.011720721609890461,
-0.047757890075445175,
-0.06428597867488861,
0.04542666673660278,
0.023724105209112167,
-0.2597205340862274,
0.028469856828451157,
0.004346475005149841,
0.04748014733195305,
-0.0046074106357991695,
0.039559606462717056,
0.016218282282352448,
0.021969320252537727,
-0.03847944363951683,
0.024342942982912064,
0.018533723428845406,
0.034186169505119324,
-0.0018327609868720174,
-0.019525596871972084,
-0.006309062708169222,
0.037374310195446014,
0.05985496565699577,
-0.011100581847131252,
0.05453340709209442,
-0.047165125608444214,
-0.001256259623914957,
0.05829735845327377,
0.2558407783508301,
0.023776568472385406,
0.012772887013852596,
0.008731686510145664,
-0.028633350506424904,
0.037660326808691025,
0.03230682387948036,
-0.031021863222122192,
-0.006099978927522898,
-0.03150782734155655,
0.057403672486543655,
-0.05171917378902435,
0.00322141801007092,
0.057284899055957794,
-0.029106788337230682,
0.033244069665670395,
0.027057666331529617,
-0.04309319332242012,
-0.033021699637174606,
-0.031129997223615646,
-0.03277190029621124,
-0.024918975308537483,
0.10904979705810547,
-0.01825895346701145,
-0.05713467672467232,
-0.0476762056350708,
-0.01245628111064434,
0.037003740668296814,
-0.04250121861696243,
-0.05195068195462227,
-0.006132211070507765,
0.012497691437602043,
0.01535208523273468,
0.050917066633701324,
-0.05210832506418228,
0.014308507554233074,
-0.026155579835176468,
-0.04104843735694885,
0.03685717657208443,
-0.08247459679841995,
0.005081078503280878,
-0.00858709029853344,
0.006305763963609934
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | // Fetch the OpenAI key stored in the context values.
const openai_key = context.values.get("openAIKey");
const reviews = doc.reviews.map((review) => {return {"comments" : review.comments}});
const sampledReviews= sampleReviews(reviews);
// Prepare the request string for the OpenAI API.
const reqString = `Summerize the reviews provided here: ${JSON.stringify(sampledReviews)} | instructions example:\n\n [{"comment" : "Very Good bed"} ,{"comment" : "Very bad smell"} ] \nOutput: {"overall_review": "Overall good beds and bad smell" , "neg_tags" : ["bad smell"], pos_tags : ["good bed"]}. No explanation. No 'Output:' string in response. Valid JSON. `;
console.log(`reqString: ${reqString}`); | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.035808634012937546,
0.0012021007714793086,
0.008661667816340923,
-0.05116145312786102,
0.04451536014676094,
-0.016249194741249084,
0.04040682688355446,
0.04493623226881027,
0.0037132801953703165,
-0.017337320372462273,
-0.04771295562386513,
-0.050985898822546005,
0.03205788880586624,
0.06435735523700714,
0.006542092654854059,
-0.02364509552717209,
-0.02442862279713154,
-0.008656247518956661,
-0.06843738257884979,
0.010062324814498425,
0.053433407098054886,
-0.02470906265079975,
0.003046764060854912,
-0.07318851351737976,
0.030989035964012146,
0.07663746923208237,
-0.03135870769619942,
-0.008009688928723335,
-0.05381106957793236,
-0.21467192471027374,
-0.056475527584552765,
-0.08241884410381317,
0.05054917186498642,
-0.039175089448690414,
0.0038692201487720013,
-0.014345510862767696,
0.01990213803946972,
0.0019497597822919488,
-0.03034207783639431,
0.04060906544327736,
0.028870945796370506,
-0.015299176797270775,
-0.03974011912941933,
-0.07868485897779465,
-0.0005172147648409009,
-0.07496669888496399,
-0.06731380522251129,
-0.01127398107200861,
0.017247064039111137,
0.0038555776700377464,
-0.01981772854924202,
-0.05186447873711586,
0.0020543010905385017,
-0.00782605167478323,
0.05673172324895859,
0.04473264887928963,
-0.012459546327590942,
0.08644115179777145,
0.020348098129034042,
0.04789292439818382,
0.06272811442613602,
0.023201363161206245,
-0.16636809706687927,
0.10294090956449509,
0.057934898883104324,
0.026431502774357796,
-0.029149256646633148,
-0.01032005250453949,
-0.010303769260644913,
-0.003334339242428541,
0.010007904842495918,
0.01778826117515564,
0.049831073731184006,
0.06180288642644882,
0.0077336858958005905,
0.017250483855605125,
-0.045900359749794006,
-0.031292784959077835,
0.06348620355129242,
0.04940180480480194,
-0.037161361426115036,
-0.05558961629867554,
-0.012243038974702358,
-0.005886853206902742,
0.02347828820347786,
-0.047246187925338745,
-0.01800500974059105,
-0.0314423032104969,
0.05871156230568886,
0.014386569149792194,
-0.024100299924612045,
-0.053261883556842804,
-0.023988688364624977,
0.0177089124917984,
-0.08316702395677567,
-0.01685846410691738,
0.02624685876071453,
0.011167447082698345,
-0.0750422552227974,
0.21568931639194489,
-0.07155884802341461,
0.03380090743303299,
0.027073821052908897,
-0.04442920535802841,
0.025228500366210938,
-0.0544646754860878,
-0.03271399810910225,
-0.05356713756918907,
-0.019041748717427254,
0.016726316884160042,
-0.04324019327759743,
-0.0009936396963894367,
0.010934235528111458,
-0.0204023290425539,
0.01975732110440731,
0.04000239819288254,
0.02831338346004486,
0.0654975101351738,
-0.0036973420064896345,
-0.01575961709022522,
0.030540795996785164,
0.013252384960651398,
-0.009370669722557068,
-0.021872658282518387,
0.024943407624959946,
-0.03374803811311722,
0.02871379815042019,
0.09954696893692017,
0.020930780097842216,
0.030469434335827827,
0.07145453244447708,
-0.023496665060520172,
-0.08965075761079788,
-0.01429604459553957,
-0.0119273466989398,
0.014267987571656704,
0.007046591956168413,
0.014129449613392353,
0.02700602263212204,
0.017486106604337692,
-0.02961505949497223,
-0.0870552510023117,
-0.04919034615159035,
-0.08122788369655609,
-0.047480568289756775,
0.09952659159898758,
-0.02443159557878971,
0.06571250408887863,
-0.022598346695303917,
0.007281531114131212,
-0.0005717459134757519,
0.06378818303346634,
-0.04732225835323334,
-0.026662055402994156,
0.03071269765496254,
0.05156426504254341,
0.004854649771004915,
0.048296183347702026,
-0.024701636284589767,
0.040537457913160324,
-0.03954870253801346,
-0.020184148102998734,
-0.026500249281525612,
0.05311020836234093,
0.03255200386047363,
-0.07882703095674515,
-0.020177286118268967,
0.002496089320629835,
0.021265879273414612,
-0.01946721412241459,
0.03533797711133957,
0.026431435719132423,
-0.07565801590681076,
0.005949556827545166,
0.060508422553539276,
0.021876491606235504,
-0.024843532592058182,
-0.0004464559897314757,
0.01841128058731556,
-0.004433562513440847,
-0.018437830731272697,
-0.022369541227817535,
-0.04756497964262962,
0.021667780354619026,
0.05593964457511902,
-0.045055024325847626,
-0.0221896693110466,
-0.045160748064517975,
0.0006090201786719263,
0.06191789731383324,
-0.01538844034075737,
-0.03872120380401611,
-0.009707480669021606,
0.013359254226088524,
-0.009254857897758484,
-0.023145224899053574,
-0.0053142947144806385,
-0.035378847271203995,
0.015762748196721077,
-0.02682925947010517,
0.12299248576164246,
0.020216191187500954,
-0.018045900389552116,
0.055181898176670074,
-0.01916591078042984,
0.04035378620028496,
0.0006293951300904155,
-0.033884402364492416,
0.02377789095044136,
0.007531552109867334,
-0.055250346660614014,
0.019922463223338127,
0.0026048433501273394,
0.0019277507672086358,
-0.038880493491888046,
-0.045977216213941574,
0.029836108908057213,
-0.019820863381028175,
0.05576664209365845,
0.055505525320768356,
0.006636872421950102,
-0.07360096275806427,
-0.09788259118795395,
-0.23553632199764252,
0.018776115030050278,
0.020614303648471832,
-0.03385580703616142,
0.034505411982536316,
-0.07413984090089798,
0.03439712151885033,
-0.01845068484544754,
0.016505355015397072,
0.06958285719156265,
0.059260766953229904,
0.04445316642522812,
0.015752101317048073,
0.023586180061101913,
0.026617281138896942,
0.041216157376766205,
0.018821246922016144,
0.019852235913276672,
-0.01263263076543808,
0.04364287853240967,
-0.012368885800242424,
0.002530363854020834,
0.002401743782684207,
-0.0667768269777298,
0.03853846713900566,
-0.0456990972161293,
0.23670820891857147,
0.0220283605158329,
0.012928051874041557,
-0.03290722519159317,
0.05277638882398605,
0.010804577730596066,
0.0018266127444803715,
-0.1596531867980957,
0.059207186102867126,
0.006811497267335653,
0.03267352655529976,
0.05786120146512985,
0.011951711028814316,
0.0015107187209650874,
-0.006091003771871328,
0.05906260386109352,
-0.03302455320954323,
-0.037414226680994034,
-0.0065758368000388145,
-0.06192276254296303,
-0.050437625497579575,
0.022081835195422173,
-0.04144863784313202,
0.029735762625932693,
0.00679306173697114,
0.0061306725256145,
0.05096370726823807,
0.05448346212506294,
-0.030252281576395035,
-0.02159392088651657,
-0.03276384621858597,
0.013031796552240849,
-0.01429585088044405,
0.0008041340624913573,
0.0006068708025850356,
-0.03179877996444702,
0.020048124715685844,
-0.052840448915958405,
0.03175727277994156,
0.020926620811223984,
0.023209840059280396,
0.01877167448401451,
0.01869220845401287,
-0.06237669661641121,
-0.04985090345144272,
0.10604202002286911,
-0.02685089036822319,
0.06435120105743408,
0.04951845481991768,
0.04953937232494354,
0.0013455733424052596,
-0.060737140476703644,
0.028421562165021896,
-0.001945367082953453,
0.0483609214425087,
0.016077082604169846,
0.036571890115737915,
0.024745047092437744,
0.03173595666885376,
0.012174674309790134,
0.0010259209666401148,
0.007164166308939457,
0.04773756116628647,
-0.05548686534166336,
0.009207028895616531,
0.009145471267402172,
-0.03651992231607437,
-0.06206773594021797,
0.04079972207546234,
-0.009655837900936604,
-0.2851252853870392,
0.03839446231722832,
0.05246977135539055,
0.015535946935415268,
0.0232937503606081,
0.05120774358510971,
0.02701045572757721,
-0.017925862222909927,
-0.04621010646224022,
0.04112284630537033,
0.004725993610918522,
0.03140214830636978,
-0.013049863278865814,
-0.058375656604766846,
-0.02248426154255867,
0.02467050775885582,
0.0031126008834689856,
-0.01328411977738142,
0.06242814660072327,
-0.05030406266450882,
0.05113959312438965,
0.08485155552625656,
0.2524681091308594,
-0.0126387570053339,
0.0016753340605646372,
0.06462930142879486,
-0.0237992275506258,
0.014589307829737663,
0.08787748217582703,
-0.016325434669852257,
0.030386028811335564,
-0.025893427431583405,
0.09643431007862091,
-0.006667927838861942,
0.03744048997759819,
-0.022199662402272224,
-0.06422994285821915,
0.016812315210700035,
0.027303049340844154,
-0.02133943885564804,
-0.036097653210163116,
-0.024869106709957123,
0.003351581981405616,
-0.01128928828984499,
0.04658767953515053,
-0.03932299092411995,
-0.021543925628066063,
-0.06355620175600052,
-0.0021357289515435696,
-0.008462064899504185,
-0.026738910004496574,
-0.045194223523139954,
0.0029661343432962894,
-0.0021260250359773636,
-0.00688434112817049,
0.04384779557585716,
-0.004759309813380241,
-0.040836840867996216,
-0.034042585641145706,
-0.01349543035030365,
-0.004604360554367304,
-0.08351927250623703,
0.009016389958560467,
0.03473217040300369,
-0.02156486175954342
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | // Call OpenAI API to get the response.
let resp = await context.http.post({
url: url,
headers: {
'Authorization': [`Bearer ${openai_key}`],
'Content-Type': ['application/json']
},
body: JSON.stringify({
model: "gpt-4",
temperature: 0,
messages: [
{
"role": "system",
"content": "Output json generator follow only provided example on the current reviews"
},
{
"role": "user",
"content": reqString
}
]
})
});
// Parse the JSON response
let responseData = JSON.parse(resp.body.text());
// Check the response status.
if(resp.statusCode === 200) {
console.log("Successfully received code.");
console.log(JSON.stringify(responseData)); | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.029451776295900345,
0.01280142180621624,
0.010928797535598278,
-0.06095277518033981,
0.03169967979192734,
0.0031140462961047888,
0.05159224569797516,
0.04979121312499046,
0.022862166166305542,
0.006799749564379454,
-0.01923985779285431,
-0.053314026445150375,
0.02966015599668026,
0.08344605565071106,
0.019519221037626266,
-0.014336186461150646,
0.01528517622500658,
-0.021263498812913895,
-0.07404568791389465,
0.0171582642942667,
0.05345594137907028,
-0.03517456352710724,
-0.005821241531521082,
-0.05505703389644623,
0.006996289826929569,
0.06170468032360077,
-0.02623344399034977,
-0.010072890669107437,
-0.05403856560587883,
-0.15977966785430908,
-0.047418322414159775,
-0.09535489231348038,
0.058972667902708054,
-0.04816729202866554,
-0.0181809663772583,
0.004433201625943184,
0.008909891359508038,
-0.004477485548704863,
-0.046391308307647705,
0.04465703293681145,
0.010294404812157154,
0.002552383579313755,
-0.023062434047460556,
-0.051267556846141815,
0.022648511454463005,
-0.04665297642350197,
-0.04895719140768051,
0.002766154706478119,
-0.0028035284485667944,
-0.04739432409405708,
-0.011384456418454647,
-0.04860090836882591,
0.020228160545229912,
-0.007349548861384392,
0.06505206227302551,
0.02328578196465969,
0.0006001037545502186,
0.07143943756818771,
0.012960365042090416,
0.06162460893392563,
0.048893123865127563,
0.028989367187023163,
-0.18038082122802734,
0.09647081792354584,
0.06635992228984833,
0.04090123996138573,
-0.029370218515396118,
-0.009494530968368053,
0.013181113637983799,
-0.029549693688750267,
0.008420711383223534,
0.02985394559800625,
0.04597119987010956,
0.0225825197994709,
0.002135520102456212,
0.01165156438946724,
-0.012054717168211937,
-0.012327962554991245,
0.04768391326069832,
0.02519652619957924,
-0.020491493865847588,
-0.049255989491939545,
-0.012651997618377209,
0.0055912635289132595,
0.012134077958762646,
-0.03464055433869362,
-0.007523542735725641,
-0.027244796976447105,
0.08411886543035507,
0.006373231299221516,
-0.02674137055873871,
-0.013574917800724506,
-0.03290439024567604,
0.02479214407503605,
-0.11568335443735123,
0.006438185460865498,
0.036254823207855225,
-0.014822394587099552,
-0.06921571493148804,
0.2200525850057602,
-0.06141889840364456,
0.021857373416423798,
0.0263860784471035,
-0.0030453712679445744,
0.01953216828405857,
-0.050567422062158585,
-0.0130853783339262,
-0.03865078091621399,
-0.005207266192883253,
0.03723551705479622,
-0.046822961419820786,
0.019128410145640373,
-0.0042379675433039665,
-0.005656438414007425,
0.009213149547576904,
0.03289595991373062,
0.03464943543076515,
0.04875959828495979,
-0.04665106162428856,
-0.04626767337322235,
0.014134394936263561,
0.0235117357224226,
-0.005890293978154659,
-0.07749806344509125,
0.017105603590607643,
-0.03276018425822258,
0.07628326863050461,
0.09959641098976135,
0.04214171692728996,
0.03538418561220169,
0.08908535540103912,
-0.01036814320832491,
-0.09434347599744797,
-0.04409528523683548,
-0.0017677542055025697,
0.01806870475411415,
0.03348623961210251,
0.0006011787336319685,
0.03165068104863167,
0.011193597689270973,
-0.02435850165784359,
-0.11211646348237991,
-0.033244479447603226,
-0.09012354165315628,
-0.03646180033683777,
0.09766501933336258,
-0.009975283406674862,
0.08063188940286636,
-0.022326726466417313,
-0.011745079420506954,
-0.009421046823263168,
0.0638919398188591,
-0.053525663912296295,
-0.02826024405658245,
0.03131955489516258,
0.04886094480752945,
0.008514740504324436,
0.05677900090813637,
-0.009899419732391834,
0.02296873927116394,
-0.027223963290452957,
-0.04168691486120224,
-0.035828568041324615,
0.0538971871137619,
0.03257858008146286,
-0.09524193406105042,
0.010451927781105042,
0.005099690984934568,
0.003765065921470523,
-0.008816028013825417,
0.013939633034169674,
0.051483798772096634,
-0.07335217297077179,
-0.03141352906823158,
0.060215629637241364,
0.02588365413248539,
-0.012271689251065254,
0.009532662108540535,
0.01793031021952629,
0.021615343168377876,
-0.0051761954091489315,
-0.018559496849775314,
-0.042167890816926956,
0.023580968379974365,
0.049903079867362976,
-0.022107815369963646,
0.028180690482258797,
-0.06398418545722961,
0.020119668915867805,
0.008790316991508007,
-0.03543446213006973,
-0.0205109640955925,
-0.028392450883984566,
0.003431401215493679,
-0.007161548361182213,
-0.04619262367486954,
-0.02619294263422489,
-0.044105563312768936,
0.016204625368118286,
-0.030999090522527695,
0.10342344641685486,
-0.0038059698417782784,
-0.01764032058417797,
0.05769508332014084,
-0.01683713309466839,
0.0662287175655365,
0.0063776131719350815,
-0.023480631411075592,
0.023526940494775772,
0.048836350440979004,
-0.06407126039266586,
0.018757224082946777,
0.02786480076611042,
-0.00041900959331542253,
-0.04655633494257927,
-0.044584423303604126,
0.029646892100572586,
0.03818531334400177,
0.03820657357573509,
0.058344535529613495,
0.012105658650398254,
-0.045243240892887115,
-0.059749264270067215,
-0.21811161935329437,
0.020818287506699562,
0.007272232323884964,
-0.0511062927544117,
-0.005048565100878477,
-0.09676811844110489,
0.009299351833760738,
-0.035734809935092926,
0.037467110902071,
0.07098418474197388,
0.11407451331615448,
0.07255025953054428,
0.0466628223657608,
0.0036802059039473534,
0.029362283647060394,
0.017163526266813278,
-0.00417805602774024,
0.030795754864811897,
0.003220043145120144,
0.0357300341129303,
-0.0005594164249487221,
0.018913106992840767,
0.001670730416662991,
-0.0764218419790268,
0.032614391297101974,
-0.03843587264418602,
0.22846169769763947,
0.02975919470191002,
0.03848829120397568,
-0.007741258945316076,
0.0444621741771698,
0.03665514290332794,
0.002385444939136505,
-0.16668468713760376,
0.048225466161966324,
0.03390636295080185,
0.02247275598347187,
0.02470734715461731,
0.002120191929861903,
-0.019047804176807404,
-0.01101658120751381,
0.05190769582986832,
-0.016660816967487335,
-0.057173728942871094,
0.008156181313097477,
-0.027953214943408966,
-0.05774283409118652,
-0.01750873029232025,
-0.0614561066031456,
0.00951355043798685,
-0.009807334281504154,
-0.01068373117595911,
0.07269258052110672,
0.07863263040781021,
-0.026450594887137413,
-0.021599387750029564,
-0.04842834547162056,
0.03275001421570778,
-0.030693864449858665,
0.022428806871175766,
-0.010275095701217651,
-0.04279819503426552,
0.011348779313266277,
-0.04604417085647583,
0.03421168401837349,
0.024596113711595535,
0.017030484974384308,
0.016047870740294456,
0.019928939640522003,
-0.07158640027046204,
-0.03390219807624817,
0.1113651916384697,
-0.03696160018444061,
0.03738483786582947,
0.049418944865465164,
0.03940574452280998,
0.0023538009263575077,
-0.09071182459592819,
0.0026368722319602966,
0.003935957793146372,
0.03369921073317528,
0.004832716658711433,
0.025303535163402557,
0.01615753397345543,
0.01682909019291401,
0.007732657250016928,
0.010506398044526577,
0.010433158837258816,
0.04785989597439766,
-0.05596904829144478,
-0.012312410399317741,
0.003902598051354289,
-0.011272319592535496,
-0.05342110991477966,
0.03211654722690582,
0.024966221302747726,
-0.28190532326698303,
0.0341440886259079,
-0.00026959404931403697,
0.017666295170783997,
-0.0025003079790621996,
0.04364648833870888,
0.023589110001921654,
-0.011049809865653515,
-0.06439527124166489,
0.05678899586200714,
-0.019500790163874626,
0.042050380259752274,
-0.004679185338318348,
-0.0457148440182209,
-0.013529432006180286,
0.0333670936524868,
-0.023570194840431213,
-0.03836352378129959,
0.02004106715321541,
-0.0803016796708107,
0.03282902017235756,
0.09462062269449234,
0.2629915177822113,
-0.021995659917593002,
0.01783251389861107,
0.054694611579179764,
0.011043647304177284,
0.028214935213327408,
0.06864093244075775,
-0.040285512804985046,
0.023343639448285103,
-0.010185103863477707,
0.08566772192716599,
-0.009517461061477661,
0.03397504612803459,
0.001816856674849987,
-0.03849250078201294,
0.02849218063056469,
-0.013368000276386738,
-0.009795852936804295,
-0.02653464302420616,
-0.03275199607014656,
-0.0036340306978672743,
-0.007728467229753733,
0.04937073215842247,
-0.027952993288636208,
-0.06850773096084595,
-0.05336307734251022,
-0.0031393729150295258,
-0.02232837863266468,
-0.045227017253637314,
-0.07088366895914078,
-0.022260986268520355,
-0.019135059788823128,
0.01442182157188654,
-0.0007632232154719532,
-0.02605997771024704,
-0.023354345932602882,
-0.057890262454748154,
-0.024615978822112083,
0.0076867686584591866,
-0.054060716181993484,
0.0008210928062908351,
0.03259984403848648,
-0.010338679887354374
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | const code = responseData.choices[0].message.content;
// Get the required data to be added into the document
const updateDoc = JSON.parse(code)
// Set a flag that this document does not need further re-processing
updateDoc.process = true
await collection.updateOne({_id : docId}, {$set : updateDoc});
} else {
console.error("Failed to generate filter JSON.");
console.log(JSON.stringify(responseData));
return {};
}
};
```
Key steps include: | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.08430814743041992,
0.01045955065637827,
0.03579709306359291,
-0.03414199873805046,
0.02627354860305786,
0.021485809236764908,
0.008494805544614792,
0.06600920855998993,
-0.008102654479444027,
0.003950087353587151,
-0.019482463598251343,
-0.013794470578432083,
0.023629071190953255,
0.022527389228343964,
-0.015148439444601536,
0.023877223953604698,
-0.0202796570956707,
0.03185230493545532,
-0.08899502456188202,
0.03356648609042168,
0.05685419216752052,
0.007245806977152824,
-0.04599612578749657,
-0.05455289036035538,
0.006015031598508358,
0.055004168301820755,
-0.017152762040495872,
0.029467450454831123,
-0.050227709114551544,
-0.19540253281593323,
-0.04205551743507385,
-0.0872114971280098,
0.021073179319500923,
-0.01884811744093895,
-0.0031191473826766014,
-0.010161707177758217,
-0.000096753123216331,
0.05255022272467613,
-0.02609226480126381,
0.09439882636070251,
0.03633972257375717,
0.0176843348890543,
-0.05207962542772293,
-0.09824810922145844,
-0.04903294891119003,
-0.036815088242292404,
-0.026194917038083076,
-0.04547800123691559,
0.02303892932832241,
-0.033908046782016754,
-0.03600115329027176,
-0.06445889919996262,
0.006806714925915003,
0.002200660528615117,
0.042906880378723145,
0.06446725875139236,
0.027814695611596107,
0.06741641461849213,
0.029256099835038185,
0.04354780912399292,
0.01717512682080269,
0.017522158101201057,
-0.16867005825042725,
0.1261942833662033,
0.03601514548063278,
0.03815913572907448,
-0.0586845763027668,
-0.021941443905234337,
0.032089728862047195,
0.0236663818359375,
-0.0391366071999073,
0.036155734211206436,
0.03619883581995964,
0.056669414043426514,
0.02776128053665161,
-0.03421201929450035,
-0.03409780189394951,
-0.03251248970627785,
0.05320894718170166,
0.07108987867832184,
-0.05693599581718445,
-0.04580895975232124,
-0.03052559122443199,
0.012084722518920898,
0.013716937974095345,
-0.07907617837190628,
-0.023638611659407616,
-0.0362885445356369,
0.04205629229545593,
0.06132756918668747,
-0.04210631549358368,
-0.0214220117777586,
0.001704628113657236,
0.049078915268182755,
-0.10793443769216537,
0.013779871165752411,
-0.004308633040636778,
0.016019921749830246,
-0.013665677048265934,
0.23078490793704987,
-0.031051578000187874,
0.03445883467793465,
0.03517080843448639,
-0.038094066083431244,
-0.018222199752926826,
-0.028122760355472565,
-0.020061369985342026,
-0.02038145251572132,
0.0013018943136557937,
0.022883348166942596,
-0.009741533547639847,
-0.0059862928465008736,
-0.013129571452736855,
-0.020116182044148445,
-0.008418558165431023,
0.050835784524679184,
0.015947379171848297,
0.03435881808400154,
-0.05280079320073128,
-0.010202284902334213,
0.058877404779195786,
0.033515069633722305,
0.04086357355117798,
-0.014959321357309818,
0.038292255252599716,
-0.019017552956938744,
0.08261366188526154,
0.09345933049917221,
0.02065027691423893,
0.0836435928940773,
0.047414105385541916,
0.013378173112869263,
-0.09543617814779282,
-0.007664869539439678,
-0.005195560399442911,
0.009361199103295803,
-0.01026737131178379,
0.01867704465985298,
0.01874762400984764,
0.02094193734228611,
-0.03152536228299141,
-0.06290857493877411,
-0.07607053220272064,
-0.08282303065061569,
-0.01609969697892666,
0.13217119872570038,
-0.011975757777690887,
0.06694307178258896,
-0.04674072191119194,
-0.04335471987724304,
0.0020521667320281267,
0.07326608896255493,
-0.0523340106010437,
-0.021524429321289062,
-0.0038298964500427246,
0.04985745623707771,
0.009318986907601357,
0.00701194629073143,
-0.005476486403495073,
0.018713483586907387,
-0.00933726318180561,
-0.010607321746647358,
-0.011646108701825142,
0.07503805309534073,
0.008689687587320805,
-0.059349413961172104,
-0.010943164117634296,
0.017703775316476822,
0.01569277048110962,
-0.027475599199533463,
-0.014671985991299152,
0.07574731856584549,
-0.06772235035896301,
-0.023841461166739464,
0.07474780082702637,
0.013400711119174957,
-0.013049004599452019,
0.01052200235426426,
0.023018721491098404,
-0.003955338150262833,
0.0065575107000768185,
-0.015663549304008484,
-0.0635470524430275,
0.012388895265758038,
0.03317634388804436,
-0.04199117794632912,
0.02735554799437523,
-0.013231692835688591,
0.026861565187573433,
0.06626734882593155,
0.007725816685706377,
-0.019980227574706078,
-0.005064293742179871,
-0.046227432787418365,
-0.015013178810477257,
-0.05158762261271477,
-0.048386525362730026,
-0.032282810658216476,
0.01855316385626793,
-0.05842471867799759,
0.05780961364507675,
0.0327550545334816,
0.022135596722364426,
0.04788457974791527,
-0.01459088921546936,
0.01531191635876894,
-0.009762722998857498,
0.009727089665830135,
0.05377267301082611,
-0.003737087594345212,
-0.07421942055225372,
0.04953847825527191,
0.06425192207098007,
0.0032276404090225697,
-0.014999737031757832,
-0.03217856585979462,
-0.005916582886129618,
0.022866064682602882,
0.044926755130290985,
0.016980350017547607,
0.024895844981074333,
-0.02802191488444805,
-0.017647771164774895,
-0.23230864107608795,
0.04485008865594864,
-0.009102928452193737,
0.007563994266092777,
0.00017557114188093692,
-0.05629824101924896,
0.024081246927380562,
-0.0023917444050312042,
-0.036062225699424744,
0.08478747308254242,
0.043925873935222626,
0.0065721869468688965,
0.00907156988978386,
0.01771562546491623,
0.011802838183939457,
0.004243056755512953,
0.03752002865076065,
-0.006081041879951954,
-0.01321728527545929,
-0.005293392576277256,
-0.014965666458010674,
0.0009426275501027703,
-0.010311943478882313,
-0.09021476656198502,
0.012088648974895477,
-0.02800561673939228,
0.18949221074581146,
0.04700745642185211,
-0.011468426324427128,
-0.025154290720820427,
0.05723342299461365,
0.02394356206059456,
0.027507446706295013,
-0.096143439412117,
0.014701307751238346,
0.04249688610434532,
-0.04039282724261284,
0.02730817347764969,
0.009449617005884647,
-0.014219542033970356,
0.008946922607719898,
0.011109888553619385,
-0.033717039972543716,
-0.0893472209572792,
0.04151736572384834,
-0.047698166221380234,
-0.05151529982686043,
0.02044294960796833,
-0.027133245021104813,
-0.02491104230284691,
0.02039404585957527,
-0.0003236318298149854,
0.05453143268823624,
0.018749292939901352,
-0.045902252197265625,
-0.03058619238436222,
-0.027194630354642868,
0.024477900937199593,
-0.010381725616753101,
0.03226063400506973,
-0.014856855385005474,
-0.027812883257865906,
0.014080330729484558,
-0.019036689773201942,
0.052890338003635406,
0.024078281596302986,
0.019216161221265793,
-0.04248829185962677,
0.029260776937007904,
-0.06596190482378006,
-0.025744851678609848,
0.05121293663978577,
-0.007505097426474094,
0.03108120709657669,
0.024418054148554802,
0.06354787200689316,
-0.049139250069856644,
-0.06474865972995758,
-0.00821732822805643,
-0.01587340235710144,
0.0567990280687809,
-0.003231337061151862,
0.03270117565989494,
0.013474732637405396,
0.02357933111488819,
0.03908080980181694,
0.0058592637069523335,
0.021402176469564438,
0.0022548355627804995,
-0.06604806333780289,
-0.039596401154994965,
0.0004610845644492656,
-0.03490948677062988,
-0.06114884838461876,
0.01277068629860878,
0.004031540360301733,
-0.3086104094982147,
0.01493913121521473,
0.0025709406472742558,
0.02117012068629265,
0.0015573588898405433,
0.04847218841314316,
0.041330792009830475,
0.0241853054612875,
-0.04449647292494774,
0.029806870967149734,
-0.031057795509696007,
0.05303061753511429,
0.014421972446143627,
-0.030101941898465157,
-0.02034863829612732,
0.06275399029254913,
0.020074624568223953,
-0.030991986393928528,
0.06187678128480911,
-0.06684307754039764,
0.0603334866464138,
0.06048262119293213,
0.2719711363315582,
0.01370170060545206,
0.017418187111616135,
0.034914012998342514,
0.004555501509457827,
0.020763233304023743,
0.07029655575752258,
0.0021648555994033813,
0.004880581982433796,
0.04083884134888649,
0.09470333158969879,
-0.011066692881286144,
0.03762472793459892,
-0.010599485598504543,
-0.07186760753393173,
0.04499191418290138,
0.0006734111811965704,
-0.0511123389005661,
-0.06684937328100204,
0.01612076908349991,
0.020760515704751015,
-0.023360513150691986,
0.07115959376096725,
-0.06334223598241806,
-0.06472337245941162,
-0.08799057453870773,
-0.03247426450252533,
0.009364686906337738,
-0.09644346684217453,
-0.035489462316036224,
0.00774788623675704,
-0.02943464368581772,
0.02114405483007431,
0.010968663729727268,
-0.025660041719675064,
-0.018384143710136414,
-0.03722282871603966,
-0.022775087505578995,
0.026358947157859802,
-0.0537310354411602,
-0.020734112709760666,
0.018084216862916946,
-0.001136653940193355
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | Key steps include:
- API request preparation: Reviews from the changed document are sampled and prepared into a request string for the OpenAI API. The format and instructions are tailored to ensure the API returns a valid JSON with summarized content and tags.
- API interaction: Using the context.http.post method, the trigger sends the prepared data to the OpenAI API.
- Updating the original document: Upon a successful response from the API, the trigger updates the original document with the summarized content, negative tags (neg_tags), positive tags (pos_tags), and a process flag set to true. | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.06425446271896362,
0.015196016989648342,
0.014957580715417862,
-0.04905816540122032,
0.04558635503053665,
0.026605455204844475,
0.02458653226494789,
0.042485110461711884,
0.0024984688498079777,
0.00038978096563369036,
0.0014386388938874006,
-0.04643610119819641,
0.013037458062171936,
0.059097010642290115,
-0.0326484739780426,
-0.010416693054139614,
-0.018172334879636765,
-0.022945353761315346,
-0.05274989455938339,
0.0400126613676548,
0.0351635105907917,
-0.00973927415907383,
0.012603561393916607,
-0.019182877615094185,
0.008114169351756573,
0.05007114261388779,
-0.05101519078016281,
-0.009590447880327702,
-0.04564075171947479,
-0.18064674735069275,
-0.017613893374800682,
-0.07681260257959366,
0.04212891310453415,
-0.034511957317590714,
-0.022739585489034653,
0.003994904924184084,
0.00926225446164608,
0.009265251457691193,
-0.013066691346466541,
0.02068193070590496,
0.058748506009578705,
-0.005817899014800787,
-0.022864457219839096,
-0.060602251440286636,
0.002078794874250889,
-0.03294050320982933,
-0.013191938400268555,
0.005321213509887457,
0.004433213267475367,
-0.025862883776426315,
0.005630069877952337,
-0.06856318563222885,
0.0031789715867489576,
-0.011677401140332222,
0.06502509862184525,
0.034950971603393555,
0.052678413689136505,
0.04961103945970535,
0.03364233672618866,
0.04179450869560242,
0.04564020037651062,
0.058275818824768066,
-0.18175776302814484,
0.1218152865767479,
0.04540758579969406,
0.04931773617863655,
-0.06886474788188934,
0.000751287501771003,
0.021085551008582115,
0.043583448976278305,
-0.03472575545310974,
0.027988160029053688,
0.031056027859449387,
0.05621161311864853,
0.02227797918021679,
0.019514014944434166,
-0.008473917841911316,
-0.002498466055840254,
0.012708012014627457,
0.04074876755475998,
-0.03225493058562279,
-0.01194586232304573,
-0.04231184720993042,
-0.020170165225863457,
-0.008927427232265472,
-0.035629622638225555,
0.028811199590563774,
-0.02944522351026535,
0.0800958126783371,
-0.02684195339679718,
0.0005668603698723018,
-0.03395461663603783,
-0.006386682391166687,
0.020107105374336243,
-0.08566050231456757,
-0.04301847144961357,
0.01668524742126465,
-0.014734383672475815,
-0.05110381171107292,
0.22114162147045135,
-0.05698590353131294,
0.0032119331881403923,
0.027898505330085754,
0.0010392097756266594,
0.02618798241019249,
-0.07361966371536255,
-0.0022176310885697603,
-0.03474576398730278,
0.005635926965624094,
0.021027695387601852,
-0.031249098479747772,
-0.015344214625656605,
-0.00004882019857177511,
-0.04089682921767235,
0.02979598008096218,
0.06371846050024033,
0.03804918751120567,
0.07866743952035904,
-0.008104772306978703,
-0.040927063673734665,
0.012029883451759815,
-0.001652838778682053,
0.0065193516202270985,
-0.04296442121267319,
0.003537945682182908,
-0.04707891494035721,
0.10288920998573303,
0.0743848904967308,
0.0035190165508538485,
0.05763674154877663,
0.04967643693089485,
-0.0033323566894978285,
-0.14214231073856354,
-0.025212984532117844,
0.008857976645231247,
0.01976795867085457,
0.021190883591771126,
0.004188233520835638,
0.04378123953938484,
0.006110015790909529,
-0.06263081729412079,
-0.04055938124656677,
-0.032788414508104324,
-0.11073120683431625,
-0.05434776097536087,
0.16679070889949799,
-0.010337279178202152,
0.05252615362405777,
-0.036017198115587234,
-0.037409014999866486,
0.017694003880023956,
0.06506647914648056,
-0.035933032631874084,
-0.028417153283953667,
0.023998819291591644,
0.03049003891646862,
0.01151291560381651,
0.06576235592365265,
-0.005615892820060253,
0.03238227218389511,
-0.047505129128694534,
-0.07384631037712097,
-0.04023560881614685,
0.12767235934734344,
0.02351987175643444,
-0.08885116875171661,
-0.009969526901841164,
0.010799957439303398,
0.014614563435316086,
0.0018830131739377975,
0.04373561218380928,
0.06861105561256409,
-0.026479776948690414,
0.009089923463761806,
0.05511109530925751,
0.023228343576192856,
0.007401046808809042,
0.017288153991103172,
0.0263663399964571,
-0.0261167511343956,
0.018015949055552483,
-0.05632443353533745,
-0.04564934968948364,
0.057346560060977936,
0.029710590839385986,
-0.0614585354924202,
-0.029032066464424133,
-0.044592078775167465,
0.046231936663389206,
0.03202948719263077,
-0.053696028888225555,
-0.003771310904994607,
-0.012142825871706009,
0.019236963242292404,
-0.03339244797825813,
-0.039337579160928726,
-0.024731436744332314,
-0.0084691122174263,
-0.001132899196818471,
-0.04709073156118393,
0.052737947553396225,
0.006883751600980759,
-0.027812806889414787,
0.037714336067438126,
0.03448166325688362,
0.005101929418742657,
0.010994641110301018,
0.00691617326810956,
0.04119328409433365,
0.03163379803299904,
-0.05572272464632988,
0.027156589552760124,
0.0071924468502402306,
-0.002515207277610898,
-0.03643018752336502,
-0.03867116570472717,
0.024828849360346794,
0.014076055027544498,
-0.005727687384933233,
0.04024134948849678,
0.009737848304212093,
-0.018943097442388535,
-0.013921162113547325,
-0.23472175002098083,
0.01638590358197689,
0.008694272488355637,
-0.015868959948420525,
0.01445452868938446,
-0.09422595798969269,
0.0191681869328022,
-0.03795328736305237,
0.004216163884848356,
0.0820743665099144,
0.09866046905517578,
0.006979340221732855,
-0.002776866313070059,
0.014628760516643524,
0.03749903291463852,
0.04144921898841858,
0.03531303256750107,
0.01995864324271679,
-0.005665644071996212,
0.022424910217523575,
0.0052714841440320015,
0.0140692088752985,
0.004784991964697838,
-0.06251037865877151,
0.02841334231197834,
-0.038569167256355286,
0.20855066180229187,
0.03786671161651611,
0.005229469854384661,
-0.04088560864329338,
0.030929097905755043,
0.015945738181471825,
-0.030037734657526016,
-0.15594398975372314,
0.06111381947994232,
0.02417522296309471,
0.034513331949710846,
0.03576023131608963,
-0.00948090199381113,
-0.027291344478726387,
0.0034943674691021442,
0.020291820168495178,
0.010263119824230671,
-0.06692689657211304,
0.012588456273078918,
-0.02429853193461895,
-0.04609285667538643,
-0.021996233612298965,
-0.04950092360377312,
-0.005246568936854601,
0.007542768027633429,
-0.0033463831059634686,
0.005826426669955254,
0.06104547530412674,
-0.0727720856666565,
-0.04869389161467552,
-0.06137455627322197,
0.0423930324614048,
-0.017757896333932877,
-0.03796494007110596,
-0.01124611496925354,
-0.017379242926836014,
-0.002656676108017564,
-0.04991105571389198,
0.06496697664260864,
0.011034955270588398,
0.0024450584314763546,
0.007362931035459042,
0.00008092379721347243,
-0.06857392191886902,
-0.049207765609025955,
0.08405520766973495,
-0.03966693580150604,
0.029016118496656418,
0.05393579974770546,
0.048830170184373856,
-0.028800517320632935,
-0.06095856428146362,
-0.03404650837182999,
-0.02529744803905487,
0.030937425792217255,
-0.00371406227350235,
0.024470308795571327,
0.04375980794429779,
0.010274061933159828,
0.039169080555438995,
0.017058834433555603,
-0.019946889951825142,
0.016230035573244095,
-0.019573209807276726,
0.009591897018253803,
0.035756248980760574,
-0.04569108411669731,
-0.023640869185328484,
0.02936340868473053,
0.011867189779877663,
-0.3101520538330078,
0.04772597551345825,
0.007043335121124983,
0.034731071442365646,
0.010657689534127712,
0.03806307539343834,
0.039519939571619034,
0.016020894050598145,
-0.0674268826842308,
0.052580948919057846,
-0.024724876508116722,
0.05071687325835228,
-0.018070653080940247,
-0.03685428574681282,
-0.014599657617509365,
0.03131566569209099,
0.021582383662462234,
-0.02768808789551258,
0.00894096028059721,
-0.077118419110775,
0.01140062976628542,
0.0661616250872612,
0.24144673347473145,
-0.012755009345710278,
0.024420609697699547,
0.027353527024388313,
0.013114077039062977,
0.021685199812054634,
0.07398715615272522,
-0.022862831130623817,
0.05982723459601402,
-0.0023345747031271458,
0.06393680721521378,
0.011808876879513264,
0.05543488264083862,
0.003983714617788792,
-0.06788983196020126,
0.03243669867515564,
0.007018649950623512,
0.013100042007863522,
-0.051379624754190445,
-0.0008577078115195036,
-0.012391326017677784,
-0.02466396428644657,
0.04445702210068703,
-0.025990063324570656,
-0.10638641566038132,
-0.04741152748465538,
-0.012900975532829762,
0.016406551003456116,
-0.03365130349993706,
-0.04512076824903488,
-0.02106362022459507,
0.012543195858597755,
0.019798140972852707,
0.04594813287258148,
-0.027035346254706383,
-0.040822792798280716,
-0.06573566794395447,
-0.008962317369878292,
-0.0009495624690316617,
-0.06619101017713547,
0.011487587355077267,
0.026358217000961304,
-0.009724405594170094
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | Here is a sample result that is added to the processed listing document:
```
"process": true,
"overall_review": "Overall, guests had a positive experience at Marinete's apartment. They praised the location, cleanliness, and hospitality. However, some guests mentioned issues with the dog and language barrier.",
"neg_tags": [ "language barrier", "dog issues" ],
"pos_tags": [ "great location", "cleanliness", "hospitality" ]
```
Once the data is added to our documents, providing this information in our VUE application is as simple as adding this HTML template:
```html
Overall Review (ai based) : {{ listing.overall_review }}
{{tag}}
{{tag}}
``` | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.018523477017879486,
0.013775629922747612,
0.018246788531541824,
-0.037361256778240204,
0.060052309185266495,
0.015071781352162361,
0.022544700652360916,
0.05805240944027901,
0.02249765209853649,
0.003295812988653779,
-0.00004248873301548883,
-0.03664785996079445,
0.0252126082777977,
0.06400682032108307,
0.007810328621417284,
-0.007516325451433659,
-0.020695075392723083,
0.047707922756671906,
-0.046878136694431305,
0.012891018763184547,
0.03694331273436546,
0.0070720454677939415,
-0.04538193717598915,
-0.029707862064242363,
-0.009637297131121159,
0.05156263709068298,
-0.017223307862877846,
-0.008714767172932625,
-0.011144756339490414,
-0.19502928853034973,
0.0012552308617159724,
-0.07537546753883362,
0.06456858664751053,
-0.012707259505987167,
-0.020731061697006226,
0.005747100338339806,
-0.03867749124765396,
0.05089988559484482,
-0.022153012454509735,
0.06840591877698898,
0.042384978383779526,
-0.01598353125154972,
-0.014688754454255104,
-0.05290500447154045,
-0.020605355501174927,
-0.04334411397576332,
-0.020000919699668884,
-0.0257653146982193,
0.0026778678875416517,
0.010094727389514446,
0.025243273004889488,
-0.05472315102815628,
-0.03542960807681084,
-0.001850661588832736,
0.03913454711437225,
0.05567987635731697,
0.054986800998449326,
0.003762849373742938,
-0.020944176241755486,
0.03541480004787445,
0.05738404393196106,
0.07221668213605881,
-0.18745829164981842,
0.14527392387390137,
0.01657717488706112,
0.03816884011030197,
-0.11095405369997025,
0.0027226367965340614,
-0.02738725021481514,
0.034160513430833817,
0.006952843628823757,
0.03100457228720188,
0.024331845343112946,
0.10585228353738785,
0.03651878982782364,
0.010479223914444447,
-0.010713141411542892,
-0.05273044854402542,
0.009451077319681644,
0.020351190119981766,
-0.020074717700481415,
-0.027381204068660736,
-0.05548042431473732,
-0.021771717816591263,
0.003981863614171743,
-0.025549080222845078,
0.022334979847073555,
-0.012144162319600582,
0.05833416059613228,
-0.0005452029872685671,
-0.01955598220229149,
-0.0579332672059536,
-0.009950433857738972,
0.02808545157313347,
-0.06097951903939247,
-0.04942264035344124,
0.01787852682173252,
0.005646751262247562,
-0.0065948800183832645,
0.2095014601945877,
-0.07583179324865341,
0.020417507737874985,
0.06259947270154953,
-0.06338967382907867,
0.051345095038414,
-0.027752043679356575,
-0.0005130285280756652,
-0.03867240622639656,
-0.01991034857928753,
-0.002715827664360404,
-0.03266469016671181,
-0.00788335781544447,
-0.025209978222846985,
-0.08775608241558075,
0.023373929783701897,
0.011606490239501,
0.05364809185266495,
0.03635013476014137,
0.025159617885947227,
-0.04826001822948456,
0.003900011070072651,
-0.006963861640542746,
0.020964588969945908,
-0.030628373846411705,
0.019526006653904915,
-0.019846560433506966,
0.0905953049659729,
0.09638117998838425,
0.03059450350701809,
0.05608106404542923,
0.06904017925262451,
-0.03903740644454956,
-0.06958291679620743,
-0.008502199314534664,
-0.02638336829841137,
-0.009604860097169876,
-0.0007557167555205524,
0.022084204480051994,
0.04085265472531319,
0.024759406223893166,
-0.0358869731426239,
-0.0710119754076004,
-0.07177376747131348,
-0.080162912607193,
-0.014280246570706367,
0.14892518520355225,
-0.03631065413355827,
0.036170367151498795,
-0.06667802482843399,
-0.03318187966942787,
-0.013303752988576889,
0.10523663461208344,
-0.0589180625975132,
-0.03212408721446991,
-0.046488381922245026,
0.005249594338238239,
0.004674662370234728,
0.007148623466491699,
-0.032327741384506226,
-0.0002895413199439645,
0.03255428001284599,
-0.030985891819000244,
-0.06907530874013901,
0.11539412289857864,
0.014691031537950039,
-0.11216481775045395,
-0.062224794179201126,
0.04113450646400452,
0.051482923328876495,
-0.052893757820129395,
0.0012922313762828708,
0.052968401461839676,
-0.07140643149614334,
0.022806091234087944,
0.04700571298599243,
0.0249512679874897,
-0.01791497878730297,
0.03256573528051376,
-0.00828141625970602,
0.014556525275111198,
0.021929828450083733,
-0.049075331538915634,
-0.04380592331290245,
0.05337127298116684,
0.022411948069930077,
-0.04120199382305145,
-0.022847898304462433,
-0.048117052763700485,
0.03045904077589512,
0.010293553583323956,
-0.05589751899242401,
-0.019039161503314972,
-0.01483141165226698,
-0.033062808215618134,
-0.0284980908036232,
-0.009942527860403061,
-0.03496778756380081,
-0.028949137777090073,
0.031930044293403625,
-0.03659863770008087,
0.04552704095840454,
0.0031599137000739574,
-0.020952437072992325,
0.021409528329968452,
0.00514468876644969,
0.0364023856818676,
0.0030252651777118444,
-0.02098958007991314,
0.05624916031956673,
0.02369719184935093,
-0.037080224603414536,
0.03523048758506775,
0.0629524365067482,
0.012677283026278019,
-0.017085550352931023,
-0.009746825322508812,
-0.031282201409339905,
0.03430696949362755,
0.07958845049142838,
0.0444546677172184,
-0.01049391832202673,
-0.042190708220005035,
-0.024733396247029305,
-0.2547062337398529,
-0.008397945202887058,
0.004989935550838709,
0.002385411411523819,
-0.030823398381471634,
-0.07982838153839111,
0.052345748990774155,
0.0009431132348254323,
0.0032638520933687687,
0.07651352137327194,
0.053331419825553894,
0.0030891811475157738,
-0.04198533296585083,
0.0075832027941942215,
0.02448146790266037,
0.04139676317572594,
0.06518305093050003,
0.02647113986313343,
-0.039135824888944626,
0.04334605485200882,
-0.011214226484298706,
0.001685654977336526,
-0.020674940198659897,
-0.061397258192300797,
0.043341778218746185,
-0.014780476689338684,
0.2435133457183838,
0.024375025182962418,
-0.04444603994488716,
-0.025734513998031616,
0.04956772178411484,
0.00634674122557044,
-0.04110627993941307,
-0.12787945568561554,
0.0852944478392601,
0.005774924531579018,
0.033719778060913086,
0.00834411196410656,
-0.017714165151119232,
-0.01959989033639431,
0.016207722947001457,
0.042331546545028687,
0.012847972102463245,
-0.06554124504327774,
0.020366527140140533,
-0.04400622099637985,
-0.03851868212223053,
-0.015842661261558533,
-0.07770974189043045,
0.0002174952533096075,
0.03773054480552673,
0.0013827572111040354,
0.03874468803405762,
0.06051130220293999,
-0.020732158794999123,
-0.03546256199479103,
-0.054051946848630905,
-0.014644003473222256,
-0.012257421389222145,
0.014492524787783623,
-0.000903946056496352,
-0.03955531120300293,
0.046200212091207504,
-0.01552629005163908,
0.04442227631807327,
0.011598119512200356,
0.011395957320928574,
-0.01664845645427704,
0.017101364210247993,
-0.022773712873458862,
-0.05988873168826103,
0.08844462037086487,
0.015190033242106438,
-0.0032409359700977802,
0.03755040094256401,
0.022613197565078735,
-0.041798584163188934,
-0.02538738027215004,
0.01896154135465622,
-0.007765956688672304,
0.03284391015768051,
-0.016210706904530525,
0.032959431409835815,
0.0002980177232529968,
0.03543926030397415,
0.01815935969352722,
0.006143270991742611,
-0.020926624536514282,
0.012285829521715641,
-0.019523916766047478,
-0.02422739937901497,
-0.00030341383535414934,
-0.038549717515707016,
-0.03933575749397278,
0.017587948590517044,
-0.023071298375725746,
-0.2698866128921509,
0.024846449494361877,
0.05179640278220177,
0.0269495639950037,
-0.00988219678401947,
0.03806242719292641,
0.016540123149752617,
0.0028908790554851294,
-0.03186403959989548,
-0.007568547502160072,
0.007636284921318293,
0.02698935568332672,
-0.0021062970627099276,
-0.04864191263914108,
-0.042750511318445206,
0.06033111736178398,
0.03850273787975311,
-0.03147745132446289,
0.05269576236605644,
-0.059945620596408844,
0.016667792573571205,
0.052398938685655594,
0.2581664025783539,
0.007748751435428858,
-0.00394550571218133,
0.01369923260062933,
-0.056853845715522766,
-0.00432954728603363,
0.020848236978054047,
0.014206319116055965,
0.01946140080690384,
-0.008018357679247856,
0.11221348494291306,
0.027621589601039886,
0.02799544483423233,
0.020575162023305893,
-0.05156080052256584,
0.011799663305282593,
0.019938712939620018,
-0.011872316710650921,
-0.009376348927617073,
0.022381465882062912,
-0.016238462179899216,
-0.022090354934334755,
0.06596755236387253,
-0.03710722550749779,
-0.0237397663295269,
-0.03050437569618225,
0.009716646745800972,
-0.016031214967370033,
-0.043697819113731384,
-0.03379812836647034,
-0.025212673470377922,
0.004118320997804403,
0.07845940440893173,
0.041078947484493256,
-0.0492178238928318,
-0.0512114018201828,
-0.02197853848338127,
-0.0029723872430622578,
-0.01313343271613121,
-0.03651171177625656,
0.010041569359600544,
0.03300568833947182,
0.02265610359609127
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/atlas-open-ai-review-summary | created | Overall Review (ai based) : {{ listing.overall_review }}
{{tag}}
{{tag}}
```
## Conclusion
By integrating MongoDB Atlas triggers with OpenAI's powerful models, we can efficiently process and analyze large volumes of reviews in real-time. This setup not only provides concise summaries of reviews but also categorizes them into positive and negative tags, offering valuable insights to property hosts and potential renters.
Questions? Comments? Let’s continue the conversation over in our [community forums. | md | {
"tags": [
"MongoDB",
"JavaScript",
"AI",
"Node.js"
],
"pageDescription": "Uncover the synergy of MongoDB Atlas triggers and OpenAI models in real-time analysis and summarization of Airbnb reviews. ",
"contentType": "Tutorial"
} | Using MongoDB Atlas Triggers to Summarize Airbnb Reviews with OpenAI | 2024-05-20T17:32:23.500Z | [
-0.04842721298336983,
-0.025147899985313416,
0.01631397195160389,
-0.019730543717741966,
0.03751155734062195,
0.006439289078116417,
0.031063158065080643,
0.06317470222711563,
-0.012957305647432804,
0.01124939601868391,
-0.008856471627950668,
-0.001972187776118517,
0.00006470937660196796,
0.07169532030820847,
-0.00037921464536339045,
-0.027850257232785225,
0.00846673920750618,
0.005523201078176498,
-0.0014031133614480495,
0.0027788844890892506,
0.027582548558712006,
-0.007449273951351643,
-0.02156415581703186,
-0.05942704156041145,
0.00681126257404685,
0.0368649885058403,
-0.034196872264146805,
-0.045273035764694214,
-0.07643155008554459,
-0.20041212439537048,
-0.012149629183113575,
-0.05387124419212341,
0.11793707311153412,
-0.014538765884935856,
-0.015929482877254486,
-0.00932640302926302,
-0.021593939512968063,
0.02404233254492283,
-0.012101736851036549,
0.011141100898385048,
0.0579039640724659,
0.018659573048353195,
0.0037247200962156057,
-0.056889649480581284,
-0.014229636639356613,
-0.03560064733028412,
0.03020898811519146,
0.00022661547700408846,
-0.013458898290991783,
0.02229263447225094,
0.03534898906946182,
-0.06911830604076385,
-0.015801843255758286,
0.03014262020587921,
0.054053522646427155,
0.05719078332185745,
0.021778883412480354,
0.03507314622402191,
0.044743187725543976,
0.01119359489530325,
0.0910855084657669,
0.05564014986157417,
-0.15633566677570343,
0.07464519143104553,
0.04262663796544075,
0.05940660089254379,
-0.03652484342455864,
-0.015051047317683697,
0.004606722854077816,
0.041081223636865616,
-0.008570422418415546,
0.008326850831508636,
0.023671453818678856,
0.05471864715218544,
0.0002786630648188293,
0.028079092502593994,
0.010510701686143875,
-0.0459260568022728,
-0.004039607010781765,
0.01582944765686989,
-0.040285736322402954,
-0.038843635469675064,
-0.05954087898135185,
-0.05031891167163849,
-0.030519999563694,
-0.024759117513895035,
0.035210125148296356,
-0.019106296822428703,
0.05571044981479645,
0.013215993531048298,
0.036604270339012146,
-0.02627425827085972,
0.021597551181912422,
0.02462805062532425,
-0.044628191739320755,
-0.02756442502140999,
0.027872396633028984,
0.007112328894436359,
-0.027293361723423004,
0.2439425140619278,
-0.04421588033437729,
0.04599219188094139,
0.03742051497101784,
-0.060246556997299194,
0.019898785278201103,
-0.03212820738554001,
0.03815172240138054,
-0.03497973456978798,
-0.013455986976623535,
0.003293521236628294,
-0.04502728208899498,
0.0008818028727546334,
0.025526953861117363,
-0.07740940898656845,
0.0291743203997612,
0.002095084870234132,
0.06813177466392517,
0.07464062422513962,
0.04313579946756363,
-0.03165963292121887,
0.012085212394595146,
0.016399048268795013,
0.023300262168049812,
-0.022783787921071053,
0.03484209626913071,
-0.04843734949827194,
0.05573736131191254,
0.09100969135761261,
0.04134901240468025,
0.04848456010222435,
0.03356222063302994,
-0.01966877095401287,
-0.08466960489749908,
0.017177216708660126,
0.029376782476902008,
0.026736974716186523,
-0.0030452373903244734,
0.01467479020357132,
0.06399811804294586,
0.02710041217505932,
-0.05004694685339928,
-0.05802115425467491,
-0.058391135185956955,
-0.10390744358301163,
-0.06440920382738113,
0.11522284895181656,
-0.007730895187705755,
0.07164511829614639,
-0.05471033975481987,
0.007104385644197464,
0.012891802936792374,
0.043554555624723434,
-0.05379841849207878,
-0.039853885769844055,
-0.009509516879916191,
0.018463274464011192,
0.034691955894231796,
0.040038663893938065,
-0.03714683651924133,
-0.0022211852483451366,
-0.018817374482750893,
-0.027177199721336365,
-0.08171653747558594,
0.10580545663833618,
0.005055311601608992,
-0.1183350533246994,
-0.059451013803482056,
0.01293276995420456,
-0.02178552746772766,
-0.04133600741624832,
0.009985086508095264,
0.025162655860185623,
-0.08976195007562637,
0.015373576432466507,
0.05973437801003456,
-0.0016798984725028276,
-0.037848711013793945,
-0.0016061922069638968,
0.006127919070422649,
-0.020723335444927216,
0.011675462126731873,
-0.03120844066143036,
-0.028913602232933044,
0.0631047710776329,
0.026033246889710426,
-0.04742329567670822,
-0.025668824091553688,
-0.05308074876666069,
0.02871256321668625,
0.03728697448968887,
-0.06278615444898605,
-0.0195817481726408,
0.015331742353737354,
0.024089263752102852,
-0.03941807895898819,
-0.032592594623565674,
-0.0037515682633966208,
0.008038043975830078,
0.014965717680752277,
-0.026426326483488083,
0.05201481655240059,
-0.0028716251254081726,
-0.04407179355621338,
0.03315066546201706,
0.018870150670409203,
0.042752705514431,
-0.04146844148635864,
0.011583699844777584,
0.03735442832112312,
0.010986709967255592,
-0.026109931990504265,
0.007403084076941013,
0.021713605150580406,
0.002285756403580308,
-0.017754454165697098,
-0.03994215279817581,
0.0038857287727296352,
0.019118590280413628,
0.01756662130355835,
0.064359650015831,
0.014956549741327763,
-0.07568135857582092,
-0.05745547637343407,
-0.26054635643959045,
0.011288347654044628,
0.019282585009932518,
0.017284968867897987,
0.012752936221659184,
-0.10473255813121796,
0.0207324530929327,
-0.032034918665885925,
-0.006645840127021074,
0.10432881116867065,
0.04372270777821541,
-0.01740880310535431,
-0.03090767003595829,
0.01578705757856369,
0.007829573936760426,
0.06807935982942581,
0.005356231238692999,
0.033953987061977386,
-0.04008106142282486,
-0.00042946988833136857,
0.02717691659927368,
0.04385906085371971,
-0.018425552174448967,
-0.07843802124261856,
0.02084919437766075,
-0.016996784135699272,
0.23033736646175385,
0.02900182269513607,
-0.00022854734561406076,
-0.043174393475055695,
0.04907918721437454,
0.0023832437582314014,
-0.00478647043928504,
-0.12542812526226044,
0.07630334794521332,
0.01930958591401577,
0.08178620785474777,
0.0002588938223198056,
-0.035468969494104385,
-0.022721514105796814,
-0.009801588952541351,
0.0648626908659935,
0.015830613672733307,
-0.08757796883583069,
-0.021325264126062393,
-0.0270758755505085,
-0.011875234544277191,
0.007770884782075882,
-0.08727186173200607,
0.024204565212130547,
0.004398016724735498,
-0.03627171367406845,
0.05810064077377319,
0.01800452172756195,
-0.02178538590669632,
-0.023985931649804115,
-0.11363290995359421,
0.008755272254347801,
-0.02604103274643421,
0.02641916647553444,
0.010159870609641075,
-0.020186131820082664,
0.028744781389832497,
-0.03333325311541557,
0.007665031589567661,
-0.03558739647269249,
-0.03460105508565903,
0.011549598537385464,
-0.02263101190328598,
-0.04704052209854126,
-0.02137579582631588,
0.06901779770851135,
-0.04160122200846672,
-0.0168739203363657,
0.055412665009498596,
0.03376246243715286,
0.020755454897880554,
-0.01128390897065401,
-0.013674902729690075,
-0.04092336446046829,
0.027301853522658348,
-0.018907533958554268,
0.027535926550626755,
0.027139270678162575,
0.043714601546525955,
0.04117163270711899,
0.0030231729615479708,
-0.026933258399367332,
0.010022448375821114,
-0.0234835185110569,
0.0013760288711637259,
0.005963270086795092,
-0.07205705344676971,
-0.027474332600831985,
0.03229231387376785,
-0.004711100831627846,
-0.29319337010383606,
0.05267622694373131,
-1.899695121210243e-7,
0.03299757465720177,
-0.0014837626367807388,
0.005582552403211594,
0.02718663588166237,
0.03794202208518982,
-0.012529892846941948,
0.020321492105722427,
0.051012925803661346,
0.04662812128663063,
-0.010554143227636814,
-0.024867543950676918,
-0.050345055758953094,
0.005515346769243479,
0.01380024291574955,
-0.07045913487672806,
0.036501795053482056,
-0.027555054053664207,
0.015891004353761673,
0.05119163915514946,
0.2494342029094696,
-0.00019363436149433255,
0.02248634584248066,
0.045636992901563644,
-0.0242038294672966,
-0.01651860773563385,
0.007573481183499098,
-0.015193033032119274,
0.0370769165456295,
-0.008890917524695396,
0.08912655711174011,
-0.027455363422632217,
0.040040213614702225,
0.05771976336836815,
-0.026892492547631264,
0.04902725666761398,
0.02414332702755928,
0.0021980549208819866,
-0.015126974321901798,
0.019566798582673073,
-0.015395362861454487,
0.028316566720604897,
0.08862946182489395,
-0.01272137463092804,
-0.04470705986022949,
-0.028286129236221313,
0.004306143615394831,
-0.0050825681537389755,
-0.039697907865047455,
-0.04194571077823639,
-0.04735361039638519,
-0.013038624078035355,
0.03124833293259144,
0.02269815467298031,
-0.026109207421541214,
-0.03525586426258087,
-0.05862351879477501,
-0.024427516385912895,
-0.00434256624430418,
-0.07000892609357834,
0.026041600853204727,
0.033000748604536057,
0.01336267776787281
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/getting-started-with-mongodb-and-codewhisperer | created | # Getting Started with MongoDB and AWS Codewhisperer
**Introduction**
----------------
Amazon CodeWhisperer is trained on billions of lines of code and can generate code suggestions — ranging from snippets to full functions — in real-time, based on your comments and existing code. AI code assistants have revolutionized developers’ coding experience, but what sets Amazon CodeWhisperer apart is that MongoDB has collaborated with the AWS Data Science team, enhancing its capabilities!
At MongoDB, we are always looking to enhance the developer experience, and we've fine-tuned the CodeWhisperer Foundational Models to deliver top-notch code suggestions — trained on, and tailored for, MongoDB. This gives developers of all levels the best possible experience when using CodeWhisperer for MongoDB functions. | md | {
"tags": [
"MongoDB",
"JavaScript",
"Java",
"Python",
"AWS",
"AI"
],
"pageDescription": "",
"contentType": "Tutorial"
} | Getting Started with MongoDB and AWS Codewhisperer | 2024-05-20T17:32:23.500Z | [
-0.06456639617681503,
-0.02141782082617283,
0.006294905208051205,
-0.021012524142861366,
0.04662040248513222,
-0.0047924211248755455,
-0.004582950379699469,
0.02320190891623497,
-0.01318175345659256,
0.016072852537035942,
0.006855227518826723,
-0.038180913776159286,
0.020347001031041145,
0.05467842519283295,
0.010857654735445976,
0.025391986593604088,
0.004596427083015442,
0.013453453779220581,
-0.05720871686935425,
-0.013090621680021286,
0.061904337257146835,
-0.02909773401916027,
-0.02180362120270729,
-0.07464475184679031,
-0.04748569801449776,
0.06908779591321945,
-0.056018631905317307,
-0.044964488595724106,
-0.027052512392401695,
-0.20038489997386932,
-0.005675361957401037,
-0.06339447945356369,
0.08550698310136795,
-0.020514236763119698,
-0.019931776449084282,
-0.022017478942871094,
0.030032100155949593,
0.06104961410164833,
-0.04035172611474991,
0.021272975951433182,
0.028411472216248512,
0.012327210046350956,
-0.013869168236851692,
-0.024025849997997284,
-0.043882645666599274,
-0.056772150099277496,
0.013948689214885235,
0.002031500218436122,
-0.025787625461816788,
-0.014187046326696873,
-0.006107405759394169,
-0.04925717040896416,
-0.02226322516798973,
-0.010761662386357784,
0.026512574404478073,
0.029013320803642273,
0.02995031699538231,
0.06742050498723984,
0.022912681102752686,
0.018446873873472214,
0.028779536485671997,
0.020050974562764168,
-0.17627856135368347,
0.09493932873010635,
0.048403266817331314,
0.09117487072944641,
-0.03900563716888428,
-0.030160004273056984,
0.007448692340403795,
0.007797133643180132,
-0.015079336240887642,
0.002084355102851987,
0.012724915519356728,
0.05361121892929077,
0.027925077825784683,
0.012973986566066742,
0.0064419591799378395,
-0.041476283222436905,
0.008237349800765514,
0.04364262893795967,
-0.06979231536388397,
-0.022111771628260612,
-0.07138629257678986,
-0.005562128033488989,
-0.005781568121165037,
-0.0298394113779068,
0.04022153466939926,
-0.009965980425477028,
0.034383662045001984,
-0.016512176021933556,
-0.022091766819357872,
-0.043590229004621506,
0.021256495267152786,
0.030435003340244293,
-0.0840127021074295,
-0.0011081361444666982,
0.022686248645186424,
0.04707749933004379,
-0.033353496342897415,
0.22693364322185516,
-0.057640425860881805,
0.006948263384401798,
-0.002921080682426691,
-0.037300314754247665,
0.02613445557653904,
-0.044346705079078674,
0.030686726793646812,
-0.02705257758498192,
0.009912415407598019,
-0.007991652935743332,
0.003134107682853937,
-0.01310767326503992,
0.009480735287070274,
-0.06986518204212189,
0.024951251223683357,
0.03054337203502655,
0.035713594406843185,
0.05186187103390694,
-0.00506608746945858,
0.04972068965435028,
0.0220648106187582,
0.01665668562054634,
0.043360985815525055,
0.017865633592009544,
0.01571575738489628,
-0.021310603246092796,
0.0388895645737648,
0.11128036677837372,
0.058366160839796066,
0.055009860545396805,
0.03875614330172539,
0.01357792317867279,
-0.0593688003718853,
-0.0014290852705016732,
0.016351750120520592,
0.0020312778651714325,
-0.027444887906312943,
0.011210068129003048,
0.04816223680973053,
0.01234461460262537,
-0.05849949270486832,
-0.06778783351182938,
-0.032812293618917465,
-0.07930202782154083,
-0.06272681057453156,
0.09233836829662323,
-0.0492161363363266,
0.055791936814785004,
-0.07730228453874588,
-0.05903763696551323,
0.012884128838777542,
0.03816772997379303,
-0.02997324801981449,
-0.03659782186150551,
0.012861066497862339,
0.030150506645441055,
0.04993491247296333,
0.04327630624175072,
-0.05526043847203255,
-0.04504586011171341,
-0.03782696649432182,
-0.007715092971920967,
-0.04275689646601677,
0.07367822527885437,
-0.0354871042072773,
-0.1334502100944519,
0.01799025572836399,
-0.021346529945731163,
0.011340156197547913,
-0.017497362568974495,
0.0035165748558938503,
0.040761057287454605,
-0.06221124157309532,
0.0318022258579731,
0.08818572014570236,
0.04080934822559357,
-0.04869721084833145,
0.01269089337438345,
0.02908327430486679,
0.01648683100938797,
0.0035618445836007595,
-0.03808656707406044,
-0.04976629838347435,
0.03709173575043678,
-0.0009419572888873518,
-0.06022688001394272,
-0.01663205958902836,
-0.03751758486032486,
0.011558580212295055,
0.038255732506513596,
0.017786024138331413,
0.020689014345407486,
-0.015481720678508282,
-0.0016071894206106663,
0.00718365702778101,
-0.049492452293634415,
-0.03535933420062065,
-0.004505579825490713,
0.004020229913294315,
-0.035018905997276306,
0.07777383178472519,
0.03037802129983902,
0.002145350445061922,
0.03412817046046257,
0.003335341578349471,
0.008192332461476326,
0.010347303934395313,
-0.0094410739839077,
0.04068039357662201,
-0.01080358400940895,
-0.0204854104667902,
0.011715024709701538,
0.031635720282793045,
-0.010173717513680458,
-0.03333268687129021,
-0.0065552121959626675,
0.014068097807466984,
0.053011205047369,
0.01526469737291336,
0.04232676699757576,
0.014400490559637547,
-0.06939974427223206,
-0.02628321945667267,
-0.2412598729133606,
0.018940823152661324,
0.00937468372285366,
-0.003759874263778329,
-0.012532414868474007,
-0.06656252592802048,
0.014677358791232109,
-0.023867899551987648,
-0.005206989590078592,
0.07962428033351898,
0.04057823866605759,
-0.04402782768011093,
0.028296813368797302,
0.015190809033811092,
-0.040502339601516724,
0.052419353276491165,
-0.0028002429753541946,
0.019641442224383354,
-0.03236960992217064,
0.0275342408567667,
0.024371881037950516,
0.008390592411160469,
0.026553403586149216,
-0.13688455522060394,
0.0037332342471927404,
0.01028982549905777,
0.22436411678791046,
0.05250183120369911,
0.03563126176595688,
-0.05832631140947342,
0.05784820392727852,
-0.02605525776743889,
-0.013066274113953114,
-0.13772186636924744,
0.045943260192871094,
0.012290982529520988,
0.05757257714867592,
-0.046754878014326096,
0.015178173780441284,
-0.03919115290045738,
-0.03708953782916069,
0.047843363136053085,
0.025803223252296448,
-0.07794182002544403,
-0.03493798151612282,
-0.03682610020041466,
-0.05248483270406723,
-0.010727792978286743,
-0.051559850573539734,
0.02016395516693592,
-0.020036403089761734,
0.013420356437563896,
0.027589401230216026,
0.03966311365365982,
-0.038096413016319275,
-0.03646782413125038,
-0.08192615956068039,
-0.006020700093358755,
-0.0340513177216053,
0.07853943109512329,
-0.011385338380932808,
-0.05253876373171806,
0.020340533927083015,
-0.007476413622498512,
0.03603685274720192,
-0.01827613078057766,
-0.021833162754774094,
0.01012188196182251,
0.020326117053627968,
-0.05890817195177078,
-0.031080128625035286,
0.08865267038345337,
-0.02102753520011902,
0.01215299405157566,
0.030071847140789032,
0.020968366414308548,
0.012962489388883114,
-0.04229285567998886,
-0.024803297594189644,
-0.03840528801083565,
0.05159664899110794,
-0.022279031574726105,
0.019570324569940567,
0.006234746892005205,
0.04655757173895836,
0.0429583378136158,
0.0375249981880188,
-0.029581088572740555,
0.05051884427666664,
-0.004466109909117222,
-0.0033118855208158493,
-0.014390842989087105,
-0.07804535329341888,
-0.030166171491146088,
0.009233358316123486,
0.003732222830876708,
-0.2876966893672943,
0.02441488392651081,
0.004616837482899427,
0.0026028896681964397,
-0.01598125696182251,
0.05680929869413376,
0.07483328878879547,
-0.0008990861242637038,
0.0025425106287002563,
-0.01907573826611042,
0.009399129077792168,
0.007870931178331375,
0.0064897676929831505,
-0.005878319963812828,
0.03150185942649841,
0.07587733119726181,
0.04836961627006531,
-0.04381326213479042,
0.06511116027832031,
0.0025823635514825583,
0.04856632649898529,
0.026640234515070915,
0.24723345041275024,
0.04695779085159302,
0.06684152781963348,
0.058890216052532196,
0.027904745191335678,
0.027759091928601265,
0.07677938789129257,
-0.0052325306460261345,
0.011566029861569405,
0.037546586245298386,
0.08236433565616608,
-0.040644168853759766,
0.020020313560962677,
0.06631549447774887,
-0.02115696482360363,
0.06573037058115005,
0.04651212692260742,
-0.038417376577854156,
-0.04583980515599251,
0.03390027955174446,
-0.01291309017688036,
-0.01673775725066662,
0.057217445224523544,
-0.037082239985466,
-0.0592397078871727,
-0.10139486938714981,
-0.030226396396756172,
0.02070254646241665,
-0.031205151230096817,
-0.03809572383761406,
-0.031432777643203735,
-0.02571607567369938,
0.03300568088889122,
0.045489273965358734,
-0.02545962855219841,
0.004410770256072283,
-0.0723000094294548,
-0.055409666150808334,
0.036849334836006165,
-0.05402303487062454,
0.00508123030886054,
0.039381466805934906,
0.011022043414413929
] |
devcenter | https://www.mongodb.com/developer/products/mongodb/getting-started-with-mongodb-and-codewhisperer | created | This tutorial will help you get CodeWhisperer up and running in VS Code, but CodeWhisperer also works with a number of other IDEs, including IntelliJ IDEA, AWS Cloud9, AWS Lambda console, JupyterLab, and Amazon SageMaker Studio. On the [Amazon CodeWhisperer site][1], you can find tutorials that demonstrate how to set up CodeWhisperer on different IDEs, as well as other documentation.
*Note:* CodeWhisperer allows users to start without an AWS account because usually, creating an AWS account requires a credit card. Currently, CodeWhisperer is free for individual users. So it’s super easy to get up and running.
**Installing CodeWhisperer for VS Code**
CodeWhisperer doesn’t have its own VS Code extension. It is part of a larger extension for AWS services called AWS Toolkit. AWS Toolkit is available in the VS Code extensions store. | md | {
"tags": [
"MongoDB",
"JavaScript",
"Java",
"Python",
"AWS",
"AI"
],
"pageDescription": "",
"contentType": "Tutorial"
} | Getting Started with MongoDB and AWS Codewhisperer | 2024-05-20T17:32:23.500Z | [
-0.05912330374121666,
-0.04956725239753723,
-0.010123714804649353,
-0.0076818810775876045,
0.027913479134440422,
0.0193786658346653,
-0.010468638502061367,
0.02033318765461445,
-0.01157626323401928,
-0.004519777838140726,
0.02005293220281601,
-0.03447508439421654,
0.04998226463794708,
0.028343981131911278,
0.014512008056044579,
0.01335840206593275,
-0.01684892177581787,
0.026301970705389977,
-0.0733121708035469,
0.0018834564834833145,
0.034816935658454895,
-0.03135986998677254,
-0.018258119001984596,
-0.07494761794805527,
-0.04543324187397957,
0.06402965635061264,
-0.023332593962550163,
-0.040348295122385025,
-0.03521714359521866,
-0.1633090227842331,
-0.010310163721442223,
-0.08239120244979858,
0.07474764436483383,
-0.013031975366175175,
-0.03609289973974228,
-0.06793542951345444,
-0.004764730576425791,
0.057811006903648376,
-0.024452311918139458,
0.010657520033419132,
0.0014214359689503908,
0.030967047438025475,
-0.028557956218719482,
-0.009181221015751362,
-0.03379865363240242,
-0.08151283115148544,
0.014097998850047588,
0.00010605369607219473,
0.0033614395651966333,
-0.019467296078801155,
0.03579356148838997,
-0.0572035126388073,
-0.014095068909227848,
-0.007034752052277327,
-0.02128194272518158,
0.029183629900217056,
0.019565684720873833,
0.0707620307803154,
0.010158053599298,
0.0033879969269037247,
-0.0031601525843143463,
-0.002725080354139209,
-0.20545068383216858,
0.10065352916717529,
0.030192624777555466,
0.06738818436861038,
-0.03051113337278366,
-0.04514649882912636,
0.06044328212738037,
-0.008023758418858051,
-0.04107999429106712,
0.031289637088775635,
0.0020031246822327375,
0.06179361417889595,
0.029154306277632713,
-0.030486850067973137,
-0.005338627379387617,
-0.010879047214984894,
0.04058743640780449,
0.04660867154598236,
-0.0702148899435997,
-0.023808492347598076,
-0.028235342353582382,
0.02712465450167656,
-0.02289433591067791,
-0.01586328074336052,
0.024067368358373642,
-0.004988256376236677,
0.06434391438961029,
-0.008521057665348053,
-0.06233707442879677,
-0.05467665195465088,
0.0031401761807501316,
0.020322933793067932,
-0.060672640800476074,
-0.01678520068526268,
0.017318960279226303,
0.010884148068726063,
-0.08002804219722748,
0.21615484356880188,
-0.07275411486625671,
-0.0025541349314153194,
0.0014934309292584658,
-0.028832226991653442,
0.04062454402446747,
-0.047719188034534454,
-0.00033487245673313737,
-0.03298802673816681,
0.008139137178659439,
0.019815891981124878,
-0.0025845153722912073,
0.0073753478936851025,
0.008242454379796982,
-0.051006004214286804,
0.009254883974790573,
0.020847829058766365,
0.04022133722901344,
0.031122542917728424,
-0.0006301303510554135,
0.0323440246284008,
0.0049721538089215755,
0.005712793208658695,
0.031963955610990524,
-0.0016408051596954465,
0.01457089465111494,
0.010495547205209732,
0.04387297108769417,
0.12927217781543732,
0.01633651740849018,
0.02793014608323574,
0.06628692895174026,
-0.026561062783002853,
-0.03787807747721672,
0.0011017128126695752,
-0.009306592866778374,
0.005976339336484671,
-0.006002060603350401,
0.020612332969903946,
0.05739011988043785,
-0.03318248316645622,
-0.043371256440877914,
-0.04854609817266464,
-0.00964999571442604,
-0.06909637153148651,
-0.04053006321191788,
0.06902902573347092,
-0.05074843391776085,
0.04279724508523941,
-0.010601137764751911,
-0.04953526332974434,
0.02140066958963871,
0.02372773550450802,
-0.04126642271876335,
-0.027746496722102165,
0.02870633825659752,
0.041514817625284195,
0.03896549344062805,
0.057562824338674545,
-0.0524166114628315,
-0.014418811537325382,
-0.04568655788898468,
-0.03386920318007469,
-0.01717698946595192,
0.07626648247241974,
-0.02565528266131878,
-0.12204457074403763,
-0.0043107373639941216,
-0.01113554835319519,
0.011371009051799774,
-0.02472635917365551,
-0.003923811484128237,
0.04707861319184303,
-0.033996228128671646,
0.008981510996818542,
0.07223481684923172,
0.028090106323361397,
-0.05820503085851669,
0.04093412682414055,
0.030944664031267166,
0.05700363591313362,
0.03282317891716957,
-0.01867883838713169,
-0.04365021362900734,
0.011856724508106709,
0.018948080018162727,
-0.07820384949445724,
0.022375086322426796,
-0.04949140176177025,
-0.009753843769431114,
-0.008244501426815987,
-0.015970321372151375,
0.02260269783437252,
-0.03802095726132393,
-0.02344706282019615,
0.020079920068383217,
-0.0095567861571908,
-0.06411799788475037,
-0.021178368479013443,
0.0162699893116951,
-0.04396912455558777,
0.0977291539311409,
0.06236554682254791,
0.01843351311981678,
0.02962503582239151,
-0.021556587889790535,
0.01666308008134365,
0.01788431778550148,
-0.01654989831149578,
0.0585099533200264,
-0.03528611361980438,
-0.05568962171673775,
0.025626104325056076,
0.05849584564566612,
-0.01894763484597206,
-0.04578699544072151,
0.021526765078306198,
-0.009581480175256729,
0.04972940683364868,
0.051163364201784134,
0.06928420066833496,
0.0050560953095555305,
-0.05443154275417328,
-0.019576653838157654,
-0.25136667490005493,
0.001794280018657446,
-0.0003803022555075586,
-0.015920346602797508,
-0.03801891580224037,
-0.04315490275621414,
0.017581451684236526,
-0.017082126811146736,
0.009994019754230976,
0.07674971222877502,
0.10130048543214798,
-0.03316579386591911,
0.016036484390497208,
-0.0027129794470965862,
0.019267482683062553,
0.06852545589208603,
0.014910530298948288,
0.036600805819034576,
-0.019317980855703354,
0.02699637971818447,
0.0037401781883090734,
-0.015552441589534283,
0.03437447175383568,
-0.07611069083213806,
0.030143262818455696,
-0.01584341563284397,
0.2299385815858841,
0.03259648010134697,
0.09556444734334946,
-0.02418581023812294,
0.04704134538769722,
0.020482240244746208,
-0.009176774881780148,
-0.18035265803337097,
0.05196120962500572,
0.024998782202601433,
0.04127652198076248,
-0.06101255118846893,
0.03811034932732582,
-0.014603198505938053,
-0.04413409158587456,
0.02758372761309147,
-0.007163569331169128,
-0.07897978276014328,
-0.0027239748742431402,
-0.03803849592804909,
-0.046670857816934586,
-0.02090638130903244,
-0.06465892493724823,
0.0028782838489860296,
0.00265707285143435,
-0.004125798586755991,
0.011542008258402348,
0.0839446485042572,
-0.024610966444015503,
-0.02860696241259575,
-0.05787726119160652,
-0.0063606551848351955,
-0.024693714454770088,
0.06698635220527649,
-0.012331143952906132,
-0.03345891088247299,
0.004934836644679308,
-0.03690994530916214,
0.06410698592662811,
-0.005943282041698694,
-0.01301139872521162,
-0.0064149778336286545,
0.06438877433538437,
-0.04318931698799133,
-0.048752620816230774,
0.05087365582585335,
-0.009786305017769337,
0.021028093993663788,
-0.00904950499534607,
-0.009572958573698997,
0.00868175458163023,
-0.06107879430055618,
-0.0019016385776922107,
-0.043784018605947495,
0.006567816250026226,
-0.025176044553518295,
-0.006834041327238083,
0.003431460354477167,
0.030649568885564804,
0.05196879431605339,
-0.005685058422386646,
0.00420483760535717,
0.06838396191596985,
-0.02267414703965187,
-0.0008000857778824866,
0.018357159569859505,
-0.016533033922314644,
0.018086984753608704,
0.027148673310875893,
0.0066139488480985165,
-0.28333771228790283,
0.015692604705691338,
0.02361142635345459,
-0.008422273211181164,
-0.04410536214709282,
0.024236386641860008,
0.06795907765626907,
-0.03369297459721565,
-0.029081951826810837,
-0.03828810155391693,
0.03199806436896324,
0.016298696398735046,
0.00030617197626270354,
-0.01149661559611559,
0.06481758505105972,
0.04537156969308853,
0.041475698351860046,
-0.029731258749961853,
0.08122962713241577,
-0.0032689326908439398,
0.06637874245643616,
-0.0023490015882998705,
0.23869454860687256,
0.04746460169553757,
0.0357573963701725,
0.06367922574281693,
0.04269178584218025,
0.056099388748407364,
0.09097887575626373,
-0.0012609343975782394,
0.019625553861260414,
0.038284800946712494,
0.11712149530649185,
-0.03929032385349274,
0.007122901733964682,
0.0025534559972584248,
-0.012139270082116127,
0.07911034673452377,
0.05312049388885498,
0.0166099201887846,
-0.04880499094724655,
0.01935795694589615,
-0.028653297573328018,
-0.030089907348155975,
0.03218218311667442,
-0.04470108076930046,
-0.028576107695698738,
-0.08775034546852112,
-0.027709806337952614,
-0.0006701551028527319,
-0.028372185304760933,
-0.029849110171198845,
-0.03258834779262543,
-0.001722013927064836,
0.05632612481713295,
0.018296221271157265,
-0.038549985736608505,
-0.024344325065612793,
-0.07964909076690674,
-0.05270636826753616,
0.029637351632118225,
-0.052848439663648605,
0.020804377272725105,
0.03039899654686451,
0.02947576344013214
] |
End of preview. Expand
in Dataset Viewer.
Overview
This dataset consists of chunked and embedded versions of a subset of articles from the MongoDB Developer Center.
Dataset Structure
The dataset consists of the following fields:
- sourceName: The source of the article. This value is
devcenter
for the entire dataset. - url: Link to the article
- action: Action taken on the article. This value is
created
for the entire dataset. - body: Content of the chunk in Markdown format
- format: Format of the content. This value is
md
for all articles. - metadata: Metadata such as tags, content type etc. associated with the articles
- title: Title of the article
- updated: The last updated date of the article
- embedding: The embedding of the chunk's content, created using the thenlpr/gte-small open-source model from Hugging Face.
Usage
This dataset can be useful for prototyping RAG applications. This is a real sample of data we have used to build the AI chatbot on our official documentation website.
Ingest Data
To experiment with this dataset using MongoDB Atlas, first create a MongoDB Atlas account.
You can then use the following script to load this dataset into your MongoDB Atlas cluster:
import os
from pymongo import MongoClient
import datasets
from datasets import load_dataset
from bson import json_util
uri = os.environ.get('MONGODB_ATLAS_URI')
client = MongoClient(uri)
db_name = 'your_database_name' # Change this to your actual database name
collection_name = 'devcenter_articles-embedded'
collection = client[db_name][collection_name]
dataset = load_dataset("MongoDB/devcenter-articles-embedded")
insert_data = []
for item in dataset['train']:
doc = json_util.loads(json_util.dumps(item))
insert_data.append(doc)
if len(insert_data) == 1000:
collection.insert_many(insert_data)
print("1000 records ingested")
insert_data = []
if len(insert_data) > 0:
collection.insert_many(insert_data)
insert_data = []
print("Data ingested successfully!")
- Downloads last month
- 38