mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-14 22:33:48 +00:00
Some checks failed
SqlStore Integration Tests / test-postgres (3.12) (push) Failing after 0s
Integration Auth Tests / test-matrix (oauth2_token) (push) Failing after 1s
Test External Providers Installed via Module / test-external-providers-from-module (venv) (push) Has been skipped
Integration Tests (Replay) / Integration Tests (, , , client=, ) (push) Failing after 2s
Python Package Build Test / build (3.13) (push) Failing after 0s
Python Package Build Test / build (3.12) (push) Failing after 2s
SqlStore Integration Tests / test-postgres (3.13) (push) Failing after 5s
Vector IO Integration Tests / test-matrix (push) Failing after 4s
API Conformance Tests / check-schema-compatibility (push) Successful in 9s
Unit Tests / unit-tests (3.12) (push) Failing after 3s
Test External API and Providers / test-external (venv) (push) Failing after 5s
Unit Tests / unit-tests (3.13) (push) Failing after 3s
UI Tests / ui-tests (22) (push) Successful in 40s
Pre-commit / pre-commit (push) Successful in 1m28s
# What does this PR do? Add Open AI Compatible vector store file batches api. This functionality is needed to attach many files to a vector store as a batch. https://github.com/llamastack/llama-stack/issues/3533 API Stubs have been merged https://github.com/llamastack/llama-stack/pull/3615 Adds persistence for file batches as discussed in diff https://github.com/llamastack/llama-stack/pull/3544 (Used claude code for generation and reviewed by me) ## Test Plan 1. Unit tests pass 2. Also verified the cc-vec integration with LLamaStackClient works with the file batches api. https://github.com/raghotham/cc-vec 2. Integration tests pass
423 lines
11 KiB
JSON
423 lines
11 KiB
JSON
{
|
|
"test_id": null,
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "all-minilm:l6-v2",
|
|
"input": [
|
|
"This is batch test file 1"
|
|
],
|
|
"encoding_format": "float"
|
|
},
|
|
"endpoint": "/v1/embeddings",
|
|
"model": "all-minilm:l6-v2"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
|
|
"__data__": {
|
|
"data": [
|
|
{
|
|
"embedding": [
|
|
-0.009745733,
|
|
0.03363038,
|
|
-0.10852256,
|
|
0.026609829,
|
|
-0.0060599064,
|
|
-0.020473678,
|
|
0.0692486,
|
|
0.032276765,
|
|
-0.11532835,
|
|
-0.0005207133,
|
|
0.11814916,
|
|
0.0119809555,
|
|
0.03685765,
|
|
-0.10744223,
|
|
-0.046515625,
|
|
0.0015449532,
|
|
-0.06319664,
|
|
-0.04640812,
|
|
-0.037318822,
|
|
-0.025718328,
|
|
-0.00026058854,
|
|
-0.011890766,
|
|
-0.050925612,
|
|
0.014111713,
|
|
0.029467698,
|
|
0.006379121,
|
|
-0.012013293,
|
|
-0.0024293982,
|
|
-0.044318773,
|
|
-0.08100101,
|
|
0.02009568,
|
|
0.055713937,
|
|
0.078816675,
|
|
0.054973654,
|
|
0.20367871,
|
|
-0.004309458,
|
|
0.03877001,
|
|
0.03825522,
|
|
-0.002538199,
|
|
-0.0007973801,
|
|
0.044761047,
|
|
-0.054529082,
|
|
-0.008856888,
|
|
-0.04078078,
|
|
0.011367262,
|
|
-0.022404457,
|
|
-0.06209053,
|
|
0.02558725,
|
|
-0.0034454092,
|
|
-0.03743928,
|
|
-0.062026348,
|
|
-0.030812219,
|
|
-0.034592565,
|
|
-0.014926672,
|
|
0.018588377,
|
|
0.013435887,
|
|
0.08169151,
|
|
0.053658403,
|
|
-0.03557856,
|
|
0.033325985,
|
|
-0.01637577,
|
|
-0.0222152,
|
|
-0.039247517,
|
|
0.00094368146,
|
|
0.10228945,
|
|
-0.04305617,
|
|
-0.052200828,
|
|
-0.02007385,
|
|
0.054805383,
|
|
-0.08231377,
|
|
-0.14736547,
|
|
0.048954617,
|
|
-0.0212168,
|
|
0.02872658,
|
|
-0.0671409,
|
|
0.021436114,
|
|
-0.023599947,
|
|
0.03677982,
|
|
0.010577411,
|
|
-0.0966004,
|
|
-0.06367233,
|
|
-0.10277648,
|
|
0.0273993,
|
|
-0.06292906,
|
|
-0.046344172,
|
|
0.039919835,
|
|
0.02682899,
|
|
0.025460077,
|
|
-0.013083559,
|
|
-0.002667712,
|
|
-0.016529463,
|
|
0.012605053,
|
|
-0.0064383023,
|
|
0.015841383,
|
|
-0.01710707,
|
|
0.12320292,
|
|
-0.0077660284,
|
|
0.05845043,
|
|
0.07362552,
|
|
0.038426086,
|
|
0.004742023,
|
|
-0.0155985365,
|
|
0.01418979,
|
|
0.07865995,
|
|
-0.026352523,
|
|
-0.037174653,
|
|
0.06787817,
|
|
-0.060126718,
|
|
0.06111402,
|
|
-0.034931272,
|
|
-0.009446326,
|
|
-0.006150886,
|
|
0.02892313,
|
|
-0.09361577,
|
|
0.0335364,
|
|
-0.09088912,
|
|
0.009241144,
|
|
0.07092964,
|
|
-0.08954648,
|
|
0.04494549,
|
|
0.040462427,
|
|
-0.04167353,
|
|
0.0076030386,
|
|
-0.0066417656,
|
|
-0.07275736,
|
|
-0.043690544,
|
|
0.07685007,
|
|
-1.0508795e-33,
|
|
-0.019583685,
|
|
-0.13087204,
|
|
-0.03574564,
|
|
0.070223756,
|
|
0.08133056,
|
|
-0.009436003,
|
|
0.046778366,
|
|
0.03478148,
|
|
-0.09441185,
|
|
-0.040857755,
|
|
-0.02127058,
|
|
-0.106959894,
|
|
0.024023255,
|
|
0.022780996,
|
|
-0.09042505,
|
|
-0.035755932,
|
|
0.011359196,
|
|
0.050059184,
|
|
0.0050815986,
|
|
-0.07676938,
|
|
0.05453651,
|
|
0.04191775,
|
|
-0.009206564,
|
|
-0.022437057,
|
|
-0.04617258,
|
|
-0.038608693,
|
|
-0.00036489012,
|
|
-0.025092375,
|
|
0.039146807,
|
|
-0.0072839926,
|
|
0.03675482,
|
|
-0.011301064,
|
|
-0.08863303,
|
|
0.059421506,
|
|
0.015851071,
|
|
0.033407707,
|
|
0.056883834,
|
|
-0.01203776,
|
|
0.027333334,
|
|
-0.009560535,
|
|
-0.05030555,
|
|
-0.009787559,
|
|
0.023205005,
|
|
-0.007937716,
|
|
0.003991047,
|
|
-0.036422852,
|
|
-0.06979188,
|
|
0.046075627,
|
|
0.056377746,
|
|
0.0071927872,
|
|
-0.00020658698,
|
|
0.017678235,
|
|
0.023745935,
|
|
-0.0031295705,
|
|
0.016370842,
|
|
0.027585855,
|
|
-0.03440131,
|
|
-0.05594279,
|
|
0.036442764,
|
|
0.03577988,
|
|
-0.005324585,
|
|
0.015240975,
|
|
-0.09071462,
|
|
0.072764605,
|
|
0.02343818,
|
|
-0.093097225,
|
|
0.05842133,
|
|
-0.061913762,
|
|
0.045556016,
|
|
0.07639311,
|
|
-0.035199754,
|
|
-0.009256856,
|
|
0.038682748,
|
|
-0.040795818,
|
|
0.017686425,
|
|
-0.025513103,
|
|
0.06860537,
|
|
0.085520275,
|
|
-0.1023457,
|
|
-0.0036474275,
|
|
-0.014826131,
|
|
-0.05045756,
|
|
-0.09065474,
|
|
-0.076476775,
|
|
-0.008538021,
|
|
-0.04111943,
|
|
-0.035473913,
|
|
-0.061549038,
|
|
0.114327826,
|
|
-0.09601482,
|
|
0.022990143,
|
|
0.0022396755,
|
|
-0.023026146,
|
|
-0.028128328,
|
|
0.07969127,
|
|
-4.1765383e-34,
|
|
0.07866384,
|
|
0.11484068,
|
|
0.016687382,
|
|
0.009315677,
|
|
0.01664128,
|
|
0.024303248,
|
|
0.046507504,
|
|
-0.043804675,
|
|
-0.09136995,
|
|
0.106353745,
|
|
-0.06948852,
|
|
0.018747667,
|
|
0.0053492193,
|
|
-0.033229355,
|
|
0.042339083,
|
|
-0.0017468681,
|
|
0.05323157,
|
|
0.0058223205,
|
|
-0.05331342,
|
|
0.016506517,
|
|
-0.02325185,
|
|
0.097519755,
|
|
-0.0045558517,
|
|
0.08866843,
|
|
-0.028221445,
|
|
-0.012007969,
|
|
-0.009742725,
|
|
0.061458003,
|
|
0.01574456,
|
|
-0.00039456616,
|
|
0.02444834,
|
|
0.065891184,
|
|
-0.054779086,
|
|
0.04863689,
|
|
0.043890025,
|
|
-0.062467597,
|
|
0.07615393,
|
|
0.0067509366,
|
|
0.019150084,
|
|
0.06994535,
|
|
0.027900916,
|
|
0.08902746,
|
|
-0.027433047,
|
|
0.031390887,
|
|
0.02271287,
|
|
0.08119532,
|
|
0.06855678,
|
|
0.0023552915,
|
|
-0.06764184,
|
|
0.00704173,
|
|
-0.034521427,
|
|
-0.053785548,
|
|
-0.03075216,
|
|
0.007947864,
|
|
-0.025317406,
|
|
-0.040664013,
|
|
0.036144093,
|
|
0.017730465,
|
|
-0.040179063,
|
|
0.013665757,
|
|
0.004815376,
|
|
0.009095556,
|
|
0.0072483593,
|
|
0.012753351,
|
|
-0.047865536,
|
|
-0.046072423,
|
|
-0.014048283,
|
|
0.031082962,
|
|
-0.034945205,
|
|
-0.023550391,
|
|
0.033062257,
|
|
-0.022966444,
|
|
0.007744228,
|
|
0.015939556,
|
|
-0.0012224894,
|
|
0.0010534802,
|
|
-0.015109,
|
|
-0.021597888,
|
|
-0.029862719,
|
|
0.03983828,
|
|
0.062536344,
|
|
0.0106168175,
|
|
-0.027220478,
|
|
0.02410377,
|
|
-0.0023566757,
|
|
0.085310005,
|
|
0.04843323,
|
|
0.090823516,
|
|
0.005126319,
|
|
0.020297319,
|
|
-0.01739127,
|
|
0.047677357,
|
|
0.11080086,
|
|
0.030030197,
|
|
0.029773563,
|
|
-1.5454503e-08,
|
|
-0.03580758,
|
|
-0.12177604,
|
|
0.019753791,
|
|
0.05854353,
|
|
-0.01590761,
|
|
0.085781366,
|
|
-0.09558486,
|
|
-0.0016744126,
|
|
0.00773199,
|
|
-0.04790156,
|
|
0.01175936,
|
|
0.006536077,
|
|
-0.032027386,
|
|
0.0031026274,
|
|
-0.07580574,
|
|
-0.039700802,
|
|
-0.00170645,
|
|
-0.070955865,
|
|
0.043680355,
|
|
0.029966798,
|
|
0.0039943648,
|
|
0.031923376,
|
|
0.08119928,
|
|
0.038820695,
|
|
0.013302812,
|
|
0.041675337,
|
|
0.044349737,
|
|
0.060403902,
|
|
-0.1058191,
|
|
-0.05287386,
|
|
0.050275758,
|
|
0.039101604,
|
|
0.0599918,
|
|
-0.025067834,
|
|
-0.019554066,
|
|
0.06748813,
|
|
0.12508559,
|
|
0.059007537,
|
|
-0.019899847,
|
|
-0.030194808,
|
|
-0.046559453,
|
|
0.034567222,
|
|
-0.021644907,
|
|
-0.03327634,
|
|
-0.0075667608,
|
|
-0.100658834,
|
|
-0.0639619,
|
|
-0.055270903,
|
|
-0.0111757815,
|
|
-0.11671873,
|
|
-0.07208087,
|
|
0.023208033,
|
|
0.027215267,
|
|
0.063635156,
|
|
-0.05858023,
|
|
0.020345282,
|
|
0.018325811,
|
|
-0.0036095325,
|
|
0.006916675,
|
|
0.06541716,
|
|
0.009575581,
|
|
0.046839867,
|
|
0.0070611075,
|
|
-0.09470841
|
|
],
|
|
"index": 0,
|
|
"object": "embedding"
|
|
}
|
|
],
|
|
"model": "all-minilm:l6-v2",
|
|
"object": "list",
|
|
"usage": {
|
|
"prompt_tokens": 6,
|
|
"total_tokens": 6
|
|
}
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
}
|
|
}
|