llama-stack-mirror/tests/integration/common/recordings/8b6244e7be7e4d03874b13df9cb5af4cccef848e79440e4298528185efe45ed4.json
slekkala1 bba9957edd
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
feat(api): Add vector store file batches api (#3642)
# 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
2025-10-06 16:58:22 -07:00

807 lines
21 KiB
JSON

{
"test_id": null,
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "nomic-embed-text:latest",
"input": [
"This is the content of test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "nomic-embed-text:latest"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.036525182,
-0.0072787926,
-0.15320797,
-0.028591355,
0.028115708,
-0.0033384967,
0.021494914,
-0.023697548,
-0.059428893,
-0.04412936,
-0.014445912,
0.06520278,
0.013848802,
-0.029918822,
-0.022794332,
-0.012578859,
0.060358867,
-0.031223036,
-0.012306958,
-0.028883344,
-0.014677056,
-0.024171423,
-0.047258105,
-0.019668069,
0.10096786,
0.042677063,
-0.012945782,
0.05772575,
-0.09481949,
-0.013522372,
0.058091108,
-0.035321448,
0.02014728,
-0.06760144,
-0.012323442,
-0.045392025,
0.04685687,
0.024927035,
-0.0017673819,
0.036423087,
-0.020881223,
-0.010788712,
-0.01838111,
-0.007801951,
-0.011164214,
-0.022797823,
-0.01222212,
0.05638416,
-0.01662934,
-0.04117776,
0.004534807,
0.019233605,
-0.008680182,
0.03177389,
0.06082287,
-0.010224672,
-0.018689552,
-0.019074611,
0.029412521,
-0.06990004,
0.054043073,
0.027053045,
-0.049923293,
0.058975294,
0.0018301148,
-0.06718531,
-0.044889167,
0.032761537,
-0.022604113,
0.043496683,
0.08500273,
0.008184364,
0.0011824819,
-0.0417156,
-0.015855035,
-0.06935983,
0.01533393,
-0.03297617,
-0.043794934,
0.008973833,
0.0415081,
0.037018586,
0.004035694,
0.0067175985,
0.058073524,
-0.033033613,
-0.049569633,
-0.011724681,
-0.0049699075,
0.04405061,
0.02349984,
0.049434863,
0.05952279,
0.007926657,
-0.019564645,
0.028824113,
0.030559592,
0.044332445,
-0.03705847,
0.013914022,
-0.01584405,
0.012503536,
0.039434463,
0.020927113,
0.02458832,
0.033364173,
-0.0013068066,
0.025197528,
-0.05292493,
0.010358094,
-0.018871995,
0.039280638,
-0.048534855,
0.004642058,
0.011491514,
-0.036328327,
0.0637683,
-0.0360448,
-0.04317744,
0.03721341,
0.009880729,
-0.032810695,
0.012197031,
0.06644975,
0.04497407,
0.0018043267,
-0.076117076,
0.0028520897,
0.025521474,
-0.04780887,
-0.015784036,
-0.004914463,
-0.0003810333,
-0.008213055,
-0.0040868036,
0.0026211734,
0.005037653,
-0.0054035867,
-0.054472372,
-0.04214955,
-0.036636207,
0.005277914,
0.025802922,
0.054448027,
0.010910778,
-0.019098252,
0.06248315,
0.019785397,
-0.02148464,
-0.023303429,
0.0124828555,
-0.02455258,
0.0053893207,
0.006655952,
0.020618292,
-0.05195774,
0.001724354,
-0.049451906,
0.031900283,
0.08541784,
0.02900063,
0.006208959,
-0.009606019,
0.0030572556,
-0.018463623,
0.014401457,
0.0007510511,
0.08289015,
0.062720075,
-0.010840198,
-0.04971401,
-0.038808372,
0.0044536674,
0.011472072,
-0.031167375,
-0.031224154,
0.011706744,
-0.022990009,
0.04747808,
-0.0016337503,
0.015181135,
0.005154193,
0.00949444,
0.042812645,
0.001253686,
-0.050080713,
0.038098942,
-0.014367589,
-0.043111958,
-0.0059632747,
-0.022602718,
-0.0042201183,
-0.09451348,
-0.042164654,
-0.010821582,
-0.04681359,
0.016275495,
-0.0033313567,
0.027538816,
-0.019907625,
0.00040033093,
-0.030824887,
-0.058938056,
0.0014922265,
-0.027667042,
0.015573365,
-0.04173136,
-0.015453809,
-0.01595607,
0.03898053,
0.043484144,
0.0075124763,
-0.0025220348,
0.038111743,
0.041447856,
-0.011153068,
-0.01717726,
-0.045249123,
-0.010734678,
-0.03552057,
0.033035237,
-0.0077519426,
0.048082184,
-0.06981011,
0.034551185,
0.011257734,
-0.043801457,
-0.018373946,
-0.04797999,
-0.017102923,
0.0029698398,
-0.09975526,
0.00053959514,
0.0074329274,
-0.018584883,
-0.0094977375,
-0.05056549,
0.08929669,
0.011828429,
0.040005405,
-0.03369542,
0.07867971,
0.025032107,
0.016890414,
0.014425124,
0.00064274436,
0.009868133,
-0.034772366,
0.05254746,
0.071544185,
-0.01852601,
-0.0013607002,
0.010325862,
0.0647086,
0.013452749,
-0.009807788,
-0.01738053,
-0.012833702,
-0.0037767375,
-0.046967912,
0.017845146,
-0.0682881,
0.011557345,
0.01458601,
-0.048856564,
-0.01423403,
-0.03424404,
0.021640293,
-0.025939032,
-0.001273354,
0.0033471219,
0.02255794,
-0.05386608,
0.02134696,
0.012213072,
-0.027799206,
0.041816894,
0.013318655,
-0.027756989,
0.03054267,
-0.025455547,
0.014977695,
0.03629763,
0.05029929,
0.017317088,
0.0008021539,
-0.027486524,
0.0011794426,
0.021061994,
0.038059466,
0.014114616,
0.014319938,
0.012650396,
0.04102732,
0.018222608,
0.0115328785,
0.043359082,
-0.0028082337,
-0.016893078,
-0.03791571,
0.023969462,
0.0077467947,
0.033167463,
0.018768141,
0.00804635,
-0.05316497,
0.021600094,
-0.032088757,
0.056640208,
0.010592809,
-0.06282453,
-0.003963599,
-0.0054780785,
0.0057015507,
-0.026736109,
0.03140229,
0.021742998,
0.037487593,
0.04916904,
-0.015454876,
0.0036427178,
-0.06809397,
-0.005600329,
0.006426826,
0.029163402,
0.008698685,
0.013447198,
0.028116653,
-0.032959465,
-0.046715226,
0.062885955,
0.07805104,
-0.075704284,
-0.026722923,
0.031568483,
0.029869428,
0.014207811,
0.058283728,
-0.0009454238,
0.049990628,
0.09433687,
0.011483032,
0.0073822956,
0.001765557,
0.014384013,
-0.0805711,
-0.057262138,
0.0033087756,
0.017576102,
0.050261848,
-0.0058530914,
-0.00258757,
0.009722071,
0.0044941446,
0.009631424,
0.027689122,
0.012394503,
-0.04055002,
0.055514883,
-0.028808117,
0.0297643,
-0.034311485,
0.021378465,
-0.033280674,
0.019441161,
-0.009369208,
0.0030489776,
-0.016572703,
0.042294934,
0.015723946,
0.0022674324,
-0.0014906601,
0.01840701,
0.059862193,
0.053135127,
0.020754104,
-0.06374346,
0.001787633,
-0.036681958,
0.03553359,
0.06609074,
-0.0107706385,
0.045129295,
0.06838197,
0.025984539,
-0.06558362,
0.027897354,
-0.00621841,
0.03920637,
0.009362378,
-0.062093496,
0.021269219,
-0.06091154,
-0.027098468,
0.008638457,
-0.050488967,
0.04693317,
0.043328438,
-0.025587596,
0.03407469,
-0.048816204,
-0.004734613,
-0.0008902356,
0.024133636,
-0.022534605,
0.035635088,
-0.053277653,
-0.055609506,
0.0523981,
0.0014473854,
0.032570753,
-0.005762427,
-0.016173452,
-0.06672014,
0.0013724786,
0.007844828,
0.02429992,
0.0032019925,
0.0016553001,
-0.022802994,
0.001800882,
0.032480165,
-0.002195562,
-0.03154405,
-0.013679192,
-0.011184489,
0.033688888,
0.04774288,
0.0018061483,
-0.09035719,
-0.0047670994,
-0.02052915,
0.036272082,
0.020193182,
-0.036813166,
0.039460275,
-0.015967365,
-0.0033895948,
-0.031828586,
0.053221144,
0.021549668,
-0.07595095,
-0.044737455,
-0.010761814,
0.0025511624,
0.14498504,
0.08222001,
-0.037528154,
-0.032176156,
0.013683398,
0.01410672,
0.019557275,
0.062485218,
0.027925756,
0.079192385,
-0.026622739,
0.02323037,
-0.016175434,
-0.032527965,
-0.008870566,
-0.009013046,
-0.009945577,
0.025208296,
0.0073141777,
0.044331536,
-0.020921648,
-0.016868133,
-0.026842397,
0.03165012,
0.043120645,
-0.048179835,
-0.05591947,
0.029399967,
-0.069223806,
0.03508237,
0.00804212,
-0.041150257,
0.008898182,
0.0006015489,
0.023109462,
0.027766718,
0.012039964,
-0.030886615,
-0.030401329,
0.038484607,
-0.0247026,
0.0018090954,
0.028525416,
0.054761168,
-0.0062592058,
0.029739086,
0.033199638,
0.0488184,
0.028191078,
-0.020734766,
0.00060847827,
0.029920708,
-0.0490555,
0.007290553,
0.0026984178,
0.063341014,
0.018249765,
0.019682994,
0.0063302247,
-0.029094942,
-0.030193835,
0.042414594,
-0.05859321,
-0.09094711,
-0.025345713,
-0.034041878,
-0.014829038,
0.0030920506,
0.015670862,
0.073476,
0.017715238,
0.052982714,
0.012198469,
-0.021962965,
0.017349334,
0.025136312,
0.006353252,
0.03436416,
-0.01633907,
-0.08311436,
0.04788054,
0.0032672018,
-0.0318856,
0.06784985,
0.072452076,
0.009116457,
0.017004106,
-0.040795434,
-0.023130566,
-0.0017866351,
-0.020753238,
-0.028738804,
0.0031001552,
-0.012533389,
0.047431413,
-0.059432007,
-0.019904893,
0.009464013,
-0.016388606,
0.028543858,
-0.026128467,
-0.03368374,
-0.0040021804,
3.1505784e-05,
-0.10005339,
0.020524276,
-0.06320255,
-0.026909621,
-0.009929203,
0.03084924,
-0.041759893,
0.02034976,
-0.008311877,
-0.0042031757,
-0.04709363,
0.030620687,
-0.028947143,
-0.007556809,
0.01617724,
0.037857477,
-0.039480377,
-0.008805032,
0.051410846,
0.017079966,
0.0032464731,
0.023022559,
-0.017350538,
0.03471975,
-0.02863222,
-0.024592673,
-0.0077179587,
0.03141146,
0.03583118,
-0.0130302245,
-0.057425633,
0.040003538,
-0.0046423534,
0.019725544,
0.0397109,
-0.0025461344,
0.046675395,
0.011516851,
-0.029444098,
0.03419632,
-0.043872464,
-0.021072017,
-0.010389852,
0.01248914,
-0.03476949,
0.02083105,
-0.021170666,
-0.010824939,
-0.034223318,
0.0008804664,
-0.00975538,
-0.004145119,
0.0062736045,
0.017810361,
-0.05057402,
0.0028876425,
-0.012459405,
0.024415256,
-0.009684934,
-0.032268245,
-1.0135974e-05,
0.015377202,
-0.008089165,
-0.08534785,
0.011209079,
-0.006432232,
-0.05970185,
0.03646468,
-0.024002092,
-0.022855703,
-0.051673587,
0.038473092,
-0.028756764,
0.041329525,
-0.06377881,
-0.014500157,
-0.018372798,
-0.008677442,
0.036858637,
0.038448237,
0.044321943,
-0.046770208,
0.026638264,
-0.04069364,
-0.051563717,
-0.054425545,
-0.007966239,
-0.045169767,
-0.0006122694,
0.013411372,
0.04263278,
0.03749003,
0.010722818,
-0.041889716,
-0.036726084,
0.014166507,
0.038341004,
0.004509263,
0.035988707,
0.02634235,
-0.02256134,
0.08171513,
0.09104147,
0.06757358,
-0.0016213343,
-0.018941583,
-0.0014519675,
0.03409365,
-0.060576558,
-0.028001321,
-0.08352477,
0.011629786,
0.014637305,
-0.021191692,
0.009192876,
0.0025693115,
0.03831378,
-0.00035758872,
-0.032391928,
0.006118005,
-0.05773841,
0.033030152,
0.03268179,
0.031052263,
-0.0018795256,
-0.0463158,
0.017675944,
0.039604764,
0.056545958,
-0.002072885,
-0.0374349,
-0.014934615,
-0.046360567,
0.060439337,
-5.3795357e-05,
0.027416907,
-0.08041611,
0.00016825287,
-0.08668716,
-0.03210328,
0.016515074,
-0.0062253834,
-0.00093463395,
-0.027180947,
-0.049670145,
-0.033094753,
-0.0051170597,
0.031569846,
-0.014995825,
-0.016850019,
0.04239559,
0.020676404,
0.0319851,
-0.008854607,
0.04452473,
-0.023021534,
0.007295005,
0.05227394,
0.0040576537,
-0.0655794,
-0.067981854,
0.03440047,
0.009278226,
-0.0282169,
0.060756575,
-0.020904224,
0.01505642,
-0.0045534745,
0.018723203,
0.0035253377,
0.011872832,
0.042355374,
0.017724074,
-0.060881015,
0.010464869,
-0.015852634,
-0.03751531,
0.022855468,
-0.037866883,
0.05328077,
-0.0320521,
-0.030350016,
-0.010912554,
-0.012704745,
0.0076516517,
0.0014142905,
0.011725254,
0.0067488,
-0.008221275,
0.01648301,
-0.013712469,
0.0129476935,
0.028405288,
-0.011489568,
-0.006695754,
-0.07523671,
0.0012562524,
-0.051538818,
0.017514601,
0.03280067,
-0.018965578,
0.009017527,
-0.052108284,
0.0017074383,
0.00056099903,
0.008343997,
-0.01674154,
-0.012425597,
-0.00041037227,
0.1104793,
-0.015096156,
0.014880369,
-0.0098567465,
0.024937985,
0.0112802675,
-0.0010737488,
-0.06354736,
-3.862344e-05,
-0.024247888
],
"index": 0,
"object": "embedding"
}
],
"model": "nomic-embed-text:latest",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
}
}