AINPC-Embedding
    AINPC-Embedding
    • tests
    • get_model_types
      GET
    • embeddings
      POST
    • get_collection_config
      GET

      embeddings

      Developing
      POST
      /v1/embeddings

      Request

      Body Params application/json
      object {0}
      Example
      {
          "input": ["hello", "hi"],
          "model": "text2vec-base-chinese"
      }
      

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/v1/embeddings' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "input": ["hello", "hi"],
          "model": "text2vec-base-chinese"
      }'

      Responses

      🟢200OK
      application/json
      Body
      object {0}
      Example
      {
          "object": "list",
          "data": [
              {
                  "object": "embedding",
                  "index": 0,
                  "embedding": [
                      0.15866942703723907,
                      0.03494240716099739,
                      -0.10845440626144409,
                      -0.0035911824088543653,
                      0.11970027536153793,
                      0.06409433484077454,
                      -0.0386371947824955,
                      0.011517037637531757,
                      -0.011208765208721161,
                      -0.008265809156000614,
                      0.14186809957027435,
                      0.016848647966980934,
                      0.037681832909584045,
                      -0.12274696677923203,
                      0.08881771564483643,
                      -0.31171441078186035,
                      0.16684740781784058,
                      -0.024881331250071526,
                      -0.1297973245382309,
                      0.05193355306982994,
                      -0.056328024715185165,
                      0.05806131288409233,
                      0.06250610202550888,
                      0.07743582874536514,
                      0.11249128729104996,
                      -0.09066843241453171,
                      -0.06642712652683258,
                      0.07458191365003586,
                      -0.0029806680977344513,
                      0.06034848093986511,
                      -0.13843019306659698,
                      -0.0987725630402565,
                      0.024465719237923622,
                      -0.06327284127473831,
                      0.03272221237421036,
                      -0.09293052554130554,
                      0.07109467685222626,
                      0.006998663768172264,
                      -0.08684142678976059,
                      -0.004653821233659983,
                      0.045038532465696335,
                      0.05599956214427948,
                      0.08151689171791077,
                      0.050444334745407104,
                      0.04046836867928505,
                      -0.03915558382868767,
                      0.12253018468618393,
                      0.0672742947936058,
                      -0.14766840636730194,
                      0.1773790568113327,
                      0.03310277685523033,
                      -0.07571586966514587,
                      -0.22678686678409576,
                      -0.16087593138217926,
                      0.1343977302312851,
                      0.08488177508115768,
                      0.00445587420836091,
                      -0.08544954657554626,
                      0.047565918415784836,
                      -0.13712160289287567,
                      0.011953442357480526,
                      -0.006774129346013069,
                      -0.1199553832411766,
                      -0.08276405185461044,
                      0.08797049522399902,
                      0.0980457067489624,
                      0.026466334238648415,
                      0.04116853326559067,
                      -0.003712675767019391,
                      0.07874060422182083,
                      0.029170269146561623,
                      0.00382206030189991,
                      0.023257384076714516,
                      0.2629343271255493,
                      -0.013162598013877869,
                      0.039664629846811295,
                      -0.08866777271032333,
                      0.12049365788698196,
                      0.0506768524646759,
                      -0.05213527753949165,
                      -0.04790928587317467,
                      0.15773193538188934,
                      -0.017511596903204918,
                      0.1372230499982834,
                      0.025146394968032837,
                      0.07622025907039642,
                      -0.03785610571503639,
                      -0.0681796744465828,
                      0.0016085151582956314,
                      -0.12169616669416428,
                      -0.05416715145111084,
                      -0.14941434562206268,
                      0.07389345020055771,
                      0.15516166388988495,
                      0.21221596002578735,
                      -0.0848965048789978,
                      -0.007728128228336573,
                      0.07329143583774567,
                      -0.018790872767567635,
                      -0.19265055656433105,
                      0.0029647760093212128,
                      0.13707061111927032,
                      -0.07786761969327927,
                      0.07647090405225754,
                      0.04125991836190224,
                      0.17471186816692352,
                      0.07202094048261642,
                      -0.21407300233840942,
                      -0.06303700804710388,
                      0.2340710163116455,
                      -0.09367407113313675,
                      0.059870511293411255,
                      -0.02871568500995636,
                      0.02834528684616089,
                      0.016582466661930084,
                      -0.0429968386888504,
                      0.11593047529459,
                      0.0795106515288353,
                      0.14112801849842072,
                      0.13486669957637787,
                      -0.17545507848262787,
                      -0.04645703732967377,
                      0.05887506529688835,
                      0.14437662065029144,
                      -0.07500859349966049,
                      -0.07549379765987396,
                      -0.08998885005712509,
                      0.12463410943746567,
                      -0.1337302327156067,
                      -0.069
      🟠422Parameter Error
      Previous
      get_model_types
      Next
      get_collection_config
      Built with