Skip to content

Latest commit

 

History

History

simple_migration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Migrate from OpenAI to OctoAI in 3 lines of code

OctoAI LLMs and embeddings are available to use through a OpenAI compatible API. If you have already been building or prototyping using OpenAI's Python SDK and want to get a taste of the best models open source have to offer, you can with very minimal code changes.

In this example, we will show you how to change just three lines of code to make your Python application use OctoAI's Open Source models through OpenAI's Python SDK.

What you will build

Migrate OpenAI's Python SDK example script to use OctoAI's LLM in one example, and embedding endpoints in the other.

These are the three modifications necessary to achieve our goal.

When instantiating the OctoAI client instance:

  1. Set the base_url to point to https://text.octoai.run/v1 your API key environment variable to use your OctoAI key.
  2. Set the api_key to your API key environment variable to use your OctoAI key.

If you're using an OpenAI LLM via the OpenAI chat completion API: 3. When instantiating the OpenAI chat completion instance, change the model name to an Open Source model, for example: llama-2-13b-chat-fp16.

If you're using an OpenAI embedding via the OpenAI embedding API: 3. When instantiating the OpenAI embedding instance, change the model name to an Open Source model for example: thenlper/gte-large.

Requirements

We will be using Python and OpenAI's Python SDK.

Instructions

Python setup

  • Set up a Python virtual environment. Read Creating Virtual Environments here.
python3 -m venv .venv
source .venv/bin/activate
  • Install the pip requirements in your local python virtual environment. We'll need to use OpenAI's Python SDK (newer than version 1.0.0).
python3 -m pip install openai

Token setup

To run this example app, there are two simple steps to take:

  • Get an OctoAI API token by following these instructions.
  • Expose the token in a new OCTOAI_TOKEN environment variable:
export OCTOAI_TOKEN=<your-token>

Migrating your OpenAI LLM

The llm.py script will showcase the 3 LoC modifications you'll need to make to migrate your LLM call from OpenAI to OctoAI. Particularly:

  • We have already filled the base_url for you.
  • We have already set the api_key to the OCTOAI_TOKEN environment variable assuming you've already set it.
  • We have already changed line 10 from the example to select the Llama-2-13B model.

Run the llm.py script to chat with the hosted LLM endpoint.

python3 llm.py

You'll get an output such as this one:

ChatCompletionMessage(content="  Hello! How can I assist you today? Do you have any questions or tasks you'd like help with? Please let me know and I'll do my best to assist you.", role='assistant', function_call=None, tool_calls=None)

Migrating your OpenAI Embedding

The embedding.py script will showcase the 3 LoC modifications you'll need to make to migrate your embedding call from OpenAI to OctoAI. Particularly:

  • We have already filled the base_url for you.
  • We have already set the api_key to the OCTOAI_TOKEN environment variable assuming you've already set it.
  • We have already changed line 10 from the example to select the thenlper/gte-large model.

Run the embedding.py script to chat with the hosted LLM endpoint.

python3 embedding.py

You'll get an output such as this one:

