mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-15 14:43:48 +00:00
# What does this PR do? This PR extends the Llama Stack Batches API to support the /v1/embeddings endpoint, enabling efficient batch processing of embedding requests alongside the existing /v1/chat/completions and /v1/completions support. <!-- If resolving an issue, uncomment and update the line below --> <!-- Closes #[issue-number] --> Closes: https://github.com/llamastack/llama-stack/issues/3145 ## Test Plan <!-- Describe the tests you ran to verify your changes with result summaries. *Provide clear instructions so the plan can be easily re-executed.* --> ``` (stack-client) ➜ llama-stack git:(support/embeddings-api) conda activate stack-client && python -m pytest tests/unit/providers/batches/test_reference.py -v ============================================================================================================================================ test session starts ============================================================================================================================================= platform darwin -- Python 3.12.11, pytest-7.4.4, pluggy-1.5.0 -- /Users/vnarsing/miniconda3/envs/stack-client/bin/python cachedir: .pytest_cache metadata: {'Python': '3.12.11', 'Platform': 'macOS-15.6.1-arm64-arm-64bit', 'Packages': {'pytest': '7.4.4', 'pluggy': '1.5.0'}, 'Plugins': {'asyncio': '0.23.8', 'cov': '6.0.0', 'timeout': '2.2.0', 'socket': '0.7.0', 'xdist': '3.8.0', 'html': '3.1.1', 'langsmith': '0.3.39', 'anyio': '4.8.0', 'metadata': '3.0.0'}} rootdir: /Users/vnarsing/go/src/github/meta-llama/llama-stack configfile: pyproject.toml plugins: asyncio-0.23.8, cov-6.0.0, timeout-2.2.0, socket-0.7.0, xdist-3.8.0, html-3.1.1, langsmith-0.3.39, anyio-4.8.0, metadata-3.0.0 asyncio: mode=Mode.AUTO collected 46 items tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_and_retrieve_batch_success PASSED [ 2%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_without_metadata PASSED [ 4%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_completion_window PASSED [ 6%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_invalid_endpoints[/v1/invalid/endpoint] PASSED [ 8%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_invalid_endpoints[] PASSED [ 10%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_invalid_metadata PASSED [ 13%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_retrieve_batch_not_found PASSED [ 15%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_cancel_batch_success PASSED [ 17%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_cancel_batch_invalid_statuses[failed] PASSED [ 19%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_cancel_batch_invalid_statuses[expired] PASSED [ 21%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_cancel_batch_invalid_statuses[completed] PASSED [ 23%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_cancel_batch_not_found PASSED [ 26%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_empty PASSED [ 28%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_single_batch PASSED [ 30%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_multiple_batches PASSED [ 32%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_with_limit PASSED [ 34%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_with_pagination PASSED [ 36%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_list_batches_invalid_after PASSED [ 39%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_kvstore_persistence PASSED [ 41%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_file_not_found PASSED [ 43%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_file_exists_empty_content PASSED [ 45%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_file_mixed_valid_invalid_json PASSED [ 47%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_model PASSED [ 50%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[custom_id-custom_id-missing_required_parameter-Missing required parameter: custom_id] PASSED [ 52%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[method-method-missing_required_parameter-Missing required parameter: method] PASSED [ 54%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[url-url-missing_required_parameter-Missing required parameter: url] PASSED [ 56%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[body-body-missing_required_parameter-Missing required parameter: body] PASSED [ 58%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[model-body.model-invalid_request-Model parameter is required] PASSED [ 60%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_chat_completions[messages-body.messages-invalid_request-Messages parameter is required] PASSED [ 63%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[custom_id-custom_id-missing_required_parameter-Missing required parameter: custom_id] PASSED [ 65%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[method-method-missing_required_parameter-Missing required parameter: method] PASSED [ 67%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[url-url-missing_required_parameter-Missing required parameter: url] PASSED [ 69%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[body-body-missing_required_parameter-Missing required parameter: body] PASSED [ 71%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[model-body.model-invalid_request-Model parameter is required] PASSED [ 73%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_missing_parameters_completions[prompt-body.prompt-invalid_request-Prompt parameter is required] PASSED [ 76%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_url_mismatch PASSED [ 78%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_multiple_errors_per_request PASSED [ 80%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_request_format PASSED [ 82%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[custom_id-custom_id-12345-Custom_id must be a string] PASSED [ 84%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[url-url-123-URL must be a string] PASSED [ 86%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[method-method-invalid_value2-Method must be a string] PASSED [ 89%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[body-body-invalid_value3-Body must be a JSON dictionary object] PASSED [ 91%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[model-body.model-123-Model must be a string] PASSED [ 93%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_validate_input_invalid_parameter_types[messages-body.messages-invalid messages format-Messages must be an array] PASSED [ 95%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_max_concurrent_batches PASSED [ 97%] tests/unit/providers/batches/test_reference.py::TestReferenceBatchesImpl::test_create_batch_embeddings_endpoint PASSED [100%] ``` --------- Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com> Co-authored-by: Ashwin Bharambe <ashwin.bharambe@gmail.com>
1206 lines
32 KiB
JSON
1206 lines
32 KiB
JSON
{
|
|
"test_id": "tests/integration/batches/test_batches.py::TestBatchesIntegration::test_batch_e2e_embeddings[emb=ollama/all-minilm:l6-v2]",
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "all-minilm:l6-v2",
|
|
"input": [
|
|
"How are you?",
|
|
"Good morning",
|
|
"Have a great day"
|
|
],
|
|
"encoding_format": "float"
|
|
},
|
|
"endpoint": "/v1/embeddings",
|
|
"model": "all-minilm:l6-v2"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
|
|
"__data__": {
|
|
"data": [
|
|
{
|
|
"embedding": [
|
|
0.0069620265,
|
|
0.01094919,
|
|
0.08730505,
|
|
0.08677503,
|
|
0.026604276,
|
|
-0.067699,
|
|
0.072650306,
|
|
-0.025137117,
|
|
-0.08260308,
|
|
0.016288513,
|
|
-0.0059634144,
|
|
0.021893453,
|
|
-0.014844859,
|
|
0.026276434,
|
|
0.043832693,
|
|
-0.052769832,
|
|
0.058766205,
|
|
-0.12824233,
|
|
-0.09479588,
|
|
0.039485294,
|
|
-0.11324302,
|
|
0.038061623,
|
|
0.029431377,
|
|
0.11588057,
|
|
-0.026578259,
|
|
-0.004148723,
|
|
-0.042966843,
|
|
-0.007125199,
|
|
0.021863377,
|
|
-0.066874556,
|
|
-0.12788324,
|
|
0.04219816,
|
|
-0.08644679,
|
|
-0.03378584,
|
|
-0.0387981,
|
|
-0.012082744,
|
|
-0.01377726,
|
|
-0.109074354,
|
|
-0.015455687,
|
|
0.00926984,
|
|
0.031882305,
|
|
-0.030273998,
|
|
-0.018641746,
|
|
-0.031002996,
|
|
0.07745517,
|
|
-0.03599416,
|
|
0.016853025,
|
|
0.04181667,
|
|
0.09213733,
|
|
0.025376223,
|
|
-0.096536845,
|
|
-0.03958827,
|
|
-0.04546788,
|
|
0.022860946,
|
|
-0.004847932,
|
|
-0.007844372,
|
|
-0.04907143,
|
|
0.05842486,
|
|
0.058869448,
|
|
-0.0311611,
|
|
0.052651893,
|
|
0.0058047865,
|
|
-0.07925791,
|
|
0.034241866,
|
|
0.061405163,
|
|
0.01727779,
|
|
-0.037056115,
|
|
-0.0431168,
|
|
-0.03700382,
|
|
-0.014409387,
|
|
-0.0349633,
|
|
-0.07832774,
|
|
0.06407517,
|
|
0.041914545,
|
|
0.015118112,
|
|
-0.07118399,
|
|
0.060636368,
|
|
-0.07046343,
|
|
0.095750414,
|
|
0.05210073,
|
|
0.035014015,
|
|
0.02561262,
|
|
-0.0084085055,
|
|
0.024139598,
|
|
-0.1008911,
|
|
-0.050012913,
|
|
0.06554008,
|
|
0.06784252,
|
|
0.014911199,
|
|
0.021127723,
|
|
-0.016916825,
|
|
0.05327187,
|
|
0.060536385,
|
|
0.004947355,
|
|
0.044616435,
|
|
0.01850348,
|
|
0.07844247,
|
|
0.01610686,
|
|
-0.07016926,
|
|
0.17061207,
|
|
0.009558954,
|
|
0.07672501,
|
|
0.03883033,
|
|
-0.039801788,
|
|
-0.015828522,
|
|
-0.018782567,
|
|
-0.05314649,
|
|
0.06397424,
|
|
-0.0017792752,
|
|
-0.065490805,
|
|
-0.018281994,
|
|
-0.014554831,
|
|
-0.0068800277,
|
|
0.059996247,
|
|
0.026568834,
|
|
0.033968493,
|
|
0.054951597,
|
|
0.078294225,
|
|
0.04026787,
|
|
0.027457401,
|
|
0.011338397,
|
|
0.013631172,
|
|
-0.0028005866,
|
|
0.02906015,
|
|
-0.022045234,
|
|
0.04519289,
|
|
0.023878276,
|
|
-4.0817583e-33,
|
|
0.11951192,
|
|
-0.08369012,
|
|
0.0827968,
|
|
0.08484549,
|
|
-0.01620364,
|
|
0.01931262,
|
|
0.022204285,
|
|
-0.027940609,
|
|
0.057476316,
|
|
0.034429334,
|
|
0.09182369,
|
|
0.0101823555,
|
|
-0.029327707,
|
|
-0.026887769,
|
|
0.028785188,
|
|
-0.04777552,
|
|
-0.060430776,
|
|
0.041163843,
|
|
0.008629699,
|
|
0.115784265,
|
|
-0.021419767,
|
|
-0.07631758,
|
|
-0.054899275,
|
|
0.04849591,
|
|
0.01820428,
|
|
-0.02857143,
|
|
-0.051891994,
|
|
-0.066517085,
|
|
-0.029432349,
|
|
-0.018801715,
|
|
-0.057336025,
|
|
0.050356966,
|
|
0.062174562,
|
|
-0.043937422,
|
|
0.04709282,
|
|
0.03493125,
|
|
-0.02043357,
|
|
-0.011575923,
|
|
-0.0011123308,
|
|
0.037825495,
|
|
0.02184749,
|
|
-0.01826203,
|
|
0.040588006,
|
|
-0.056284837,
|
|
-0.035502367,
|
|
-0.04816801,
|
|
-0.028440557,
|
|
0.030739177,
|
|
-0.087275244,
|
|
-0.0694685,
|
|
-0.020636193,
|
|
0.0057930094,
|
|
-0.06391942,
|
|
0.012107013,
|
|
-0.04009067,
|
|
-0.021143993,
|
|
0.004213952,
|
|
0.008591898,
|
|
-0.024006026,
|
|
0.0324714,
|
|
0.03783457,
|
|
0.09099059,
|
|
-0.0062868916,
|
|
-0.088974684,
|
|
-0.14320053,
|
|
-0.009016283,
|
|
-0.045446053,
|
|
-0.0003069883,
|
|
0.06741114,
|
|
-0.1530436,
|
|
-0.002174887,
|
|
0.0029532255,
|
|
-0.0046353145,
|
|
0.057488102,
|
|
0.012418762,
|
|
0.018427594,
|
|
-0.06905235,
|
|
-0.053686094,
|
|
-0.046660636,
|
|
-0.07989403,
|
|
0.010693424,
|
|
0.08947703,
|
|
-0.027004695,
|
|
-0.021568634,
|
|
-0.040594254,
|
|
-0.031580914,
|
|
-0.013580625,
|
|
-0.051635634,
|
|
0.037055064,
|
|
0.08082445,
|
|
-0.0048920843,
|
|
0.018148402,
|
|
0.025499638,
|
|
-0.02505582,
|
|
-0.09722802,
|
|
1.3371345e-33,
|
|
0.052455395,
|
|
-0.021139719,
|
|
-0.05505728,
|
|
0.03206651,
|
|
-0.066784665,
|
|
-0.055702224,
|
|
-0.014446009,
|
|
0.08516562,
|
|
0.03471153,
|
|
0.024656896,
|
|
0.06533943,
|
|
0.018156208,
|
|
0.034035064,
|
|
0.037902445,
|
|
-0.00023498005,
|
|
-0.025868421,
|
|
0.08381628,
|
|
-0.027879614,
|
|
0.0032222737,
|
|
0.02324647,
|
|
-0.07133222,
|
|
0.09625788,
|
|
-0.045015045,
|
|
0.06659545,
|
|
-0.026130881,
|
|
0.008532056,
|
|
-0.00045929194,
|
|
0.017110055,
|
|
-0.06073309,
|
|
-0.032286026,
|
|
0.0014934636,
|
|
-0.034322187,
|
|
-0.083728336,
|
|
0.06859927,
|
|
0.038369313,
|
|
0.07010073,
|
|
0.0033788162,
|
|
-0.0128664365,
|
|
-0.07913289,
|
|
-0.04725289,
|
|
-0.039385278,
|
|
0.023481516,
|
|
-0.029086247,
|
|
0.067320675,
|
|
0.12451372,
|
|
-0.028017303,
|
|
0.036124624,
|
|
0.013133795,
|
|
0.008215629,
|
|
0.059157945,
|
|
0.0030263092,
|
|
-0.012367379,
|
|
-0.034128156,
|
|
0.03490755,
|
|
0.047604892,
|
|
0.008263147,
|
|
0.0022418934,
|
|
-0.04281037,
|
|
0.007698608,
|
|
-0.012741323,
|
|
0.006137873,
|
|
0.019026898,
|
|
-0.027803786,
|
|
-0.018056031,
|
|
0.06762252,
|
|
0.02744791,
|
|
-0.0352131,
|
|
-0.044931725,
|
|
-0.07372794,
|
|
0.02997626,
|
|
-0.07610888,
|
|
0.019982826,
|
|
0.07436165,
|
|
-0.07193991,
|
|
0.025494274,
|
|
0.03235363,
|
|
0.031534728,
|
|
0.022636676,
|
|
-0.0055851312,
|
|
-0.0398378,
|
|
-0.06981347,
|
|
0.02221736,
|
|
0.09897387,
|
|
-0.09406188,
|
|
-0.09095904,
|
|
-0.094901204,
|
|
0.011805468,
|
|
0.0006828259,
|
|
0.06842204,
|
|
0.011328019,
|
|
-0.009800073,
|
|
0.02732526,
|
|
0.042588975,
|
|
-0.0049699764,
|
|
0.0069869496,
|
|
-1.6672951e-08,
|
|
0.006400124,
|
|
-0.008909364,
|
|
0.006461362,
|
|
0.082072794,
|
|
0.026836326,
|
|
0.039794065,
|
|
-0.022391766,
|
|
-0.007853053,
|
|
-0.036337033,
|
|
-0.04923066,
|
|
0.03148229,
|
|
-0.026368985,
|
|
-0.09314845,
|
|
-0.08545302,
|
|
0.034173954,
|
|
-0.028906666,
|
|
0.077192605,
|
|
0.06751202,
|
|
-0.06524724,
|
|
-0.048700843,
|
|
0.039455824,
|
|
-0.006923446,
|
|
-0.0025343136,
|
|
0.051478203,
|
|
-0.034010187,
|
|
0.028947832,
|
|
0.029549884,
|
|
0.06183748,
|
|
0.025608867,
|
|
0.11934708,
|
|
0.10484976,
|
|
0.08736667,
|
|
-0.010165297,
|
|
-0.009555697,
|
|
-0.019218681,
|
|
-0.018595073,
|
|
0.037189815,
|
|
0.020784399,
|
|
0.02202641,
|
|
0.060297336,
|
|
-0.05238963,
|
|
0.0077030538,
|
|
-0.019185953,
|
|
-0.003553766,
|
|
0.020160092,
|
|
-0.055704053,
|
|
0.096336596,
|
|
-0.039617542,
|
|
-0.008140912,
|
|
0.006712462,
|
|
-0.07394944,
|
|
0.024357047,
|
|
0.07899572,
|
|
0.043920882,
|
|
0.0071198526,
|
|
0.035673812,
|
|
0.019155473,
|
|
0.048716854,
|
|
-0.03848996,
|
|
0.0188379,
|
|
0.022161776,
|
|
-0.051058814,
|
|
-0.074823424,
|
|
-0.015351548
|
|
],
|
|
"index": 0,
|
|
"object": "embedding"
|
|
},
|
|
{
|
|
"embedding": [
|
|
-0.03343721,
|
|
0.049560912,
|
|
0.047050487,
|
|
0.043978658,
|
|
0.035338175,
|
|
-0.011890714,
|
|
0.04245718,
|
|
0.031470045,
|
|
0.04293622,
|
|
-0.044294365,
|
|
-0.06597325,
|
|
0.032940995,
|
|
-0.0247847,
|
|
0.056306385,
|
|
-0.019261496,
|
|
0.077105775,
|
|
0.0033309048,
|
|
-0.14142057,
|
|
-0.04281739,
|
|
0.093726546,
|
|
-0.067536496,
|
|
0.013504435,
|
|
0.065051645,
|
|
0.053081397,
|
|
-0.071122356,
|
|
0.003918916,
|
|
0.10802933,
|
|
0.032548733,
|
|
0.040249683,
|
|
-0.118329026,
|
|
-0.06955132,
|
|
0.10413009,
|
|
-0.03137577,
|
|
-0.0287358,
|
|
0.07667822,
|
|
0.008311209,
|
|
0.01329846,
|
|
-0.095602185,
|
|
0.027722612,
|
|
-0.021009775,
|
|
0.07278631,
|
|
-0.022486797,
|
|
-0.01850939,
|
|
0.054257147,
|
|
0.0406722,
|
|
0.032246407,
|
|
0.022768732,
|
|
0.038984485,
|
|
0.11382912,
|
|
0.04124995,
|
|
-0.05496885,
|
|
-0.045736212,
|
|
-0.04908839,
|
|
-0.0597111,
|
|
0.042826593,
|
|
0.05140804,
|
|
-0.012110607,
|
|
-0.018417751,
|
|
0.08427118,
|
|
-0.0055473596,
|
|
0.015597289,
|
|
0.02418129,
|
|
-0.031249756,
|
|
0.020387262,
|
|
0.11433708,
|
|
-0.051274013,
|
|
-0.0386925,
|
|
0.016713846,
|
|
-0.08449619,
|
|
0.0370792,
|
|
-0.005756356,
|
|
-0.004907058,
|
|
0.027494607,
|
|
-0.03673422,
|
|
-0.008244491,
|
|
0.040472392,
|
|
-0.009735739,
|
|
0.0011943391,
|
|
0.1142877,
|
|
-0.008102284,
|
|
-0.050180648,
|
|
-0.0053849323,
|
|
-0.039576985,
|
|
0.029380586,
|
|
-0.024390329,
|
|
0.04567972,
|
|
-0.0053372276,
|
|
0.03033303,
|
|
0.0012185968,
|
|
-0.021535054,
|
|
-0.05335558,
|
|
0.037134368,
|
|
0.017302368,
|
|
-0.02755907,
|
|
0.04263198,
|
|
0.030098636,
|
|
-0.033609867,
|
|
-0.037845384,
|
|
-0.061982516,
|
|
0.1910882,
|
|
0.07157646,
|
|
0.05589665,
|
|
-0.042736474,
|
|
0.032838497,
|
|
0.0062692524,
|
|
-0.04605748,
|
|
-0.056851376,
|
|
0.052537017,
|
|
-0.10145497,
|
|
-0.06655004,
|
|
0.029921545,
|
|
-0.0047280397,
|
|
0.024377555,
|
|
-0.025002962,
|
|
0.062107224,
|
|
0.080466576,
|
|
-0.0371604,
|
|
0.097599484,
|
|
-0.032131996,
|
|
0.035730097,
|
|
-0.016809976,
|
|
-0.036352117,
|
|
0.031635497,
|
|
-0.012653352,
|
|
-0.045253426,
|
|
-0.0029212183,
|
|
0.027009405,
|
|
-1.17418e-33,
|
|
0.123992205,
|
|
0.046342608,
|
|
0.008559601,
|
|
0.08004046,
|
|
0.0017669292,
|
|
-0.007195786,
|
|
0.04694784,
|
|
-0.027429387,
|
|
-0.021160621,
|
|
-0.015509837,
|
|
0.033601534,
|
|
0.07583885,
|
|
-0.05792184,
|
|
-0.012479701,
|
|
-0.021399997,
|
|
0.059393596,
|
|
-0.033957504,
|
|
0.073253185,
|
|
0.01896546,
|
|
0.00988916,
|
|
-0.02561772,
|
|
0.037233494,
|
|
0.05378261,
|
|
0.08345076,
|
|
0.030937353,
|
|
-0.047004256,
|
|
-0.034895707,
|
|
-0.102880456,
|
|
-0.014390994,
|
|
0.0020541775,
|
|
0.04525708,
|
|
-0.024543207,
|
|
0.034396984,
|
|
0.044495404,
|
|
0.022777205,
|
|
-0.032906257,
|
|
0.005113007,
|
|
-0.02360279,
|
|
-0.09544966,
|
|
0.015483764,
|
|
-0.0070620324,
|
|
0.028951883,
|
|
0.040911917,
|
|
-0.0518465,
|
|
-0.030150011,
|
|
-0.026980001,
|
|
-0.024943676,
|
|
0.031786792,
|
|
-0.027682098,
|
|
-0.057204265,
|
|
0.012249942,
|
|
0.014380534,
|
|
-0.11575076,
|
|
-0.032365136,
|
|
-0.06845665,
|
|
-0.021849087,
|
|
-0.04244301,
|
|
0.062867135,
|
|
0.046220545,
|
|
0.0779571,
|
|
-0.010332656,
|
|
0.06670813,
|
|
0.026566902,
|
|
-0.08693371,
|
|
-0.10670888,
|
|
-0.062272597,
|
|
0.020204814,
|
|
-0.049648978,
|
|
0.060845267,
|
|
-0.053523622,
|
|
0.04117337,
|
|
-0.039594717,
|
|
0.06601946,
|
|
0.06250075,
|
|
0.004595632,
|
|
0.0086026,
|
|
0.0018772809,
|
|
0.00048405523,
|
|
0.009107358,
|
|
-0.026627311,
|
|
0.07465299,
|
|
0.017612034,
|
|
0.058446344,
|
|
-0.05802014,
|
|
0.03860909,
|
|
0.050386902,
|
|
0.048826773,
|
|
-0.01052452,
|
|
0.0009781453,
|
|
-0.013527019,
|
|
-0.06439363,
|
|
0.034368027,
|
|
0.07011869,
|
|
0.03524254,
|
|
-0.0837487,
|
|
2.3193607e-33,
|
|
0.09110093,
|
|
0.023464995,
|
|
-0.17480665,
|
|
0.046113294,
|
|
-0.040365938,
|
|
-0.024011146,
|
|
0.056435388,
|
|
0.016907558,
|
|
-0.12567072,
|
|
0.031960107,
|
|
-0.0062446273,
|
|
-0.061454426,
|
|
0.065167435,
|
|
0.005247117,
|
|
0.074547134,
|
|
-0.0567087,
|
|
0.10225782,
|
|
0.046171524,
|
|
-0.051690318,
|
|
0.038285308,
|
|
-0.1145762,
|
|
0.012512791,
|
|
-0.011550446,
|
|
0.024934134,
|
|
-0.048639935,
|
|
0.051862657,
|
|
0.00930002,
|
|
0.06747382,
|
|
-0.052439213,
|
|
-0.041193396,
|
|
0.040648684,
|
|
0.026968153,
|
|
-0.06418471,
|
|
0.00762661,
|
|
0.036696862,
|
|
0.073210746,
|
|
0.028952941,
|
|
-0.035378844,
|
|
0.010157242,
|
|
-0.048371132,
|
|
0.014746441,
|
|
0.05206198,
|
|
-0.049247157,
|
|
0.08650532,
|
|
0.025151266,
|
|
-0.07410052,
|
|
-0.0077393763,
|
|
0.072591476,
|
|
-0.0033177028,
|
|
0.03872032,
|
|
-0.015706064,
|
|
-0.021085871,
|
|
-0.00062487193,
|
|
-0.0027980541,
|
|
-0.033041626,
|
|
-0.0828747,
|
|
0.020620363,
|
|
-0.059320856,
|
|
0.05761976,
|
|
0.039191,
|
|
-0.10919506,
|
|
0.04973389,
|
|
0.018328683,
|
|
0.014107853,
|
|
0.040713586,
|
|
0.015339457,
|
|
-0.073242456,
|
|
0.012108583,
|
|
0.0093227625,
|
|
-0.032315496,
|
|
-0.026866596,
|
|
-0.05125451,
|
|
0.024359334,
|
|
-0.011217118,
|
|
0.047117867,
|
|
0.00033466535,
|
|
0.010994259,
|
|
-0.060987946,
|
|
-0.030848341,
|
|
-0.02774884,
|
|
-0.050323945,
|
|
0.01780588,
|
|
0.038884122,
|
|
0.0029080173,
|
|
-0.050115652,
|
|
-0.12608153,
|
|
0.09675133,
|
|
0.023315206,
|
|
0.033652537,
|
|
-0.046950553,
|
|
-0.020049583,
|
|
0.0145577025,
|
|
-0.08507165,
|
|
-0.020159263,
|
|
0.0048846807,
|
|
-1.4254338e-08,
|
|
-0.030829625,
|
|
-0.022226596,
|
|
0.014015447,
|
|
0.045818005,
|
|
-0.00466287,
|
|
0.010646387,
|
|
-0.04074163,
|
|
-0.017911622,
|
|
-0.015333984,
|
|
0.036582693,
|
|
0.05822764,
|
|
0.09292506,
|
|
-0.061256517,
|
|
-0.01890862,
|
|
0.011198966,
|
|
-0.026512727,
|
|
0.007474336,
|
|
0.032824352,
|
|
-0.033287942,
|
|
-0.026444035,
|
|
-0.024530197,
|
|
0.044718876,
|
|
0.045766443,
|
|
0.00498525,
|
|
0.0858161,
|
|
0.0005709976,
|
|
-0.09247468,
|
|
0.0851635,
|
|
0.032044463,
|
|
0.054132145,
|
|
0.009075579,
|
|
0.11062079,
|
|
-0.10246274,
|
|
-0.027978186,
|
|
-0.037963714,
|
|
-0.009799522,
|
|
0.07379462,
|
|
0.07328145,
|
|
0.017107535,
|
|
-0.06596038,
|
|
-0.03074957,
|
|
-0.06867525,
|
|
0.009267378,
|
|
-0.08653143,
|
|
-0.050690625,
|
|
-0.03302789,
|
|
0.008441075,
|
|
-0.042419374,
|
|
-0.05931559,
|
|
0.0038107636,
|
|
-0.008925102,
|
|
-0.082826234,
|
|
0.012707635,
|
|
0.028753227,
|
|
0.005821868,
|
|
-0.016774626,
|
|
0.026027977,
|
|
-0.015453672,
|
|
-0.044195093,
|
|
-0.023212919,
|
|
0.034165725,
|
|
0.052767526,
|
|
0.049792286,
|
|
0.04779771
|
|
],
|
|
"index": 1,
|
|
"object": "embedding"
|
|
},
|
|
{
|
|
"embedding": [
|
|
-0.075523525,
|
|
0.02527682,
|
|
0.05967143,
|
|
-0.048702575,
|
|
-0.009999652,
|
|
-0.0127215395,
|
|
0.077593714,
|
|
0.03435327,
|
|
0.012108688,
|
|
-0.029198525,
|
|
0.08872028,
|
|
0.083752885,
|
|
0.009050396,
|
|
0.006103784,
|
|
-0.033944063,
|
|
0.0008475549,
|
|
-0.07999163,
|
|
-0.047501646,
|
|
-0.07466069,
|
|
0.013129963,
|
|
-0.016166262,
|
|
-0.012555349,
|
|
0.009951952,
|
|
0.018700073,
|
|
-0.16587994,
|
|
0.035660297,
|
|
0.020247744,
|
|
-0.004851298,
|
|
0.018916108,
|
|
-0.049223512,
|
|
-0.14940114,
|
|
0.066037394,
|
|
0.095587395,
|
|
-0.023433829,
|
|
0.056383938,
|
|
-0.0002691792,
|
|
0.003867362,
|
|
-0.08172911,
|
|
0.07046757,
|
|
-0.018454568,
|
|
0.0015881791,
|
|
-0.010290314,
|
|
0.048989784,
|
|
0.01762784,
|
|
0.06936314,
|
|
0.019082017,
|
|
0.014352334,
|
|
-0.0015133243,
|
|
0.056041166,
|
|
-0.004062598,
|
|
-0.088092774,
|
|
-0.0101555,
|
|
-0.07189387,
|
|
-0.00014898201,
|
|
0.027720913,
|
|
0.12817302,
|
|
-0.01666869,
|
|
-0.032651726,
|
|
0.06956124,
|
|
-0.010005866,
|
|
0.048692912,
|
|
0.051343545,
|
|
0.049818557,
|
|
0.027778273,
|
|
0.07503881,
|
|
-0.10384942,
|
|
-0.052882396,
|
|
0.04831974,
|
|
-0.13253361,
|
|
0.04823366,
|
|
-0.06355945,
|
|
-0.007815479,
|
|
0.08426803,
|
|
0.06839248,
|
|
-0.00089115696,
|
|
0.0550307,
|
|
-0.03483323,
|
|
0.044897463,
|
|
0.05632448,
|
|
0.040626705,
|
|
-0.018259693,
|
|
-0.017169427,
|
|
0.023355052,
|
|
0.0010599073,
|
|
-0.083920546,
|
|
-0.014824099,
|
|
0.0019810472,
|
|
-0.008914795,
|
|
0.05216931,
|
|
-0.013007552,
|
|
-0.06241765,
|
|
0.088266425,
|
|
-0.020624625,
|
|
-0.010565186,
|
|
0.03387624,
|
|
-0.032896634,
|
|
0.027584162,
|
|
0.06140176,
|
|
-0.05649953,
|
|
0.13169001,
|
|
0.03580055,
|
|
0.034740195,
|
|
0.00025404096,
|
|
-0.019271977,
|
|
0.043521438,
|
|
-0.026385438,
|
|
-0.10464285,
|
|
0.03479913,
|
|
-0.09097619,
|
|
-0.07121069,
|
|
0.017202636,
|
|
0.05367353,
|
|
0.06784611,
|
|
0.11754365,
|
|
0.012266213,
|
|
0.024174396,
|
|
-0.038576283,
|
|
0.07442647,
|
|
-0.015460215,
|
|
-0.027320355,
|
|
0.0053612017,
|
|
-0.07064376,
|
|
0.043387093,
|
|
0.06510215,
|
|
0.067798555,
|
|
-0.025894808,
|
|
0.032071106,
|
|
-3.916482e-33,
|
|
0.04579921,
|
|
0.12266688,
|
|
0.023788335,
|
|
0.09849639,
|
|
0.009824968,
|
|
0.05850631,
|
|
-0.06363229,
|
|
0.013609335,
|
|
-0.021318363,
|
|
-0.005576027,
|
|
-0.050703783,
|
|
-0.030871525,
|
|
-0.038143754,
|
|
0.006320834,
|
|
-0.017706675,
|
|
-0.0006155015,
|
|
-0.018226627,
|
|
0.1072818,
|
|
0.052017488,
|
|
-0.00057930633,
|
|
-0.007785786,
|
|
-0.03997464,
|
|
-0.007232867,
|
|
0.059632022,
|
|
-0.006354158,
|
|
-0.023469966,
|
|
0.021212451,
|
|
-0.08246642,
|
|
0.019579455,
|
|
0.007551619,
|
|
-0.10099897,
|
|
-0.06797174,
|
|
-0.010882899,
|
|
0.06988909,
|
|
-0.02137188,
|
|
-0.07802906,
|
|
-0.088137604,
|
|
-0.006203687,
|
|
-0.035839535,
|
|
-0.0040390054,
|
|
0.019918816,
|
|
-0.010801633,
|
|
-0.08162814,
|
|
-0.0032512245,
|
|
-0.040600386,
|
|
-0.08192742,
|
|
0.0682926,
|
|
0.06633641,
|
|
-0.0395632,
|
|
-0.0043761632,
|
|
-0.07984402,
|
|
-0.035650294,
|
|
-0.06232168,
|
|
-0.0242656,
|
|
-0.059556987,
|
|
-0.022764271,
|
|
-0.053822305,
|
|
0.12793463,
|
|
0.052975636,
|
|
0.043549713,
|
|
0.050708994,
|
|
0.08166038,
|
|
-0.08327403,
|
|
-0.080381505,
|
|
-0.04120254,
|
|
-0.0030282405,
|
|
0.047887556,
|
|
0.0016836514,
|
|
-0.04663993,
|
|
0.055887047,
|
|
0.053726807,
|
|
-0.013926298,
|
|
0.09405359,
|
|
-0.062233135,
|
|
0.024512352,
|
|
0.008496787,
|
|
0.061213776,
|
|
0.029902814,
|
|
0.04837825,
|
|
0.014272488,
|
|
0.0072977017,
|
|
0.0079299165,
|
|
0.042296894,
|
|
-0.04521794,
|
|
0.046605933,
|
|
0.00024299505,
|
|
0.022693006,
|
|
-0.010438793,
|
|
0.08995921,
|
|
-0.015472325,
|
|
-0.126904,
|
|
0.039331693,
|
|
0.039659232,
|
|
-0.050487302,
|
|
-0.061920997,
|
|
4.4642215e-33,
|
|
0.10129766,
|
|
0.027161466,
|
|
-0.059524115,
|
|
0.07136239,
|
|
-0.013943489,
|
|
-0.03662881,
|
|
-0.052398663,
|
|
0.021515815,
|
|
-0.049108166,
|
|
0.006149372,
|
|
0.0691721,
|
|
0.06894283,
|
|
-0.037195116,
|
|
0.005472846,
|
|
0.07448842,
|
|
-0.049621485,
|
|
0.05460389,
|
|
0.013648674,
|
|
-0.10413393,
|
|
-0.04322616,
|
|
-0.10156234,
|
|
0.026639054,
|
|
-0.024765702,
|
|
-0.03026698,
|
|
0.0043362495,
|
|
0.063877925,
|
|
0.007930457,
|
|
0.05244102,
|
|
-0.04413401,
|
|
-0.037697483,
|
|
-0.014808346,
|
|
0.04740107,
|
|
-0.12069513,
|
|
0.021242734,
|
|
0.005062712,
|
|
0.02754677,
|
|
0.089413024,
|
|
-0.017842088,
|
|
-0.044801895,
|
|
0.022731086,
|
|
-0.012965577,
|
|
0.004509326,
|
|
-0.0013325807,
|
|
0.04949399,
|
|
-0.009911497,
|
|
-0.011362206,
|
|
0.054088496,
|
|
-0.027890686,
|
|
0.07090775,
|
|
0.0731208,
|
|
-0.0095167635,
|
|
0.00246136,
|
|
-0.04014402,
|
|
0.0013154474,
|
|
-0.0073115155,
|
|
-0.04271233,
|
|
-0.046457898,
|
|
-0.07000201,
|
|
-0.009631684,
|
|
0.01803729,
|
|
-0.08605493,
|
|
-0.08164771,
|
|
-0.03272842,
|
|
0.0011325047,
|
|
0.08289893,
|
|
-0.030911505,
|
|
-0.024537822,
|
|
0.055442885,
|
|
-0.040067412,
|
|
0.013888838,
|
|
-0.07284885,
|
|
0.0023484977,
|
|
-0.057206854,
|
|
0.022467189,
|
|
-0.023729995,
|
|
0.034355275,
|
|
-0.018349517,
|
|
-0.029528793,
|
|
-0.021843866,
|
|
0.008032472,
|
|
-0.023357753,
|
|
0.067088224,
|
|
0.005294365,
|
|
-0.024430374,
|
|
-0.019369498,
|
|
-0.109176144,
|
|
-0.01490418,
|
|
0.042795096,
|
|
-0.012001356,
|
|
0.037037082,
|
|
-0.0672771,
|
|
0.03180879,
|
|
0.04468346,
|
|
0.015854714,
|
|
0.0032342928,
|
|
-1.6160763e-08,
|
|
0.013496305,
|
|
0.09897777,
|
|
-0.031063609,
|
|
0.0028211512,
|
|
0.032273874,
|
|
0.023351071,
|
|
0.03805213,
|
|
-0.062018104,
|
|
-0.034577433,
|
|
0.043238945,
|
|
0.0082845185,
|
|
0.025489045,
|
|
-0.04456483,
|
|
0.025501892,
|
|
0.08934958,
|
|
0.01234487,
|
|
-0.02929869,
|
|
-0.005623999,
|
|
0.00687474,
|
|
0.015289362,
|
|
-0.010576751,
|
|
-0.020772502,
|
|
0.04376376,
|
|
0.099957116,
|
|
0.04056933,
|
|
0.018252485,
|
|
-0.0063662603,
|
|
0.08044274,
|
|
-0.007315223,
|
|
0.010589869,
|
|
-0.018971821,
|
|
0.10834696,
|
|
-0.04208067,
|
|
-0.051403604,
|
|
-0.007071271,
|
|
-0.06431493,
|
|
0.053990707,
|
|
0.00036957764,
|
|
0.12660533,
|
|
-0.034871798,
|
|
-0.013751049,
|
|
0.003618815,
|
|
0.0409129,
|
|
0.00097652036,
|
|
-0.030046517,
|
|
-0.046951715,
|
|
-0.000683113,
|
|
-0.0034426234,
|
|
-0.055673465,
|
|
-0.011067276,
|
|
0.03669483,
|
|
0.028998604,
|
|
0.079799,
|
|
0.061878074,
|
|
-0.048468277,
|
|
-0.0022916084,
|
|
-0.017985595,
|
|
0.06437586,
|
|
-0.017347652,
|
|
0.022508401,
|
|
0.05077104,
|
|
0.032550838,
|
|
-0.04261378,
|
|
0.041284833
|
|
],
|
|
"index": 2,
|
|
"object": "embedding"
|
|
}
|
|
],
|
|
"model": "all-minilm:l6-v2",
|
|
"object": "list",
|
|
"usage": {
|
|
"prompt_tokens": 10,
|
|
"total_tokens": 10
|
|
}
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
},
|
|
"id_normalization_mapping": {}
|
|
}
|