CreateEmbeddingResponse(data=[Embedding(embedding=[0.004945754539221525, -0.0140085369348526, -0.024513935670256615, 0.005834201816469431, -0.0357179157435894, -0.0029481074307113886, -0.02629750967025757, 0.02981334738433361, 0.001692350022494793, -0.007486769463866949, 0.04272496700286865, -0.01558387279510498, 0.00029688203358091414, -0.02285553701221943, -0.023737475275993347, -0.011267732828855515, -0.03515215590596199, -0.04059359431266785, -0.03568810969591141, -0.0343414843082428, -0.0018611961277201772, -0.0005826037959195673, -0.06119827553629875, -0.01857956498861313, -0.02072545513510704, 0.06841344386339188, 0.01750040054321289, -0.005408457480370998, 0.05945253744721413, 0.033948592841625214, -0.01691391132771969, -0.006079242564737797, 0.05088971555233002, -0.04201589152216911, 0.0028820810839533806, -0.006595305632799864, 0.034862928092479706, -0.024205787107348442, -0.010676576755940914, -0.03775728866457939, 0.00033033869112841785, -0.03170214593410492, 0.056415122002363205, -0.04906933754682541, -0.038509905338287354, 0.005984517280012369, -0.022362343966960907, -0.04596971720457077, 0.015592296607792377, -0.03481109440326691, 0.01918860524892807, 0.001110912417061627, 0.03403100743889809, 0.006133683491498232, 0.002641672734171152, 0.0010404841741546988, -0.031085330992937088, -0.006261046975851059, -0.027758687734603882, 0.01291447039693594, 0.012813816778361797, 0.012620511464774609, 0.007914521731436253, -0.07247508317232132, 0.051374875009059906, 0.0047022318467497826, -0.005096616689115763, -0.008670831099152565, 0.013801594264805317, -0.013266198337078094, 0.005154216196388006, 0.0017646572086960077, -0.039470888674259186, -0.011363543570041656, -0.006461576092988253, -0.006234141997992992, -0.018569717183709145, -0.005717609543353319, -0.01847926899790764, 0.009054137393832207, 0.007808004971593618, 0.04572506621479988, 0.007337617687880993, 0.02642035484313965, -0.04423849657177925, -0.01541308406740427, 0.03177885711193085, 0.03969687968492508, 0.001297381822951138, 0.008533798158168793, 0.006449849344789982, 0.04117516055703163, -0.002375704236328602, -0.036521583795547485, 0.028617043048143387, 0.0502428375184536, -0.0356549397110939, 0.04710175096988678, -0.005078086629509926, -0.02025740221142769, 0.03646249696612358, -0.0024213497526943684, -0.009974239394068718, 0.026299064978957176, -0.04545968025922775, 0.035441383719444275, 0.008927211165428162, 0.014863654039800167, -0.04018203541636467, -0.01943429373204708, -0.013242832385003567, -0.036198146641254425, 0.04780875891447067, -0.007713044993579388, -0.006807756144553423, 0.08411886543035507, 0.022999374195933342, 0.04081336408853531, -0.04557164013385773, -0.007130158133804798, 0.03217797353863716, 0.005511670373380184, 0.0463387705385685, -0.039627425372600555, 0.008463401347398758, -0.05915605649352074, -0.02850300818681717, 0.04898640140891075, -0.04832501336932182, -0.006498183123767376, 0.006205002311617136, -0.03916922211647034, -0.03165549784898758, 0.012891145423054695, -0.01713964343070984, 0.009262052364647388, -0.03132791072130203, 0.03048717975616455, -0.0051371436566114426, -0.0694894939661026, 0.06232409179210663, 0.006770177744328976, 0.00968850962817669, 0.08840235322713852, 0.017654605209827423, -0.015086697414517403, -0.01620301976799965, 0.036164455115795135, -0.050446026027202606, 0.03350178897380829, -0.033081941306591034, 0.0102200573310256, 0.00018923931929748505, 0.0073018549010157585, -0.0016998009523376822, 0.023097338154911995, 0.008587688207626343, -0.007891974411904812, 0.009807239286601543, 0.021994328126311302, -0.051942963153123856, -0.019870208576321602, -0.008138052187860012, 0.0467679500579834, 0.021225644275546074, 0.029269101098179817, -0.006101498380303383, -0.01200505904853344, 0.014873242005705833, -0.039903175085783005, 0.03323744237422943, 0.028996460139751434, 0.008938419632613659, 0.0049170153215527534, 0.042033515870571136, 0.02353636361658573, 0.02288222871720791, -0.02642242982983589, 0.013550914824008942, 0.01407993771135807, -0.052343111485242844, 0.03140047937631607, -0.032941993325948715, 0.02883681282401085, 0.058847129344940186, -0.04502428323030472, 0.0021215116139501333, -0.04287632182240486, -0.02388727478682995, -0.022228874266147614, -0.03940143063664436, 0.02495296113193035, -0.0446438305079937, 0.027320178225636482, 0.003714844351634383, 0.029097016900777817, -0.020025189965963364, -0.027581417933106422, -0.006137165706604719, -0.05076531320810318, -0.02925044111907482, 0.0644347295165062, 0.008114727213978767, 0.024158360436558723, 0.00029897966305725276, -0.03438347205519676, 0.04686539247632027, 0.06235519051551819, -0.05512965843081474, 0.01631109230220318, 0.031266748905181885, 0.013699708506464958, -0.011473769322037697, -0.04633462429046631, -0.030416684225201607, -0.038666438311338425, -0.01270558312535286, 0.04027015343308449, -0.002492911648005247, 0.02313154749572277, 0.002958729164674878, 0.003582507837563753, 0.013812736608088017, 0.019494419917464256, -0.021670112386345863, -0.0003521409526001662, 0.0007775609265081584, 0.05775241553783417, -0.02162061259150505, -0.04528345167636871, -0.03330586105585098, 0.04464901238679886, 0.0097501240670681, 0.08014222979545593, 0.05482902750372887, 0.034360144287347794, 0.038431115448474884, 0.028131885454058647, -0.010540515184402466, -0.0030434438958764076, 0.006791088730096817, 0.010047510266304016, 0.023507336154580116, 0.01689700037240982, -0.010740331374108791, 0.039506133645772934, 0.02349023148417473, -0.01263580285012722, -0.013287409208714962, 0.034498024731874466, 0.026143565773963928, 0.038526490330696106, 0.027842655777931213, 0.04485427215695381, -0.04619467630982399, 0.027999190613627434, 0.02156851999461651, 0.04682185500860214, 0.007184663321822882, -0.03591928631067276, -0.012149414047598839, 0.001936321728862822, -0.021314280107617378, -0.0035767415538430214, 0.03506196662783623, 0.014236253686249256, 0.014225458726286888, 0.026464413851499557, -0.009377948008477688, -0.03347069025039673, -0.028253627941012383, -0.051984433084726334, -0.0266867782920599, -0.033886391669511795, -0.02802925556898117, 0.0020659370347857475, 0.06298547983169556, -0.014735625125467777, 0.041416700929403305, 0.01277659460902214, -0.006631005555391312, -0.01652049832046032, -0.039455339312553406, 0.07053860276937485, 0.02777319774031639, 0.05012880638241768, -0.019835742190480232, 0.033495571464300156, 0.002443297766149044, 0.03454156219959259, -0.014475422911345959, -0.04748738929629326, -0.026464933529496193, 0.008094318211078644, 0.0303928442299366, -0.0406951829791069, -0.02186526544392109, 0.036142684519290924, -0.02490786649286747, -0.04999196529388428, 0.0224421676248312, -0.0037536865565925837, -0.00733953109011054, 0.024945445358753204, -0.05249447003006935, 0.055847033858299255, 0.02305016852915287, 0.002307430375367403, 0.040373820811510086, 0.0309256874024868, -0.014021883718669415, 0.02241521328687668, -0.01789420284330845, 0.02945880964398384, -0.03777801990509033, 0.05548005551099777, 0.040608104318380356, 0.01139854732900858, -0.04109637066721916, -0.0042072259820997715, -0.02152109332382679, 0.01103427354246378, 0.0006315536447800696, -0.03973834589123726, -0.03135382756590843, 0.011795232072472572, 0.005751819349825382, -0.053560156375169754, 0.03171251341700554, -0.06279265880584717, -0.0263073593378067, -0.02223017066717148, -0.03986585885286331, 0.02396346814930439, 0.013315659016370773, 0.017994370311498642, 0.013206160627305508, -0.02760564722120762, 0.0015763734700158238, 0.019282164052128792, 0.0066452594473958015, -0.03193643316626549, 0.005028261803090572, 0.0548165887594223, -0.019507119432091713, 0.03343440964818001, 0.019525520503520966, -0.01390085369348526, -0.001719659543596208, -0.02459064871072769, -0.009895517490804195, 0.027779776602983475, 0.05862943083047867, 0.01809285394847393, 0.03692588210105896, 0.06005380302667618, -0.01200687326490879, -0.013361611403524876, 0.016581401228904724, 0.02120322734117508, 0.027979495003819466, -0.037164315581321716, 0.007549746427685022, -0.018586013466119766, -0.02979779802262783, -0.026831911876797676, 0.03974249213933945, 0.00285023613832891, 0.0350889191031456, -0.024007786065340042, 0.04725310578942299, 0.012525462545454502, -0.051472317427396774, 0.03845185041427612, -0.08329367637634277, -0.018527215346693993, 0.048345744609832764, -0.03526100516319275, 0.020713793113827705, -0.0257320124655962, 0.008716059848666191, -0.04272911325097084, 0.006330657284706831, 0.026699217036366463, -0.05948571488261223, 0.043096091598272324, -0.019058246165513992, -0.016899915412068367, -0.024537261575460434, 0.0082735950127244, -0.015726154670119286, -0.021644974127411842, 0.036741357296705246, 0.0034168041311204433, -0.029423564672470093, -0.020782601088285446, 0.02145150676369667, 0.02920275554060936, 0.049892447888851166, 0.0026711851824074984, 0.035181183367967606, 0.003918920643627644, 0.022801369428634644, 0.06556884199380875, -0.0059415423311293125, -0.00943018589168787, -0.043388430029153824, 0.03717675432562828, 0.030226975679397583, -0.03716224059462547, -0.02586004137992859, -0.029689988121390343, -0.018323900178074837, 0.022933026775717735, 0.00426897220313549, -0.0026650624349713326, -0.045080263167619705, 0.023563316091895103, 0.0012180448975414038, 0.026470115408301353, -0.04728835076093674, -0.02373436465859413, 0.023510446771979332, 0.034324899315834045, 0.047443851828575134, -0.04771960526704788, -0.018634509295225143, -0.023949991911649704, 0.046328406780958176, 0.049094218760728836, -0.02366594597697258, -0.06057627871632576, -0.01606203243136406, -0.013903185725212097, -0.021389955654740334, 0.005180586129426956, 0.06996428221464157, -0.028689607977867126, 0.003396111074835062, -0.029200680553913116, 0.03184779733419418, 0.023147614672780037, -0.027619773522019386, -0.033621009439229965, -0.011394335888326168, 0.047501903027296066, -0.0029182021971791983, 0.04231134057044983, -0.01280601043254137, -0.032520074397325516, 0.022612957283854485, -0.04832294210791588, 0.05551115423440933, 0.00743603752925992, -0.008370345458388329, 0.01346733421087265, -0.0007400467293336987, 0.0064929514192044735, 0.010974940843880177, -0.0024134451523423195, 0.030854158103466034, -0.00854390487074852, 0.03238115832209587, -0.028514929115772247, -0.011445779353380203, 0.04629730433225632, 4.026326860184781e-05, 0.007150891236960888, 0.019885241985321045, 0.04469669982790947, -0.020538337528705597, 0.014594251289963722, 0.030028976500034332, -0.050126731395721436, 0.016494840383529663, -0.03013160452246666, 0.02539406158030033, 0.00387186580337584, -0.012417002581059933, 0.03555230796337128, -0.04560481384396553, 0.025938307866454124, 0.03739652782678604, 0.012112094089388847, -0.037503305822610855, -0.06750325113534927, -0.01143256202340126, 0.020837415009737015, -0.010907947085797787, 0.004142402205616236, 0.021653786301612854, -0.010263596661388874, -0.03807865083217621, -0.02259870246052742, 0.011925365775823593, 0.005278822500258684, 0.014768021181225777, 0.01913832686841488, -0.019961435347795486, 0.008533667773008347, 0.008328943513333797, -0.012353182770311832, -0.018438158556818962, -0.00020091795886401087, -0.04151414707303047, -0.055847033858299255, -0.07133060693740845, -0.012359856627881527, -0.023365315049886703, -0.010299621149897575, -0.03059602901339531, -0.005519445054233074, -0.01417764276266098, -0.006139595527201891, 0.021731017157435417, 0.007776386570185423, 0.01680946722626686, 0.0074207475408911705, -0.02776179648935795, 0.03028813935816288, 0.04187697917222977, -0.04203040525317192, -0.048998843878507614, 0.05787888541817665, -0.01583552360534668, 0.020689690485596657, -0.033604420721530914, -0.006756182760000229, -0.043143779039382935, -0.07303902506828308, -0.034371551126241684, -0.005251468159258366, -0.021029716357588768, -0.04820476099848747, -0.02278996631503105, -0.03244750574231148, 0.03847154602408409, -0.002672059927135706, 0.015624822117388248, 0.006316249258816242, -0.042517635971307755, 0.005304467398673296, 0.021458376199007034, -0.02722998894751072, -0.03439021110534668, 0.016167903319001198, -0.02110331878066063, 0.03529106825590134, 0.0023602191358804703, 0.05451181158423424, 0.03738719969987869, 0.0033499717246741056, 0.05097679793834686, -0.035028792917728424, -0.05825208127498627, -0.02521679177880287, -0.016466330736875534, -0.013617845252156258, 0.006447451189160347, 0.011611321941018105, -0.046322185546159744, 0.04014057293534279, -0.05890725553035736, -0.0009679826907813549, -0.020809944719076157, -0.027754537761211395, -0.016969501972198486, -0.008040412329137325, 0.05546346679329872, -0.040336500853300095, 0.01149268914014101, -0.027624957263469696, 0.07083301246166229, 0.050429437309503555, -0.02588440105319023, -0.03910287097096443, -0.050251130014657974, -0.04996086657047272, -0.06042078137397766, 0.015606551431119442, -0.01772496849298477, -0.018114622682332993, -0.036521583795547485, 0.009523291140794754, 0.03977255895733833, 0.02101520262658596, 0.05826659873127937, 0.08095911890268326, -0.013613828457891941, -0.02130495011806488, -0.028674058616161346, 0.034022197127342224, 0.047850221395492554, -0.03442908450961113, 0.004747067578136921, -0.007705829106271267, -0.05592581629753113, 0.006160037126392126, -0.042424336075782776, -0.0338602140545845, -0.029940856620669365, -0.03320789709687233, 0.06837405264377594, -0.01740191876888275, 0.05063055083155632, -0.020139222964644432, -0.05852990970015526, -0.06508161127567291, 0.060371022671461105, 0.012687700800597668, 0.003612182103097439, 0.06047676131129265, -0.02512660250067711, -0.015868566930294037, 0.006394063588231802, 0.005358641501516104, -0.006094095762819052, -0.04497452452778816, 0.07470183074474335, 0.006543796509504318, -0.041740138083696365, 0.0406951829791069, 0.03487018123269081, -0.05775241553783417, -0.01918860524892807, 0.017881374806165695, 0.002630783710628748, -0.022257642820477486, -0.04350661113858223, -0.022185593843460083, -0.006973946001380682, 0.0135533781722188, 0.03400249779224396, 0.027305664494633675, -0.029708128422498703, 0.02600465528666973, 0.04402494058012962, 0.01310988049954176, -0.008523333817720413, -0.011536747217178345, 0.050319552421569824, -0.0038958468940109015, -0.039428383111953735, -0.022581597790122032, -0.00708882138133049, 0.021172257140278816, -0.006418360397219658, 0.053027309477329254, -0.03812633827328682, -0.011213049292564392, 0.013604076579213142, -0.0001903205265989527, 0.037002597004175186, 0.012231569737195969, -0.011399130336940289, 0.027948396280407906, -0.023292748257517815, -0.04260886460542679, -0.04322878643870354, 0.01361628994345665, -0.03182758390903473, 0.013462605886161327, -0.03840209171175957, 0.019878244027495384, 0.02015794813632965, -0.026481518521904945, 0.004063453990966082, -0.053983110934495926, -0.02704235166311264, -0.05145365744829178, -0.054437171667814255, -0.055710192769765854, -0.013983008451759815, -0.005848484113812447, 0.017818916589021683, 0.03157670795917511, -0.032769907265901566, -0.03314880654215813, -0.015536834485828876, -0.03642828390002251, 0.029846522957086563, -0.04666842892765999, 0.040342461317777634, -0.032493118196725845, -0.06406775116920471, -0.018041281029582024, 0.02033722586929798, -0.02879016287624836, -0.016395321115851402, -0.016305649653077126, -0.02366853691637516, -0.025402354076504707, 0.02512660250067711, 0.006086174864321947, 0.023121697828173637, 0.0033015888184309006, -0.01942392624914646, -0.016469571739435196, 0.01955869235098362, 0.003900827607139945, 0.028666801750659943, 0.005190791096538305, -0.04480036348104477, 0.019359136000275612, 0.0030489512719213963, -0.036500852555036545, -0.019093362614512444, -0.020693577826023102, 0.009659028612077236, 0.009330342523753643, -0.02883681282401085, -0.030248746275901794, -0.02455073595046997, -0.029962627217173576, 0.01978261210024357, -0.008502697572112083, 0.04168001189827919, 0.0188599843531847, 0.0027475175447762012, 0.020617643371224403, 0.060594938695430756, -0.012735872529447079, 0.07255387306213379, -0.00990128330886364, 0.022248830646276474, 0.02591291069984436, -0.019202081486582756, 0.010644699446856976, 0.008069956675171852, 0.015364360995590687, -0.0017449604347348213, -0.013742698356509209, 0.048086583614349365, -0.000956609845161438, 0.016957709565758705, -0.005283734295517206, -0.01618073135614395, -0.07555603981018066, -0.030781591311097145, 0.01344290841370821, 0.0351925864815712, 0.019183939322829247, -0.02230377309024334, 0.020609350875020027, -0.017820728942751884, -0.054144833236932755, 0.014736208133399487, -0.023670092225074768, -0.03177367523312569, 0.025287285447120667, -0.004119271878153086, -0.002592123579233885, -0.01918523572385311, -0.04640926420688629, 0.014707377180457115, -0.019481461495161057, 0.0051262266933918, -0.0005577238625846803, 0.02762702852487564, -0.013437077403068542, 0.031737394630908966, -0.008984098210930824, -0.021040601655840874, 0.0005479080136865377, 0.045565418899059296, -0.04750397801399231, -0.04136694222688675, 0.03400560840964317, 0.018980754539370537, 0.02106548100709915, 0.003084456780925393, -0.03403463587164879, 0.03124912455677986, 0.008199863135814667, 0.0067718615755438805, -0.0007711871294304729, 0.04252178221940994, 0.015050122514367104, 0.03427514061331749, -0.03119625523686409, -0.020346296951174736, -0.022947538644075394, 0.02833195962011814, -0.0036629787646234035, -0.006682514678686857, -0.037576910108327866, 0.044447898864746094, 0.05727969482541084, 0.004385693464428186, 0.052036263048648834, 0.020854001864790916, 0.047663625329732895, -0.010618750937283039, 0.006396056152880192, -0.054692190140485764, 0.030930351465940475, 0.047344330698251724, 0.026292329654097557, 0.015619800426065922, 0.03002171777188778, 0.030467484146356583, -0.0053213778883218765, -0.005709283519536257, 0.03742140904068947, 0.055397115647792816, -0.017161931842565536, 0.016533195972442627, -0.018930993974208832, -0.005450604483485222, -0.026951126754283905, 0.004540642257779837, 0.029539668932557106, -0.01330451387912035, 0.008469660766422749, -0.013728832826018333, -0.024984579533338547, 0.041991010308265686, -0.040040016174316406, -0.0026877394411712885, -0.03713839873671532, 0.002109217457473278, -0.009974498301744461, 0.06743690371513367, -0.017953423783183098, -0.001809363136999309, 0.020105144008994102, 0.002291022101417184, 0.00418317224830389, 0.024639371782541275, -0.0007492532022297382, -0.007781829219311476, -0.05163196474313736, 0.006097837351262569, 0.0036269223783165216, 0.0063610197976231575, 0.007806191220879555, 0.022117432206869125, -0.02348608523607254, -0.001409924472682178, -0.015087313018739223, -0.002247061114758253, 0.03788168728351593, -0.011841654777526855, -0.018536025658249855, -0.0402991808950901, 0.018406961113214493, -0.022592611610889435, 0.028124626725912094, 0.0101802758872509, 0.009319555014371872, -0.016550300642848015, 0.06058664992451668, 0.005732090212404728, 0.01374872401356697, 0.008672062307596207, 0.06920752674341202, 0.0018387783784419298, 0.0033079867716878653, 0.05928252637386322, -0.03722859174013138, -0.04171629622578621, 0.03059602901339531, -0.02539561688899994, -0.0545947402715683, -0.01491496805101633, -0.025475438684225082, -0.01632586494088173, -0.012163538485765457, -0.011279460974037647, -0.0077940430492162704, 0.052177250385284424, 0.006811886560171843, -0.02611868642270565, 0.005039211828261614, 0.03059343807399273, -0.0329129658639431, 0.05032162368297577, -0.026168446987867355, 0.03928324952721596, -0.035055745393037796, -0.01635178178548813, -0.06431655585765839, -0.0326983779668808, 0.01009280327707529, -0.00032366515370085835, 0.04088593274354935, -0.023574721068143845, -0.011960292235016823, -0.036679159849882126, -0.033219821751117706, -0.023244543001055717, 0.007418998051434755, -0.04365381971001625, -0.03965022787451744, 0.06708858907222748, 0.035384368151426315, -0.01357093546539545, 0.0068703447468578815, -0.0335826501250267, 0.0023791464045643806, 0.03171925246715546, 0.06311609596014023, -0.014683857560157776, 0.0076450868509709835, 0.040838245302438736, -0.02322329208254814, 0.036198146641254425, -0.015092043206095695, 0.03415592387318611, 0.019633332267403603, -0.018314698711037636, 0.008978914469480515, 0.031186925247311592, -0.019617265090346336, -0.05159257352352142, 0.03260507807135582, 0.017276287078857422, 0.05460718274116516, -0.017317431047558784, -0.08421838283538818, -0.025474920868873596, -0.02459479495882988, -0.018877865746617317, -0.039648156613111496, 0.0300580020993948, 0.012897283770143986, 0.022433113306760788, -0.014979240484535694, -0.06930704414844513, 0.14968045055866241, 0.05009770765900612, 0.020965443924069405, 0.0008397403289563954, 0.023768575862050056, 0.017548346891999245, 0.02881193347275257, -0.013058565557003021, 0.015103883109986782, -0.03341471031308174, 0.0783633217215538, 0.001164332847110927, 0.02743939496576786, 0.018738174811005592, 0.0254562608897686, 0.03843940794467926, -0.0374276302754879, -0.0007517091580666602, 0.015377059578895569, -0.05116961523890495, -0.030370036140084267, 0.014561465941369534, 0.00036833880585618317, 0.0030662990175187588, -0.013447833247482777, 0.02394195646047592, 0.007975037209689617, -0.07055103778839111, -0.0039993105456233025, -0.03457266464829445, 0.014973021112382412, -0.04415763542056084, 0.027071118354797363, 0.015151196159422398, -0.02451704628765583, 0.009685755707323551, 0.03854411467909813, -0.010126628912985325, -0.012586366385221481, 0.002321603475138545, -0.0003892664099112153, 0.022298850119113922, 0.049228981137275696, -0.03638474643230438, 0.03123253956437111, -0.010585350915789604, -0.029779138043522835, 0.027164679020643234, 0.010812639258801937, -0.031181741505861282, 0.055730924010276794, -0.005233298055827618, 0.025392506271600723, -0.006698084529489279, -0.0305075254291296, 0.035003911703825, 0.046222664415836334, -0.009942231699824333, -0.022399146109819412, -0.009133247658610344, 0.011589973233640194, 0.0028436111751943827, -0.006208776496350765, -0.007764595095068216, -0.03187837824225426, 0.024228334426879883, 0.020320121198892593, 0.007764869835227728, -0.01519849430769682, -0.020917756482958794, 0.001478303107433021, -0.011085928417742252, 0.01520361378788948, -0.032138582319021225, 0.01282505877315998, 0.03361893445253372, -0.023239877074956894, 0.03858247026801109, 0.03839379549026489, -0.027364755049347878, -0.018458276987075806, -0.04290534928441048, 0.0031106648966670036, -0.0015972929541021585, 0.012043026275932789, 0.0758545994758606, -0.04014160856604576, -0.027059976011514664, -0.048967741429805756, 0.02139487862586975, 0.0382528118789196, 0.005678572691977024, -0.013195276260375977, 0.0020647707860916853, 0.005640734452754259], index=0, object='embedding')], model='thenlper/gte-large', object='list', usage=Usage(prompt_tokens=10, total_tokens=10), id='octoai-5efbc66e-f050-447c-898d-c3f1d367fba2', created=1708632465)

License

This project is licensed under the MIT License.