chore!: BREAKING CHANGE removing VectorDB APIs (#3774)

# What does this PR do?
Removes VectorDBs from API surface and our tests.

Moves tests to Vector Stores.

<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->

## 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.* -->

---------

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
Co-authored-by: Ashwin Bharambe <ashwin.bharambe@gmail.com>
This commit is contained in:
Francisco Arceo 2025-10-11 17:07:08 -04:00 committed by GitHub
parent 06e4cd8e02
commit a165b8b5bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
111 changed files with 60412 additions and 2765 deletions

View file

@ -2987,165 +2987,6 @@
"deprecated": false
}
},
"/v1/vector-dbs": {
"get": {
"responses": {
"200": {
"description": "A ListVectorDBsResponse.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListVectorDBsResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "List all vector databases.",
"description": "List all vector databases.",
"parameters": [],
"deprecated": false
},
"post": {
"responses": {
"200": {
"description": "A VectorDB.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VectorDB"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Register a vector database.",
"description": "Register a vector database.",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterVectorDbRequest"
}
}
},
"required": true
},
"deprecated": false
}
},
"/v1/vector-dbs/{vector_db_id}": {
"get": {
"responses": {
"200": {
"description": "A VectorDB.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VectorDB"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Get a vector database by its identifier.",
"description": "Get a vector database by its identifier.",
"parameters": [
{
"name": "vector_db_id",
"in": "path",
"description": "The identifier of the vector database to get.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
},
"delete": {
"responses": {
"200": {
"description": "OK"
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Unregister a vector database.",
"description": "Unregister a vector database.",
"parameters": [
{
"name": "vector_db_id",
"in": "path",
"description": "The identifier of the vector database to unregister.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/v1/vector-io/insert": {
"post": {
"responses": {
@ -11784,111 +11625,6 @@
],
"title": "RegisterToolGroupRequest"
},
"VectorDB": {
"type": "object",
"properties": {
"identifier": {
"type": "string"
},
"provider_resource_id": {
"type": "string"
},
"provider_id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"model",
"shield",
"vector_db",
"dataset",
"scoring_function",
"benchmark",
"tool",
"tool_group",
"prompt"
],
"const": "vector_db",
"default": "vector_db",
"description": "Type of resource, always 'vector_db' for vector databases"
},
"embedding_model": {
"type": "string",
"description": "Name of the embedding model to use for vector generation"
},
"embedding_dimension": {
"type": "integer",
"description": "Dimension of the embedding vectors"
},
"vector_db_name": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"identifier",
"provider_id",
"type",
"embedding_model",
"embedding_dimension"
],
"title": "VectorDB",
"description": "Vector database resource for storing and querying vector embeddings."
},
"ListVectorDBsResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VectorDB"
},
"description": "List of vector databases"
}
},
"additionalProperties": false,
"required": [
"data"
],
"title": "ListVectorDBsResponse",
"description": "Response from listing vector databases."
},
"RegisterVectorDbRequest": {
"type": "object",
"properties": {
"vector_db_id": {
"type": "string",
"description": "The identifier of the vector database to register."
},
"embedding_model": {
"type": "string",
"description": "The embedding model to use."
},
"embedding_dimension": {
"type": "integer",
"description": "The dimension of the embedding model."
},
"provider_id": {
"type": "string",
"description": "The identifier of the provider."
},
"vector_db_name": {
"type": "string",
"description": "The name of the vector database."
},
"provider_vector_db_id": {
"type": "string",
"description": "The identifier of the vector database in the provider."
}
},
"additionalProperties": false,
"required": [
"vector_db_id",
"embedding_model"
],
"title": "RegisterVectorDbRequest"
},
"Chunk": {
"type": "object",
"properties": {
@ -13364,10 +13100,6 @@
"name": "ToolRuntime",
"description": ""
},
{
"name": "VectorDBs",
"description": ""
},
{
"name": "VectorIO",
"description": ""
@ -13393,7 +13125,6 @@
"Telemetry",
"ToolGroups",
"ToolRuntime",
"VectorDBs",
"VectorIO"
]
}

View file

@ -2275,120 +2275,6 @@ paths:
schema:
type: string
deprecated: false
/v1/vector-dbs:
get:
responses:
'200':
description: A ListVectorDBsResponse.
content:
application/json:
schema:
$ref: '#/components/schemas/ListVectorDBsResponse'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: List all vector databases.
description: List all vector databases.
parameters: []
deprecated: false
post:
responses:
'200':
description: A VectorDB.
content:
application/json:
schema:
$ref: '#/components/schemas/VectorDB'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Register a vector database.
description: Register a vector database.
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterVectorDbRequest'
required: true
deprecated: false
/v1/vector-dbs/{vector_db_id}:
get:
responses:
'200':
description: A VectorDB.
content:
application/json:
schema:
$ref: '#/components/schemas/VectorDB'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Get a vector database by its identifier.
description: Get a vector database by its identifier.
parameters:
- name: vector_db_id
in: path
description: >-
The identifier of the vector database to get.
required: true
schema:
type: string
deprecated: false
delete:
responses:
'200':
description: OK
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Unregister a vector database.
description: Unregister a vector database.
parameters:
- name: vector_db_id
in: path
description: >-
The identifier of the vector database to unregister.
required: true
schema:
type: string
deprecated: false
/v1/vector-io/insert:
post:
responses:
@ -8908,91 +8794,6 @@ components:
- toolgroup_id
- provider_id
title: RegisterToolGroupRequest
VectorDB:
type: object
properties:
identifier:
type: string
provider_resource_id:
type: string
provider_id:
type: string
type:
type: string
enum:
- model
- shield
- vector_db
- dataset
- scoring_function
- benchmark
- tool
- tool_group
- prompt
const: vector_db
default: vector_db
description: >-
Type of resource, always 'vector_db' for vector databases
embedding_model:
type: string
description: >-
Name of the embedding model to use for vector generation
embedding_dimension:
type: integer
description: Dimension of the embedding vectors
vector_db_name:
type: string
additionalProperties: false
required:
- identifier
- provider_id
- type
- embedding_model
- embedding_dimension
title: VectorDB
description: >-
Vector database resource for storing and querying vector embeddings.
ListVectorDBsResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/VectorDB'
description: List of vector databases
additionalProperties: false
required:
- data
title: ListVectorDBsResponse
description: Response from listing vector databases.
RegisterVectorDbRequest:
type: object
properties:
vector_db_id:
type: string
description: >-
The identifier of the vector database to register.
embedding_model:
type: string
description: The embedding model to use.
embedding_dimension:
type: integer
description: The dimension of the embedding model.
provider_id:
type: string
description: The identifier of the provider.
vector_db_name:
type: string
description: The name of the vector database.
provider_vector_db_id:
type: string
description: >-
The identifier of the vector database in the provider.
additionalProperties: false
required:
- vector_db_id
- embedding_model
title: RegisterVectorDbRequest
Chunk:
type: object
properties:
@ -10162,8 +9963,6 @@ tags:
description: ''
- name: ToolRuntime
description: ''
- name: VectorDBs
description: ''
- name: VectorIO
description: ''
x-tagGroups:
@ -10185,5 +9984,4 @@ x-tagGroups:
- Telemetry
- ToolGroups
- ToolRuntime
- VectorDBs
- VectorIO

View file

@ -2987,165 +2987,6 @@
"deprecated": false
}
},
"/v1/vector-dbs": {
"get": {
"responses": {
"200": {
"description": "A ListVectorDBsResponse.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListVectorDBsResponse"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "List all vector databases.",
"description": "List all vector databases.",
"parameters": [],
"deprecated": false
},
"post": {
"responses": {
"200": {
"description": "A VectorDB.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VectorDB"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Register a vector database.",
"description": "Register a vector database.",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterVectorDbRequest"
}
}
},
"required": true
},
"deprecated": false
}
},
"/v1/vector-dbs/{vector_db_id}": {
"get": {
"responses": {
"200": {
"description": "A VectorDB.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/VectorDB"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Get a vector database by its identifier.",
"description": "Get a vector database by its identifier.",
"parameters": [
{
"name": "vector_db_id",
"in": "path",
"description": "The identifier of the vector database to get.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
},
"delete": {
"responses": {
"200": {
"description": "OK"
},
"400": {
"$ref": "#/components/responses/BadRequest400"
},
"429": {
"$ref": "#/components/responses/TooManyRequests429"
},
"500": {
"$ref": "#/components/responses/InternalServerError500"
},
"default": {
"$ref": "#/components/responses/DefaultError"
}
},
"tags": [
"VectorDBs"
],
"summary": "Unregister a vector database.",
"description": "Unregister a vector database.",
"parameters": [
{
"name": "vector_db_id",
"in": "path",
"description": "The identifier of the vector database to unregister.",
"required": true,
"schema": {
"type": "string"
}
}
],
"deprecated": false
}
},
"/v1/vector-io/insert": {
"post": {
"responses": {
@ -13793,111 +13634,6 @@
],
"title": "RegisterToolGroupRequest"
},
"VectorDB": {
"type": "object",
"properties": {
"identifier": {
"type": "string"
},
"provider_resource_id": {
"type": "string"
},
"provider_id": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"model",
"shield",
"vector_db",
"dataset",
"scoring_function",
"benchmark",
"tool",
"tool_group",
"prompt"
],
"const": "vector_db",
"default": "vector_db",
"description": "Type of resource, always 'vector_db' for vector databases"
},
"embedding_model": {
"type": "string",
"description": "Name of the embedding model to use for vector generation"
},
"embedding_dimension": {
"type": "integer",
"description": "Dimension of the embedding vectors"
},
"vector_db_name": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"identifier",
"provider_id",
"type",
"embedding_model",
"embedding_dimension"
],
"title": "VectorDB",
"description": "Vector database resource for storing and querying vector embeddings."
},
"ListVectorDBsResponse": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/VectorDB"
},
"description": "List of vector databases"
}
},
"additionalProperties": false,
"required": [
"data"
],
"title": "ListVectorDBsResponse",
"description": "Response from listing vector databases."
},
"RegisterVectorDbRequest": {
"type": "object",
"properties": {
"vector_db_id": {
"type": "string",
"description": "The identifier of the vector database to register."
},
"embedding_model": {
"type": "string",
"description": "The embedding model to use."
},
"embedding_dimension": {
"type": "integer",
"description": "The dimension of the embedding model."
},
"provider_id": {
"type": "string",
"description": "The identifier of the provider."
},
"vector_db_name": {
"type": "string",
"description": "The name of the vector database."
},
"provider_vector_db_id": {
"type": "string",
"description": "The identifier of the vector database in the provider."
}
},
"additionalProperties": false,
"required": [
"vector_db_id",
"embedding_model"
],
"title": "RegisterVectorDbRequest"
},
"Chunk": {
"type": "object",
"properties": {
@ -18941,10 +18677,6 @@
"name": "ToolRuntime",
"description": ""
},
{
"name": "VectorDBs",
"description": ""
},
{
"name": "VectorIO",
"description": ""
@ -18975,7 +18707,6 @@
"Telemetry",
"ToolGroups",
"ToolRuntime",
"VectorDBs",
"VectorIO"
]
}

View file

@ -2278,120 +2278,6 @@ paths:
schema:
type: string
deprecated: false
/v1/vector-dbs:
get:
responses:
'200':
description: A ListVectorDBsResponse.
content:
application/json:
schema:
$ref: '#/components/schemas/ListVectorDBsResponse'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: List all vector databases.
description: List all vector databases.
parameters: []
deprecated: false
post:
responses:
'200':
description: A VectorDB.
content:
application/json:
schema:
$ref: '#/components/schemas/VectorDB'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Register a vector database.
description: Register a vector database.
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterVectorDbRequest'
required: true
deprecated: false
/v1/vector-dbs/{vector_db_id}:
get:
responses:
'200':
description: A VectorDB.
content:
application/json:
schema:
$ref: '#/components/schemas/VectorDB'
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Get a vector database by its identifier.
description: Get a vector database by its identifier.
parameters:
- name: vector_db_id
in: path
description: >-
The identifier of the vector database to get.
required: true
schema:
type: string
deprecated: false
delete:
responses:
'200':
description: OK
'400':
$ref: '#/components/responses/BadRequest400'
'429':
$ref: >-
#/components/responses/TooManyRequests429
'500':
$ref: >-
#/components/responses/InternalServerError500
default:
$ref: '#/components/responses/DefaultError'
tags:
- VectorDBs
summary: Unregister a vector database.
description: Unregister a vector database.
parameters:
- name: vector_db_id
in: path
description: >-
The identifier of the vector database to unregister.
required: true
schema:
type: string
deprecated: false
/v1/vector-io/insert:
post:
responses:
@ -10353,91 +10239,6 @@ components:
- toolgroup_id
- provider_id
title: RegisterToolGroupRequest
VectorDB:
type: object
properties:
identifier:
type: string
provider_resource_id:
type: string
provider_id:
type: string
type:
type: string
enum:
- model
- shield
- vector_db
- dataset
- scoring_function
- benchmark
- tool
- tool_group
- prompt
const: vector_db
default: vector_db
description: >-
Type of resource, always 'vector_db' for vector databases
embedding_model:
type: string
description: >-
Name of the embedding model to use for vector generation
embedding_dimension:
type: integer
description: Dimension of the embedding vectors
vector_db_name:
type: string
additionalProperties: false
required:
- identifier
- provider_id
- type
- embedding_model
- embedding_dimension
title: VectorDB
description: >-
Vector database resource for storing and querying vector embeddings.
ListVectorDBsResponse:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/VectorDB'
description: List of vector databases
additionalProperties: false
required:
- data
title: ListVectorDBsResponse
description: Response from listing vector databases.
RegisterVectorDbRequest:
type: object
properties:
vector_db_id:
type: string
description: >-
The identifier of the vector database to register.
embedding_model:
type: string
description: The embedding model to use.
embedding_dimension:
type: integer
description: The dimension of the embedding model.
provider_id:
type: string
description: The identifier of the provider.
vector_db_name:
type: string
description: The name of the vector database.
provider_vector_db_id:
type: string
description: >-
The identifier of the vector database in the provider.
additionalProperties: false
required:
- vector_db_id
- embedding_model
title: RegisterVectorDbRequest
Chunk:
type: object
properties:
@ -14210,8 +14011,6 @@ tags:
description: ''
- name: ToolRuntime
description: ''
- name: VectorDBs
description: ''
- name: VectorIO
description: ''
x-tagGroups:
@ -14238,5 +14037,4 @@ x-tagGroups:
- Telemetry
- ToolGroups
- ToolRuntime
- VectorDBs
- VectorIO

View file

@ -96,7 +96,6 @@ class Api(Enum, metaclass=DynamicApiMeta):
:cvar telemetry: Observability and system monitoring
:cvar models: Model metadata and management
:cvar shields: Safety shield implementations
:cvar vector_dbs: Vector database management
:cvar datasets: Dataset creation and management
:cvar scoring_functions: Scoring function definitions
:cvar benchmarks: Benchmark suite management
@ -122,7 +121,6 @@ class Api(Enum, metaclass=DynamicApiMeta):
models = "models"
shields = "shields"
vector_dbs = "vector_dbs"
datasets = "datasets"
scoring_functions = "scoring_functions"
benchmarks = "benchmarks"

View file

@ -4,14 +4,12 @@
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from typing import Literal, Protocol, runtime_checkable
from typing import Literal
from pydantic import BaseModel
from llama_stack.apis.resource import Resource, ResourceType
from llama_stack.apis.version import LLAMA_STACK_API_V1
from llama_stack.providers.utils.telemetry.trace_protocol import trace_protocol
from llama_stack.schema_utils import json_schema_type, webmethod
from llama_stack.schema_utils import json_schema_type
@json_schema_type
@ -61,57 +59,3 @@ class ListVectorDBsResponse(BaseModel):
"""
data: list[VectorDB]
@runtime_checkable
@trace_protocol
class VectorDBs(Protocol):
@webmethod(route="/vector-dbs", method="GET", level=LLAMA_STACK_API_V1)
async def list_vector_dbs(self) -> ListVectorDBsResponse:
"""List all vector databases.
:returns: A ListVectorDBsResponse.
"""
...
@webmethod(route="/vector-dbs/{vector_db_id:path}", method="GET", level=LLAMA_STACK_API_V1)
async def get_vector_db(
self,
vector_db_id: str,
) -> VectorDB:
"""Get a vector database by its identifier.
:param vector_db_id: The identifier of the vector database to get.
:returns: A VectorDB.
"""
...
@webmethod(route="/vector-dbs", method="POST", level=LLAMA_STACK_API_V1)
async def register_vector_db(
self,
vector_db_id: str,
embedding_model: str,
embedding_dimension: int | None = 384,
provider_id: str | None = None,
vector_db_name: str | None = None,
provider_vector_db_id: str | None = None,
) -> VectorDB:
"""Register a vector database.
:param vector_db_id: The identifier of the vector database to register.
:param embedding_model: The embedding model to use.
:param embedding_dimension: The dimension of the embedding model.
:param provider_id: The identifier of the provider.
:param vector_db_name: The name of the vector database.
:param provider_vector_db_id: The identifier of the vector database in the provider.
:returns: A VectorDB.
"""
...
@webmethod(route="/vector-dbs/{vector_db_id:path}", method="DELETE", level=LLAMA_STACK_API_V1)
async def unregister_vector_db(self, vector_db_id: str) -> None:
"""Unregister a vector database.
:param vector_db_id: The identifier of the vector database to unregister.
"""
...

View file

@ -47,10 +47,6 @@ def builtin_automatically_routed_apis() -> list[AutoRoutedApiInfo]:
routing_table_api=Api.shields,
router_api=Api.safety,
),
AutoRoutedApiInfo(
routing_table_api=Api.vector_dbs,
router_api=Api.vector_io,
),
AutoRoutedApiInfo(
routing_table_api=Api.datasets,
router_api=Api.datasetio,

View file

@ -28,7 +28,6 @@ from llama_stack.apis.scoring_functions import ScoringFunctions
from llama_stack.apis.shields import Shields
from llama_stack.apis.telemetry import Telemetry
from llama_stack.apis.tools import ToolGroups, ToolRuntime
from llama_stack.apis.vector_dbs import VectorDBs
from llama_stack.apis.vector_io import VectorIO
from llama_stack.apis.version import LLAMA_STACK_API_V1ALPHA
from llama_stack.core.client import get_client_impl
@ -55,7 +54,6 @@ from llama_stack.providers.datatypes import (
ScoringFunctionsProtocolPrivate,
ShieldsProtocolPrivate,
ToolGroupsProtocolPrivate,
VectorDBsProtocolPrivate,
)
logger = get_logger(name=__name__, category="core")
@ -81,7 +79,6 @@ def api_protocol_map(external_apis: dict[Api, ExternalApiSpec] | None = None) ->
Api.inspect: Inspect,
Api.batches: Batches,
Api.vector_io: VectorIO,
Api.vector_dbs: VectorDBs,
Api.models: Models,
Api.safety: Safety,
Api.shields: Shields,
@ -125,7 +122,6 @@ def additional_protocols_map() -> dict[Api, Any]:
return {
Api.inference: (ModelsProtocolPrivate, Models, Api.models),
Api.tool_groups: (ToolGroupsProtocolPrivate, ToolGroups, Api.tool_groups),
Api.vector_io: (VectorDBsProtocolPrivate, VectorDBs, Api.vector_dbs),
Api.safety: (ShieldsProtocolPrivate, Shields, Api.shields),
Api.datasetio: (DatasetsProtocolPrivate, Datasets, Api.datasets),
Api.scoring: (

View file

@ -26,10 +26,8 @@ async def get_routing_table_impl(
from ..routing_tables.scoring_functions import ScoringFunctionsRoutingTable
from ..routing_tables.shields import ShieldsRoutingTable
from ..routing_tables.toolgroups import ToolGroupsRoutingTable
from ..routing_tables.vector_dbs import VectorDBsRoutingTable
api_to_tables = {
"vector_dbs": VectorDBsRoutingTable,
"models": ModelsRoutingTable,
"shields": ShieldsRoutingTable,
"datasets": DatasetsRoutingTable,

View file

@ -134,15 +134,12 @@ class CommonRoutingTableImpl(RoutingTable):
from .scoring_functions import ScoringFunctionsRoutingTable
from .shields import ShieldsRoutingTable
from .toolgroups import ToolGroupsRoutingTable
from .vector_dbs import VectorDBsRoutingTable
def apiname_object():
if isinstance(self, ModelsRoutingTable):
return ("Inference", "model")
elif isinstance(self, ShieldsRoutingTable):
return ("Safety", "shield")
elif isinstance(self, VectorDBsRoutingTable):
return ("VectorIO", "vector_db")
elif isinstance(self, DatasetsRoutingTable):
return ("DatasetIO", "dataset")
elif isinstance(self, ScoringFunctionsRoutingTable):

View file

@ -1,309 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
from typing import Any
from pydantic import TypeAdapter
from llama_stack.apis.common.errors import ModelNotFoundError, ModelTypeError, VectorStoreNotFoundError
from llama_stack.apis.models import ModelType
from llama_stack.apis.resource import ResourceType
from llama_stack.apis.vector_dbs import ListVectorDBsResponse, VectorDB, VectorDBs
from llama_stack.apis.vector_io.vector_io import (
SearchRankingOptions,
VectorStoreChunkingStrategy,
VectorStoreDeleteResponse,
VectorStoreFileContentsResponse,
VectorStoreFileDeleteResponse,
VectorStoreFileObject,
VectorStoreFileStatus,
VectorStoreObject,
VectorStoreSearchResponsePage,
)
from llama_stack.core.datatypes import (
VectorDBWithOwner,
)
from llama_stack.log import get_logger
from .common import CommonRoutingTableImpl, lookup_model
logger = get_logger(name=__name__, category="core::routing_tables")
class VectorDBsRoutingTable(CommonRoutingTableImpl, VectorDBs):
async def list_vector_dbs(self) -> ListVectorDBsResponse:
return ListVectorDBsResponse(data=await self.get_all_with_type("vector_db"))
async def get_vector_db(self, vector_db_id: str) -> VectorDB:
vector_db = await self.get_object_by_identifier("vector_db", vector_db_id)
if vector_db is None:
raise VectorStoreNotFoundError(vector_db_id)
return vector_db
async def register_vector_db(
self,
vector_db_id: str,
embedding_model: str,
embedding_dimension: int | None = 384,
provider_id: str | None = None,
provider_vector_db_id: str | None = None,
vector_db_name: str | None = None,
) -> VectorDB:
if provider_id is None:
if len(self.impls_by_provider_id) > 0:
provider_id = list(self.impls_by_provider_id.keys())[0]
if len(self.impls_by_provider_id) > 1:
logger.warning(
f"No provider specified and multiple providers available. Arbitrarily selected the first provider {provider_id}."
)
else:
raise ValueError("No provider available. Please configure a vector_io provider.")
model = await lookup_model(self, embedding_model)
if model is None:
raise ModelNotFoundError(embedding_model)
if model.model_type != ModelType.embedding:
raise ModelTypeError(embedding_model, model.model_type, ModelType.embedding)
if "embedding_dimension" not in model.metadata:
raise ValueError(f"Model {embedding_model} does not have an embedding dimension")
provider = self.impls_by_provider_id[provider_id]
logger.warning(
"VectorDB is being deprecated in future releases in favor of VectorStore. Please migrate your usage accordingly."
)
vector_store = await provider.openai_create_vector_store(
name=vector_db_name or vector_db_id,
embedding_model=embedding_model,
embedding_dimension=model.metadata["embedding_dimension"],
provider_id=provider_id,
provider_vector_db_id=provider_vector_db_id,
)
vector_store_id = vector_store.id
actual_provider_vector_db_id = provider_vector_db_id or vector_store_id
logger.warning(
f"Ignoring vector_db_id {vector_db_id} and using vector_store_id {vector_store_id} instead. Setting VectorDB {vector_db_id} to VectorDB.vector_db_name"
)
vector_db_data = {
"identifier": vector_store_id,
"type": ResourceType.vector_db.value,
"provider_id": provider_id,
"provider_resource_id": actual_provider_vector_db_id,
"embedding_model": embedding_model,
"embedding_dimension": model.metadata["embedding_dimension"],
"vector_db_name": vector_store.name,
}
vector_db = TypeAdapter(VectorDBWithOwner).validate_python(vector_db_data)
await self.register_object(vector_db)
return vector_db
async def unregister_vector_db(self, vector_db_id: str) -> None:
existing_vector_db = await self.get_vector_db(vector_db_id)
await self.unregister_object(existing_vector_db)
async def openai_retrieve_vector_store(
self,
vector_store_id: str,
) -> VectorStoreObject:
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_retrieve_vector_store(vector_store_id)
async def openai_update_vector_store(
self,
vector_store_id: str,
name: str | None = None,
expires_after: dict[str, Any] | None = None,
metadata: dict[str, Any] | None = None,
) -> VectorStoreObject:
await self.assert_action_allowed("update", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_update_vector_store(
vector_store_id=vector_store_id,
name=name,
expires_after=expires_after,
metadata=metadata,
)
async def openai_delete_vector_store(
self,
vector_store_id: str,
) -> VectorStoreDeleteResponse:
await self.assert_action_allowed("delete", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
result = await provider.openai_delete_vector_store(vector_store_id)
await self.unregister_vector_db(vector_store_id)
return result
async def openai_search_vector_store(
self,
vector_store_id: str,
query: str | list[str],
filters: dict[str, Any] | None = None,
max_num_results: int | None = 10,
ranking_options: SearchRankingOptions | None = None,
rewrite_query: bool | None = False,
search_mode: str | None = "vector",
) -> VectorStoreSearchResponsePage:
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_search_vector_store(
vector_store_id=vector_store_id,
query=query,
filters=filters,
max_num_results=max_num_results,
ranking_options=ranking_options,
rewrite_query=rewrite_query,
search_mode=search_mode,
)
async def openai_attach_file_to_vector_store(
self,
vector_store_id: str,
file_id: str,
attributes: dict[str, Any] | None = None,
chunking_strategy: VectorStoreChunkingStrategy | None = None,
) -> VectorStoreFileObject:
await self.assert_action_allowed("update", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_attach_file_to_vector_store(
vector_store_id=vector_store_id,
file_id=file_id,
attributes=attributes,
chunking_strategy=chunking_strategy,
)
async def openai_list_files_in_vector_store(
self,
vector_store_id: str,
limit: int | None = 20,
order: str | None = "desc",
after: str | None = None,
before: str | None = None,
filter: VectorStoreFileStatus | None = None,
) -> list[VectorStoreFileObject]:
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_list_files_in_vector_store(
vector_store_id=vector_store_id,
limit=limit,
order=order,
after=after,
before=before,
filter=filter,
)
async def openai_retrieve_vector_store_file(
self,
vector_store_id: str,
file_id: str,
) -> VectorStoreFileObject:
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_retrieve_vector_store_file(
vector_store_id=vector_store_id,
file_id=file_id,
)
async def openai_retrieve_vector_store_file_contents(
self,
vector_store_id: str,
file_id: str,
) -> VectorStoreFileContentsResponse:
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_retrieve_vector_store_file_contents(
vector_store_id=vector_store_id,
file_id=file_id,
)
async def openai_update_vector_store_file(
self,
vector_store_id: str,
file_id: str,
attributes: dict[str, Any],
) -> VectorStoreFileObject:
await self.assert_action_allowed("update", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_update_vector_store_file(
vector_store_id=vector_store_id,
file_id=file_id,
attributes=attributes,
)
async def openai_delete_vector_store_file(
self,
vector_store_id: str,
file_id: str,
) -> VectorStoreFileDeleteResponse:
await self.assert_action_allowed("delete", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_delete_vector_store_file(
vector_store_id=vector_store_id,
file_id=file_id,
)
async def openai_create_vector_store_file_batch(
self,
vector_store_id: str,
file_ids: list[str],
attributes: dict[str, Any] | None = None,
chunking_strategy: Any | None = None,
):
await self.assert_action_allowed("update", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_create_vector_store_file_batch(
vector_store_id=vector_store_id,
file_ids=file_ids,
attributes=attributes,
chunking_strategy=chunking_strategy,
)
async def openai_retrieve_vector_store_file_batch(
self,
batch_id: str,
vector_store_id: str,
):
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_retrieve_vector_store_file_batch(
batch_id=batch_id,
vector_store_id=vector_store_id,
)
async def openai_list_files_in_vector_store_file_batch(
self,
batch_id: str,
vector_store_id: str,
after: str | None = None,
before: str | None = None,
filter: str | None = None,
limit: int | None = 20,
order: str | None = "desc",
):
await self.assert_action_allowed("read", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_list_files_in_vector_store_file_batch(
batch_id=batch_id,
vector_store_id=vector_store_id,
after=after,
before=before,
filter=filter,
limit=limit,
order=order,
)
async def openai_cancel_vector_store_file_batch(
self,
batch_id: str,
vector_store_id: str,
):
await self.assert_action_allowed("update", "vector_db", vector_store_id)
provider = await self.get_provider_impl(vector_store_id)
return await provider.openai_cancel_vector_store_file_batch(
batch_id=batch_id,
vector_store_id=vector_store_id,
)

View file

@ -33,7 +33,6 @@ from llama_stack.apis.shields import Shields
from llama_stack.apis.synthetic_data_generation import SyntheticDataGeneration
from llama_stack.apis.telemetry import Telemetry
from llama_stack.apis.tools import RAGToolRuntime, ToolGroups, ToolRuntime
from llama_stack.apis.vector_dbs import VectorDBs
from llama_stack.apis.vector_io import VectorIO
from llama_stack.core.conversations.conversations import ConversationServiceConfig, ConversationServiceImpl
from llama_stack.core.datatypes import Provider, StackRunConfig
@ -53,7 +52,6 @@ logger = get_logger(name=__name__, category="core")
class LlamaStack(
Providers,
VectorDBs,
Inference,
Agents,
Safety,
@ -83,7 +81,6 @@ class LlamaStack(
RESOURCES = [
("models", Api.models, "register_model", "list_models"),
("shields", Api.shields, "register_shield", "list_shields"),
("vector_dbs", Api.vector_dbs, "register_vector_db", "list_vector_dbs"),
("datasets", Api.datasets, "register_dataset", "list_datasets"),
(
"scoring_fns",

View file

@ -11,19 +11,17 @@ from llama_stack.core.ui.page.distribution.eval_tasks import benchmarks
from llama_stack.core.ui.page.distribution.models import models
from llama_stack.core.ui.page.distribution.scoring_functions import scoring_functions
from llama_stack.core.ui.page.distribution.shields import shields
from llama_stack.core.ui.page.distribution.vector_dbs import vector_dbs
def resources_page():
options = [
"Models",
"Vector Databases",
"Shields",
"Scoring Functions",
"Datasets",
"Benchmarks",
]
icons = ["magic", "memory", "shield", "file-bar-graph", "database", "list-task"]
icons = ["magic", "shield", "file-bar-graph", "database", "list-task"]
selected_resource = option_menu(
None,
options,
@ -37,8 +35,6 @@ def resources_page():
)
if selected_resource == "Benchmarks":
benchmarks()
elif selected_resource == "Vector Databases":
vector_dbs()
elif selected_resource == "Datasets":
datasets()
elif selected_resource == "Models":

View file

@ -1,20 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import streamlit as st
from llama_stack.core.ui.modules.api import llama_stack_api
def vector_dbs():
st.header("Vector Databases")
vector_dbs_info = {v.identifier: v.to_dict() for v in llama_stack_api.client.vector_dbs.list()}
if len(vector_dbs_info) > 0:
selected_vector_db = st.selectbox("Select a vector database", list(vector_dbs_info.keys()))
st.json(vector_dbs_info[selected_vector_db])
else:
st.info("No vector databases found")

View file

@ -1,301 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import uuid
import streamlit as st
from llama_stack_client import Agent, AgentEventLogger, RAGDocument
from llama_stack.apis.common.content_types import ToolCallDelta
from llama_stack.core.ui.modules.api import llama_stack_api
from llama_stack.core.ui.modules.utils import data_url_from_file
def rag_chat_page():
st.title("🦙 RAG")
def reset_agent_and_chat():
st.session_state.clear()
st.cache_resource.clear()
def should_disable_input():
return "displayed_messages" in st.session_state and len(st.session_state.displayed_messages) > 0
def log_message(message):
with st.chat_message(message["role"]):
if "tool_output" in message and message["tool_output"]:
with st.expander(label="Tool Output", expanded=False, icon="🛠"):
st.write(message["tool_output"])
st.markdown(message["content"])
with st.sidebar:
# File/Directory Upload Section
st.subheader("Upload Documents", divider=True)
uploaded_files = st.file_uploader(
"Upload file(s) or directory",
accept_multiple_files=True,
type=["txt", "pdf", "doc", "docx"], # Add more file types as needed
)
# Process uploaded files
if uploaded_files:
st.success(f"Successfully uploaded {len(uploaded_files)} files")
# Add memory bank name input field
vector_db_name = st.text_input(
"Document Collection Name",
value="rag_vector_db",
help="Enter a unique identifier for this document collection",
)
if st.button("Create Document Collection"):
documents = [
RAGDocument(
document_id=uploaded_file.name,
content=data_url_from_file(uploaded_file),
)
for i, uploaded_file in enumerate(uploaded_files)
]
providers = llama_stack_api.client.providers.list()
vector_io_provider = None
for x in providers:
if x.api == "vector_io":
vector_io_provider = x.provider_id
llama_stack_api.client.vector_dbs.register(
vector_db_id=vector_db_name, # Use the user-provided name
embedding_dimension=384,
embedding_model="all-MiniLM-L6-v2",
provider_id=vector_io_provider,
)
# insert documents using the custom vector db name
llama_stack_api.client.tool_runtime.rag_tool.insert(
vector_db_id=vector_db_name, # Use the user-provided name
documents=documents,
chunk_size_in_tokens=512,
)
st.success("Vector database created successfully!")
st.subheader("RAG Parameters", divider=True)
rag_mode = st.radio(
"RAG mode",
["Direct", "Agent-based"],
captions=[
"RAG is performed by directly retrieving the information and augmenting the user query",
"RAG is performed by an agent activating a dedicated knowledge search tool.",
],
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
# select memory banks
vector_dbs = llama_stack_api.client.vector_dbs.list()
vector_dbs = [vector_db.identifier for vector_db in vector_dbs]
selected_vector_dbs = st.multiselect(
label="Select Document Collections to use in RAG queries",
options=vector_dbs,
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
st.subheader("Inference Parameters", divider=True)
available_models = llama_stack_api.client.models.list()
available_models = [model.identifier for model in available_models if model.model_type == "llm"]
selected_model = st.selectbox(
label="Choose a model",
options=available_models,
index=0,
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
system_prompt = st.text_area(
"System Prompt",
value="You are a helpful assistant. ",
help="Initial instructions given to the AI to set its behavior and context",
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
temperature = st.slider(
"Temperature",
min_value=0.0,
max_value=1.0,
value=0.0,
step=0.1,
help="Controls the randomness of the response. Higher values make the output more creative and unexpected, lower values make it more conservative and predictable",
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
top_p = st.slider(
"Top P",
min_value=0.0,
max_value=1.0,
value=0.95,
step=0.1,
on_change=reset_agent_and_chat,
disabled=should_disable_input(),
)
# Add clear chat button to sidebar
if st.button("Clear Chat", use_container_width=True):
reset_agent_and_chat()
st.rerun()
# Chat Interface
if "messages" not in st.session_state:
st.session_state.messages = []
if "displayed_messages" not in st.session_state:
st.session_state.displayed_messages = []
# Display chat history
for message in st.session_state.displayed_messages:
log_message(message)
if temperature > 0.0:
strategy = {
"type": "top_p",
"temperature": temperature,
"top_p": top_p,
}
else:
strategy = {"type": "greedy"}
@st.cache_resource
def create_agent():
return Agent(
llama_stack_api.client,
model=selected_model,
instructions=system_prompt,
sampling_params={
"strategy": strategy,
},
tools=[
dict(
name="builtin::rag/knowledge_search",
args={
"vector_db_ids": list(selected_vector_dbs),
},
)
],
)
if rag_mode == "Agent-based":
agent = create_agent()
if "agent_session_id" not in st.session_state:
st.session_state["agent_session_id"] = agent.create_session(session_name=f"rag_demo_{uuid.uuid4()}")
session_id = st.session_state["agent_session_id"]
def agent_process_prompt(prompt):
# Add user message to chat history
st.session_state.messages.append({"role": "user", "content": prompt})
# Send the prompt to the agent
response = agent.create_turn(
messages=[
{
"role": "user",
"content": prompt,
}
],
session_id=session_id,
)
# Display assistant response
with st.chat_message("assistant"):
retrieval_message_placeholder = st.expander(label="Tool Output", expanded=False, icon="🛠")
message_placeholder = st.empty()
full_response = ""
retrieval_response = ""
for log in AgentEventLogger().log(response):
log.print()
if log.role == "tool_execution":
retrieval_response += log.content.replace("====", "").strip()
retrieval_message_placeholder.write(retrieval_response)
else:
full_response += log.content
message_placeholder.markdown(full_response + "")
message_placeholder.markdown(full_response)
st.session_state.messages.append({"role": "assistant", "content": full_response})
st.session_state.displayed_messages.append(
{"role": "assistant", "content": full_response, "tool_output": retrieval_response}
)
def direct_process_prompt(prompt):
# Add the system prompt in the beginning of the conversation
if len(st.session_state.messages) == 0:
st.session_state.messages.append({"role": "system", "content": system_prompt})
# Query the vector DB
rag_response = llama_stack_api.client.tool_runtime.rag_tool.query(
content=prompt, vector_db_ids=list(selected_vector_dbs)
)
prompt_context = rag_response.content
with st.chat_message("assistant"):
with st.expander(label="Retrieval Output", expanded=False):
st.write(prompt_context)
retrieval_message_placeholder = st.empty()
message_placeholder = st.empty()
full_response = ""
retrieval_response = ""
# Construct the extended prompt
extended_prompt = f"Please answer the following query using the context below.\n\nCONTEXT:\n{prompt_context}\n\nQUERY:\n{prompt}"
# Run inference directly
st.session_state.messages.append({"role": "user", "content": extended_prompt})
response = llama_stack_api.client.inference.chat_completion(
messages=st.session_state.messages,
model_id=selected_model,
sampling_params={
"strategy": strategy,
},
stream=True,
)
# Display assistant response
for chunk in response:
response_delta = chunk.event.delta
if isinstance(response_delta, ToolCallDelta):
retrieval_response += response_delta.tool_call.replace("====", "").strip()
retrieval_message_placeholder.info(retrieval_response)
else:
full_response += chunk.event.delta.text
message_placeholder.markdown(full_response + "")
message_placeholder.markdown(full_response)
response_dict = {"role": "assistant", "content": full_response, "stop_reason": "end_of_message"}
st.session_state.messages.append(response_dict)
st.session_state.displayed_messages.append(response_dict)
# Chat input
if prompt := st.chat_input("Ask a question about your documents"):
# Add user message to chat history
st.session_state.displayed_messages.append({"role": "user", "content": prompt})
# Display user message
with st.chat_message("user"):
st.markdown(prompt)
# store the prompt to process it after page refresh
st.session_state.prompt = prompt
# force page refresh to disable the settings widgets
st.rerun()
if "prompt" in st.session_state and st.session_state.prompt is not None:
if rag_mode == "Agent-based":
agent_process_prompt(st.session_state.prompt)
else: # rag_mode == "Direct"
direct_process_prompt(st.session_state.prompt)
st.session_state.prompt = None
rag_chat_page()

View file

@ -32,7 +32,6 @@ def available_providers() -> list[ProviderSpec]:
Api.inference,
Api.safety,
Api.vector_io,
Api.vector_dbs,
Api.tool_runtime,
Api.tool_groups,
Api.conversations,

View file

@ -8,7 +8,6 @@ from typing import Any
from uuid import uuid4
import pytest
import requests
from llama_stack_client import Agent, AgentEventLogger, Document
from llama_stack_client.types.shared_params.agent_config import AgentConfig, ToolConfig
@ -443,118 +442,6 @@ def run_agent_with_tool_choice(client, agent_config, tool_choice):
return [step for step in response.steps if step.step_type == "tool_execution"]
@pytest.mark.parametrize("rag_tool_name", ["builtin::rag/knowledge_search", "builtin::rag"])
def test_rag_agent(llama_stack_client, agent_config, rag_tool_name):
urls = ["chat.rst", "llama3.rst", "memory_optimizations.rst", "lora_finetune.rst"]
documents = [
Document(
document_id=f"num-{i}",
content=f"https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/{url}",
mime_type="text/plain",
metadata={},
)
for i, url in enumerate(urls)
]
vector_db_id = f"test-vector-db-{uuid4()}"
llama_stack_client.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model="all-MiniLM-L6-v2",
embedding_dimension=384,
)
llama_stack_client.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=vector_db_id,
# small chunks help to get specific info out of the docs
chunk_size_in_tokens=256,
)
agent_config = {
**agent_config,
"tools": [
dict(
name=rag_tool_name,
args={
"vector_db_ids": [vector_db_id],
},
)
],
}
rag_agent = Agent(llama_stack_client, **agent_config)
session_id = rag_agent.create_session(f"test-session-{uuid4()}")
user_prompts = [
(
"Instead of the standard multi-head attention, what attention type does Llama3-8B use?",
"grouped",
),
]
for prompt, expected_kw in user_prompts:
response = rag_agent.create_turn(
messages=[{"role": "user", "content": prompt}],
session_id=session_id,
stream=False,
)
# rag is called
tool_execution_step = next(step for step in response.steps if step.step_type == "tool_execution")
assert tool_execution_step.tool_calls[0].tool_name == "knowledge_search"
# document ids are present in metadata
assert all(
doc_id.startswith("num-") for doc_id in tool_execution_step.tool_responses[0].metadata["document_ids"]
)
if expected_kw:
assert expected_kw in response.output_message.content.lower()
def test_rag_agent_with_attachments(llama_stack_client, agent_config_without_safety):
urls = ["llama3.rst", "lora_finetune.rst"]
documents = [
# passign as url
Document(
document_id="num-0",
content={
"type": "url",
"uri": f"https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/{urls[0]}",
},
mime_type="text/plain",
metadata={},
),
# passing as str
Document(
document_id="num-1",
content=requests.get(
f"https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/{urls[1]}"
).text[:500],
mime_type="text/plain",
metadata={},
),
]
rag_agent = Agent(llama_stack_client, **agent_config_without_safety)
session_id = rag_agent.create_session(f"test-session-{uuid4()}")
user_prompts = [
(
"I am attaching some documentation for Torchtune. Help me answer questions I will ask next.",
documents,
),
(
"Tell me how to use LoRA in 100 words or less",
None,
),
]
for prompt in user_prompts:
response = rag_agent.create_turn(
messages=[
{
"role": "user",
"content": prompt[0],
}
],
documents=prompt[1],
session_id=session_id,
stream=False,
)
assert "lora" in response.output_message.content.lower()
@pytest.mark.parametrize(
"client_tools",
[(get_boiling_point, False), (get_boiling_point_with_metadata, True)],

View file

@ -1,459 +0,0 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the terms described in the LICENSE file in
# the root directory of this source tree.
import pytest
from llama_stack_client import BadRequestError
from llama_stack_client.types import Document
@pytest.fixture(scope="function")
def client_with_empty_registry(client_with_models):
def clear_registry():
vector_dbs = [vector_db.identifier for vector_db in client_with_models.vector_dbs.list()]
for vector_db_id in vector_dbs:
client_with_models.vector_dbs.unregister(vector_db_id=vector_db_id)
clear_registry()
try:
client_with_models.toolgroups.register(toolgroup_id="builtin::rag", provider_id="rag-runtime")
except Exception:
pass
yield client_with_models
clear_registry()
@pytest.fixture(scope="session")
def sample_documents():
return [
Document(
document_id="test-doc-1",
content="Python is a high-level programming language.",
metadata={"category": "programming", "difficulty": "beginner"},
),
Document(
document_id="test-doc-2",
content="Machine learning is a subset of artificial intelligence.",
metadata={"category": "AI", "difficulty": "advanced"},
),
Document(
document_id="test-doc-3",
content="Data structures are fundamental to computer science.",
metadata={"category": "computer science", "difficulty": "intermediate"},
),
Document(
document_id="test-doc-4",
content="Neural networks are inspired by biological neural networks.",
metadata={"category": "AI", "difficulty": "advanced"},
),
]
def assert_valid_chunk_response(response):
assert len(response.chunks) > 0
assert len(response.scores) > 0
assert len(response.chunks) == len(response.scores)
for chunk in response.chunks:
assert isinstance(chunk.content, str)
def assert_valid_text_response(response):
assert len(response.content) > 0
assert all(isinstance(chunk.text, str) for chunk in response.content)
def test_vector_db_insert_inline_and_query(
client_with_empty_registry, sample_documents, embedding_model_id, embedding_dimension
):
vector_db_name = "test_vector_db"
vector_db = client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_name,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
vector_db_id = vector_db.identifier
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=sample_documents,
chunk_size_in_tokens=512,
vector_db_id=vector_db_id,
)
# Query with a direct match
query1 = "programming language"
response1 = client_with_empty_registry.vector_io.query(
vector_db_id=vector_db_id,
query=query1,
)
assert_valid_chunk_response(response1)
assert any("Python" in chunk.content for chunk in response1.chunks)
# Query with semantic similarity
query2 = "AI and brain-inspired computing"
response2 = client_with_empty_registry.vector_io.query(
vector_db_id=vector_db_id,
query=query2,
)
assert_valid_chunk_response(response2)
assert any("neural networks" in chunk.content.lower() for chunk in response2.chunks)
# Query with limit on number of results (max_chunks=2)
query3 = "computer"
response3 = client_with_empty_registry.vector_io.query(
vector_db_id=vector_db_id,
query=query3,
params={"max_chunks": 2},
)
assert_valid_chunk_response(response3)
assert len(response3.chunks) <= 2
# Query with threshold on similarity score
query4 = "computer"
response4 = client_with_empty_registry.vector_io.query(
vector_db_id=vector_db_id,
query=query4,
params={"score_threshold": 0.01},
)
assert_valid_chunk_response(response4)
assert all(score >= 0.01 for score in response4.scores)
def test_vector_db_insert_from_url_and_query(
client_with_empty_registry, sample_documents, embedding_model_id, embedding_dimension
):
providers = [p for p in client_with_empty_registry.providers.list() if p.api == "vector_io"]
assert len(providers) > 0
vector_db_id = "test_vector_db"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
# list to check memory bank is successfully registered
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
# VectorDB is being migrated to VectorStore, so the ID will be different
# Just check that at least one vector DB was registered
assert len(available_vector_dbs) > 0
# Use the actual registered vector_db_id for subsequent operations
actual_vector_db_id = available_vector_dbs[0]
urls = [
"memory_optimizations.rst",
"chat.rst",
"llama3.rst",
]
documents = [
Document(
document_id=f"num-{i}",
content=f"https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/{url}",
mime_type="text/plain",
metadata={},
)
for i, url in enumerate(urls)
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=512,
)
# Query for the name of method
response1 = client_with_empty_registry.vector_io.query(
vector_db_id=actual_vector_db_id,
query="What's the name of the fine-tunning method used?",
)
assert_valid_chunk_response(response1)
assert any("lora" in chunk.content.lower() for chunk in response1.chunks)
# Query for the name of model
response2 = client_with_empty_registry.vector_io.query(
vector_db_id=actual_vector_db_id,
query="Which Llama model is mentioned?",
)
assert_valid_chunk_response(response2)
assert any("llama2" in chunk.content.lower() for chunk in response2.chunks)
def test_rag_tool_openai_apis(client_with_empty_registry, embedding_model_id, embedding_dimension):
vector_db_id = "test_openai_vector_db"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
actual_vector_db_id = available_vector_dbs[0]
# different document formats that should work with OpenAI APIs
documents = [
Document(
document_id="text-doc",
content="This is a plain text document about machine learning algorithms.",
metadata={"type": "text", "category": "AI"},
),
Document(
document_id="url-doc",
content="https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/chat.rst",
mime_type="text/plain",
metadata={"type": "url", "source": "pytorch"},
),
Document(
document_id="data-url-doc",
content="data:text/plain;base64,VGhpcyBpcyBhIGRhdGEgVVJMIGRvY3VtZW50IGFib3V0IGRlZXAgbGVhcm5pbmcu", # "This is a data URL document about deep learning."
metadata={"type": "data_url", "encoding": "base64"},
),
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=256,
)
files_list = client_with_empty_registry.files.list()
assert len(files_list.data) >= len(documents), (
f"Expected at least {len(documents)} files, got {len(files_list.data)}"
)
vector_store_files = client_with_empty_registry.vector_io.openai_list_files_in_vector_store(
vector_store_id=actual_vector_db_id
)
assert len(vector_store_files.data) >= len(documents), f"Expected at least {len(documents)} files in vector store"
response = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="Tell me about machine learning and deep learning",
)
assert_valid_text_response(response)
content_text = " ".join([chunk.text for chunk in response.content]).lower()
assert "machine learning" in content_text or "deep learning" in content_text
def test_rag_tool_exception_handling(client_with_empty_registry, embedding_model_id, embedding_dimension):
vector_db_id = "test_exception_handling"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
actual_vector_db_id = available_vector_dbs[0]
documents = [
Document(
document_id="valid-doc",
content="This is a valid document that should be processed successfully.",
metadata={"status": "valid"},
),
Document(
document_id="invalid-url-doc",
content="https://nonexistent-domain-12345.com/invalid.txt",
metadata={"status": "invalid_url"},
),
Document(
document_id="another-valid-doc",
content="This is another valid document for testing resilience.",
metadata={"status": "valid"},
),
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=256,
)
response = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="valid document",
)
assert_valid_text_response(response)
content_text = " ".join([chunk.text for chunk in response.content]).lower()
assert "valid document" in content_text
def test_rag_tool_insert_and_query(client_with_empty_registry, embedding_model_id, embedding_dimension):
providers = [p for p in client_with_empty_registry.providers.list() if p.api == "vector_io"]
assert len(providers) > 0
vector_db_id = "test_vector_db"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
# VectorDB is being migrated to VectorStore, so the ID will be different
# Just check that at least one vector DB was registered
assert len(available_vector_dbs) > 0
# Use the actual registered vector_db_id for subsequent operations
actual_vector_db_id = available_vector_dbs[0]
urls = [
"memory_optimizations.rst",
"chat.rst",
"llama3.rst",
]
documents = [
Document(
document_id=f"num-{i}",
content=f"https://raw.githubusercontent.com/pytorch/torchtune/main/docs/source/tutorials/{url}",
mime_type="text/plain",
metadata={"author": "llama", "source": url},
)
for i, url in enumerate(urls)
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=512,
)
response_with_metadata = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="What is the name of the method used for fine-tuning?",
)
assert_valid_text_response(response_with_metadata)
assert any("metadata:" in chunk.text.lower() for chunk in response_with_metadata.content)
response_without_metadata = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="What is the name of the method used for fine-tuning?",
query_config={
"include_metadata_in_content": True,
"chunk_template": "Result {index}\nContent: {chunk.content}\n",
},
)
assert_valid_text_response(response_without_metadata)
assert not any("metadata:" in chunk.text.lower() for chunk in response_without_metadata.content)
with pytest.raises((ValueError, BadRequestError)):
client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="What is the name of the method used for fine-tuning?",
query_config={
"chunk_template": "This should raise a ValueError because it is missing the proper template variables",
},
)
def test_rag_tool_query_generation(client_with_empty_registry, embedding_model_id, embedding_dimension):
vector_db_id = "test_query_generation_db"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
actual_vector_db_id = available_vector_dbs[0]
documents = [
Document(
document_id="ai-doc",
content="Artificial intelligence and machine learning are transforming technology.",
metadata={"category": "AI"},
),
Document(
document_id="banana-doc",
content="Don't bring a banana to a knife fight.",
metadata={"category": "wisdom"},
),
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=256,
)
response = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="Tell me about AI",
)
assert_valid_text_response(response)
content_text = " ".join([chunk.text for chunk in response.content]).lower()
assert "artificial intelligence" in content_text or "machine learning" in content_text
def test_rag_tool_pdf_data_url_handling(client_with_empty_registry, embedding_model_id, embedding_dimension):
vector_db_id = "test_pdf_data_url_db"
client_with_empty_registry.vector_dbs.register(
vector_db_id=vector_db_id,
embedding_model=embedding_model_id,
embedding_dimension=embedding_dimension,
)
available_vector_dbs = [vector_db.identifier for vector_db in client_with_empty_registry.vector_dbs.list()]
actual_vector_db_id = available_vector_dbs[0]
sample_pdf = b"%PDF-1.3\n3 0 obj\n<</Type /Page\n/Parent 1 0 R\n/Resources 2 0 R\n/Contents 4 0 R>>\nendobj\n4 0 obj\n<</Filter /FlateDecode /Length 115>>\nstream\nx\x9c\x15\xcc1\x0e\x820\x18@\xe1\x9dS\xbcM]jk$\xd5\xd5(\x83!\x86\xa1\x17\xf8\xa3\xa5`LIh+\xd7W\xc6\xf7\r\xef\xc0\xbd\xd2\xaa\xb6,\xd5\xc5\xb1o\x0c\xa6VZ\xe3znn%\xf3o\xab\xb1\xe7\xa3:Y\xdc\x8bm\xeb\xf3&1\xc8\xd7\xd3\x97\xc82\xe6\x81\x87\xe42\xcb\x87Vb(\x12<\xdd<=}Jc\x0cL\x91\xee\xda$\xb5\xc3\xbd\xd7\xe9\x0f\x8d\x97 $\nendstream\nendobj\n1 0 obj\n<</Type /Pages\n/Kids [3 0 R ]\n/Count 1\n/MediaBox [0 0 595.28 841.89]\n>>\nendobj\n5 0 obj\n<</Type /Font\n/BaseFont /Helvetica\n/Subtype /Type1\n/Encoding /WinAnsiEncoding\n>>\nendobj\n2 0 obj\n<<\n/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]\n/Font <<\n/F1 5 0 R\n>>\n/XObject <<\n>>\n>>\nendobj\n6 0 obj\n<<\n/Producer (PyFPDF 1.7.2 http://pyfpdf.googlecode.com/)\n/Title (This is a sample title.)\n/Author (Llama Stack Developers)\n/CreationDate (D:20250312165548)\n>>\nendobj\n7 0 obj\n<<\n/Type /Catalog\n/Pages 1 0 R\n/OpenAction [3 0 R /FitH null]\n/PageLayout /OneColumn\n>>\nendobj\nxref\n0 8\n0000000000 65535 f \n0000000272 00000 n \n0000000455 00000 n \n0000000009 00000 n \n0000000087 00000 n \n0000000359 00000 n \n0000000559 00000 n \n0000000734 00000 n \ntrailer\n<<\n/Size 8\n/Root 7 0 R\n/Info 6 0 R\n>>\nstartxref\n837\n%%EOF\n"
import base64
pdf_base64 = base64.b64encode(sample_pdf).decode("utf-8")
pdf_data_url = f"data:application/pdf;base64,{pdf_base64}"
documents = [
Document(
document_id="test-pdf-data-url",
content=pdf_data_url,
metadata={"type": "pdf", "source": "data_url"},
),
]
client_with_empty_registry.tool_runtime.rag_tool.insert(
documents=documents,
vector_db_id=actual_vector_db_id,
chunk_size_in_tokens=256,
)
files_list = client_with_empty_registry.files.list()
assert len(files_list.data) >= 1, "PDF should have been uploaded to Files API"
pdf_file = None
for file in files_list.data:
if file.filename and "test-pdf-data-url" in file.filename:
pdf_file = file
break
assert pdf_file is not None, "PDF file should be found in Files API"
assert pdf_file.bytes == len(sample_pdf), f"File size should match original PDF ({len(sample_pdf)} bytes)"
file_content = client_with_empty_registry.files.retrieve_content(pdf_file.id)
assert file_content.startswith(b"%PDF-"), "Retrieved file should be a valid PDF"
vector_store_files = client_with_empty_registry.vector_io.openai_list_files_in_vector_store(
vector_store_id=actual_vector_db_id
)
assert len(vector_store_files.data) >= 1, "PDF should be attached to vector store"
response = client_with_empty_registry.tool_runtime.rag_tool.query(
vector_db_ids=[actual_vector_db_id],
content="sample title",
)
assert_valid_text_response(response)
content_text = " ".join([chunk.text for chunk in response.content]).lower()
assert "sample title" in content_text or "title" in content_text

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file_removes_from_vector_store[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What is the secret string?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07473014,
0.08137506,
-0.06463602,
0.011821943,
-0.07454815,
0.021821007,
0.077573344,
0.012804661,
0.05853777,
-0.014141324,
0.053993534,
-0.026554074,
-0.018055506,
-0.060447972,
-0.019253474,
-0.006501444,
-0.047272332,
-0.048944764,
-0.090516366,
-0.06656194,
0.09287066,
0.02129739,
-0.013401809,
-0.006629013,
0.0079892,
0.016818035,
0.03971694,
0.021875564,
0.014873574,
-0.039426163,
0.025255844,
-0.036836684,
0.016627828,
0.008789532,
-0.053503897,
0.03616121,
-0.034633957,
-0.009877797,
0.064843215,
-0.01517806,
0.020897496,
-0.07135096,
-0.008519908,
0.05118655,
-0.062102985,
0.059486073,
-0.047937352,
0.07045817,
-0.024867272,
-0.010756205,
0.06538509,
-0.03693754,
-0.08240387,
0.08169191,
0.017090658,
0.012944557,
-0.047139525,
0.0025796075,
0.008701712,
0.099866174,
0.04969699,
-0.025922626,
-0.017354922,
0.03395182,
0.038391408,
-0.054247838,
0.008610521,
-0.04077977,
0.0265637,
-0.07186012,
-0.019953186,
-0.041191205,
-0.07246228,
0.00041248833,
0.018758524,
0.023036895,
0.01662864,
-0.06335885,
0.03495032,
0.050063577,
0.00043262896,
-0.06176693,
0.0062733325,
0.11142063,
0.0040838965,
0.085737824,
0.023284689,
0.05699812,
-0.03149832,
-0.013344509,
-0.045138564,
-0.117300816,
0.016063986,
-0.016894838,
-0.028934335,
0.03575864,
-0.05156192,
0.032958068,
-0.11266628,
0.06640015,
0.037839692,
0.022948038,
0.058071073,
-0.039643735,
-0.03247236,
0.017690921,
-0.005001274,
0.019046135,
0.07745316,
-0.020402163,
-0.020310633,
-0.009519755,
0.0031459313,
-0.0045639877,
-0.029116316,
0.033835515,
0.00050839526,
0.06419946,
0.010721198,
0.124151744,
-0.0053820186,
0.00491648,
-0.059696514,
0.029483523,
-0.13409872,
0.016187217,
-0.048092023,
-6.6084764e-33,
0.012305612,
0.060384244,
0.036461998,
-0.035974216,
-0.04197416,
0.012333701,
-0.084805995,
0.012502633,
0.02794982,
0.0861082,
-0.030791838,
-0.061355945,
-0.0009604986,
-0.0252044,
0.045444816,
-0.027590565,
-0.009594973,
0.006712001,
0.043692384,
-0.021483036,
0.003300438,
0.11860881,
0.047044385,
-0.1348901,
0.025469579,
-0.01029819,
0.0022393467,
-0.061863262,
0.10386513,
0.018658707,
-0.0017492755,
-0.051914047,
0.046442248,
0.03761067,
0.033752125,
0.006650237,
0.022015076,
-0.07834835,
-0.008209136,
0.027432231,
0.017393896,
-0.07524756,
0.006497012,
0.027272953,
0.0005804994,
-0.010941825,
-0.020050043,
-0.00012092298,
0.013705002,
0.004699541,
0.022770848,
0.015477994,
-0.0142482165,
-0.013953546,
0.015865315,
-0.023075614,
0.03379947,
-0.039221376,
-0.043229815,
0.02998769,
-0.01652291,
0.06981088,
0.04606923,
0.05332633,
-0.055300076,
0.02511626,
0.014049543,
-0.09398743,
0.03590562,
0.029452223,
-0.13200304,
-0.005059034,
-0.03784268,
-0.03180819,
-0.095502876,
-0.027853556,
0.0024331037,
-0.007881495,
0.058296,
-0.031999517,
-0.06077097,
-0.023381822,
-0.00048603877,
0.13765746,
-0.060579,
-0.008109843,
-0.034873307,
-0.1024547,
-0.009072849,
-0.018931676,
-0.0016711762,
-0.07710289,
-0.043332253,
-0.03619527,
0.03958017,
3.0217083e-33,
0.0050329794,
0.00016030145,
-0.063078895,
0.012225751,
0.10637338,
0.015972024,
0.006653195,
0.01880781,
-0.04708357,
0.045863643,
0.0076015075,
0.03243478,
0.032097474,
-0.020893326,
0.10697852,
0.0075498912,
0.036074348,
0.1462344,
0.03779065,
-0.043190572,
-0.02176097,
-0.009340132,
-0.06983617,
0.015578788,
0.021121953,
0.030661412,
0.08434581,
-0.09288574,
0.008169474,
0.078080945,
-0.081626564,
0.011895231,
0.017099649,
0.0040119104,
-0.14145434,
0.0040375097,
0.046316408,
0.008959473,
-0.0056506568,
-0.055587813,
0.028007837,
0.055937108,
0.062269785,
0.08602392,
-0.12157818,
0.021943888,
-0.0050934856,
0.029819332,
-0.012127162,
0.048801802,
0.06409215,
-0.041438665,
0.01809265,
-0.028214281,
-0.0213588,
0.05564267,
-0.1547868,
0.027465124,
0.018855799,
0.04327939,
0.011500479,
0.017364705,
-0.023216385,
0.051007293,
0.02946264,
0.012533944,
-0.04542834,
-0.002238765,
-0.05611544,
-0.0789272,
0.07960444,
-0.020431034,
-0.0762138,
0.011588508,
-0.035614885,
-0.04803985,
-0.06607436,
-0.057365946,
-0.040188126,
0.07176218,
0.03135825,
0.02303279,
-0.023997622,
0.023614945,
0.09607302,
-0.06843066,
0.014260722,
0.08802569,
-0.037736766,
0.029445928,
-0.028643936,
0.10217973,
-0.0660917,
0.022864237,
0.042151757,
-1.4814046e-08,
0.030838449,
0.043877687,
-0.0245681,
-0.09818859,
0.056659035,
0.0929652,
-0.010337853,
-0.0983916,
0.018008571,
-0.0131424805,
0.026400762,
0.008793538,
-0.05285605,
-0.042175982,
0.030133193,
0.01710666,
-0.06242493,
-0.018753909,
-0.015986755,
-0.018400662,
-0.026477808,
0.010281372,
-0.030476814,
-0.084556945,
-0.05402664,
0.010030052,
0.029531356,
0.13555466,
0.033426728,
0.12098221,
0.040777553,
0.008206964,
-0.018235989,
-0.0568263,
-0.1289943,
0.12416113,
-0.053454727,
-0.038151894,
0.030221034,
0.019807614,
0.047819767,
0.029434063,
0.0015704447,
0.0611775,
-0.05557245,
-0.030236417,
0.10799873,
-0.07073352,
-0.08215229,
0.004518122,
-0.015573616,
-0.013696145,
-0.0023438279,
0.026377691,
-0.015769389,
0.016251203,
-0.04062322,
-0.013962793,
-0.08309221,
0.031991288,
0.049991824,
-0.0038595141,
0.07031122,
0.0049263495
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What is the secret string?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07473014,
0.08137506,
-0.06463602,
0.011821943,
-0.07454815,
0.021821007,
0.077573344,
0.012804661,
0.05853777,
-0.014141324,
0.053993534,
-0.026554074,
-0.018055506,
-0.060447972,
-0.019253474,
-0.006501444,
-0.047272332,
-0.048944764,
-0.090516366,
-0.06656194,
0.09287066,
0.02129739,
-0.013401809,
-0.006629013,
0.0079892,
0.016818035,
0.03971694,
0.021875564,
0.014873574,
-0.039426163,
0.025255844,
-0.036836684,
0.016627828,
0.008789532,
-0.053503897,
0.03616121,
-0.034633957,
-0.009877797,
0.064843215,
-0.01517806,
0.020897496,
-0.07135096,
-0.008519908,
0.05118655,
-0.062102985,
0.059486073,
-0.047937352,
0.07045817,
-0.024867272,
-0.010756205,
0.06538509,
-0.03693754,
-0.08240387,
0.08169191,
0.017090658,
0.012944557,
-0.047139525,
0.0025796075,
0.008701712,
0.099866174,
0.04969699,
-0.025922626,
-0.017354922,
0.03395182,
0.038391408,
-0.054247838,
0.008610521,
-0.04077977,
0.0265637,
-0.07186012,
-0.019953186,
-0.041191205,
-0.07246228,
0.00041248833,
0.018758524,
0.023036895,
0.01662864,
-0.06335885,
0.03495032,
0.050063577,
0.00043262896,
-0.06176693,
0.0062733325,
0.11142063,
0.0040838965,
0.085737824,
0.023284689,
0.05699812,
-0.03149832,
-0.013344509,
-0.045138564,
-0.117300816,
0.016063986,
-0.016894838,
-0.028934335,
0.03575864,
-0.05156192,
0.032958068,
-0.11266628,
0.06640015,
0.037839692,
0.022948038,
0.058071073,
-0.039643735,
-0.03247236,
0.017690921,
-0.005001274,
0.019046135,
0.07745316,
-0.020402163,
-0.020310633,
-0.009519755,
0.0031459313,
-0.0045639877,
-0.029116316,
0.033835515,
0.00050839526,
0.06419946,
0.010721198,
0.124151744,
-0.0053820186,
0.00491648,
-0.059696514,
0.029483523,
-0.13409872,
0.016187217,
-0.048092023,
-6.6084764e-33,
0.012305612,
0.060384244,
0.036461998,
-0.035974216,
-0.04197416,
0.012333701,
-0.084805995,
0.012502633,
0.02794982,
0.0861082,
-0.030791838,
-0.061355945,
-0.0009604986,
-0.0252044,
0.045444816,
-0.027590565,
-0.009594973,
0.006712001,
0.043692384,
-0.021483036,
0.003300438,
0.11860881,
0.047044385,
-0.1348901,
0.025469579,
-0.01029819,
0.0022393467,
-0.061863262,
0.10386513,
0.018658707,
-0.0017492755,
-0.051914047,
0.046442248,
0.03761067,
0.033752125,
0.006650237,
0.022015076,
-0.07834835,
-0.008209136,
0.027432231,
0.017393896,
-0.07524756,
0.006497012,
0.027272953,
0.0005804994,
-0.010941825,
-0.020050043,
-0.00012092298,
0.013705002,
0.004699541,
0.022770848,
0.015477994,
-0.0142482165,
-0.013953546,
0.015865315,
-0.023075614,
0.03379947,
-0.039221376,
-0.043229815,
0.02998769,
-0.01652291,
0.06981088,
0.04606923,
0.05332633,
-0.055300076,
0.02511626,
0.014049543,
-0.09398743,
0.03590562,
0.029452223,
-0.13200304,
-0.005059034,
-0.03784268,
-0.03180819,
-0.095502876,
-0.027853556,
0.0024331037,
-0.007881495,
0.058296,
-0.031999517,
-0.06077097,
-0.023381822,
-0.00048603877,
0.13765746,
-0.060579,
-0.008109843,
-0.034873307,
-0.1024547,
-0.009072849,
-0.018931676,
-0.0016711762,
-0.07710289,
-0.043332253,
-0.03619527,
0.03958017,
3.0217083e-33,
0.0050329794,
0.00016030145,
-0.063078895,
0.012225751,
0.10637338,
0.015972024,
0.006653195,
0.01880781,
-0.04708357,
0.045863643,
0.0076015075,
0.03243478,
0.032097474,
-0.020893326,
0.10697852,
0.0075498912,
0.036074348,
0.1462344,
0.03779065,
-0.043190572,
-0.02176097,
-0.009340132,
-0.06983617,
0.015578788,
0.021121953,
0.030661412,
0.08434581,
-0.09288574,
0.008169474,
0.078080945,
-0.081626564,
0.011895231,
0.017099649,
0.0040119104,
-0.14145434,
0.0040375097,
0.046316408,
0.008959473,
-0.0056506568,
-0.055587813,
0.028007837,
0.055937108,
0.062269785,
0.08602392,
-0.12157818,
0.021943888,
-0.0050934856,
0.029819332,
-0.012127162,
0.048801802,
0.06409215,
-0.041438665,
0.01809265,
-0.028214281,
-0.0213588,
0.05564267,
-0.1547868,
0.027465124,
0.018855799,
0.04327939,
0.011500479,
0.017364705,
-0.023216385,
0.051007293,
0.02946264,
0.012533944,
-0.04542834,
-0.002238765,
-0.05611544,
-0.0789272,
0.07960444,
-0.020431034,
-0.0762138,
0.011588508,
-0.035614885,
-0.04803985,
-0.06607436,
-0.057365946,
-0.040188126,
0.07176218,
0.03135825,
0.02303279,
-0.023997622,
0.023614945,
0.09607302,
-0.06843066,
0.014260722,
0.08802569,
-0.037736766,
0.029445928,
-0.028643936,
0.10217973,
-0.0660917,
0.022864237,
0.042151757,
-1.4814046e-08,
0.030838449,
0.043877687,
-0.0245681,
-0.09818859,
0.056659035,
0.0929652,
-0.010337853,
-0.0983916,
0.018008571,
-0.0131424805,
0.026400762,
0.008793538,
-0.05285605,
-0.042175982,
0.030133193,
0.01710666,
-0.06242493,
-0.018753909,
-0.015986755,
-0.018400662,
-0.026477808,
0.010281372,
-0.030476814,
-0.084556945,
-0.05402664,
0.010030052,
0.029531356,
0.13555466,
0.033426728,
0.12098221,
0.040777553,
0.008206964,
-0.018235989,
-0.0568263,
-0.1289943,
0.12416113,
-0.053454727,
-0.038151894,
0.030221034,
0.019807614,
0.047819767,
0.029434063,
0.0015704447,
0.0611775,
-0.05557245,
-0.030236417,
0.10799873,
-0.07073352,
-0.08215229,
0.004518122,
-0.015573616,
-0.013696145,
-0.0023438279,
0.026377691,
-0.015769389,
0.016251203,
-0.04062322,
-0.013962793,
-0.08309221,
0.031991288,
0.049991824,
-0.0038595141,
0.07031122,
0.0049263495
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384-test_case2]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Why are data structures important?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.003961408,
0.051414188,
-0.00058039324,
-0.03805786,
0.00026862609,
-0.07164569,
-0.032947958,
0.029143414,
0.0895043,
0.027018296,
0.022992423,
0.029479899,
0.013462918,
0.021877697,
0.024697151,
0.023186686,
-0.06790505,
0.042193525,
-0.0668863,
-0.04484601,
-0.019504927,
-0.017638002,
-0.047011577,
0.010105266,
-0.035193082,
0.12793653,
-0.03992006,
-0.03702981,
0.021819357,
-0.06665871,
0.020533124,
0.03142357,
0.121719204,
0.037876442,
-0.075640336,
0.0359664,
0.11100785,
-0.02567441,
-0.07788109,
0.016981006,
-0.08081605,
0.042523988,
0.008232587,
0.0731737,
0.011123085,
0.016207846,
0.01944517,
-0.057269264,
-0.026940528,
0.027561199,
-0.103662655,
0.06181235,
-0.028062372,
0.04553612,
0.038513146,
0.10225101,
0.010200513,
0.003872203,
-0.074381135,
-0.0097752875,
-0.014599097,
0.0054576746,
-0.04897588,
0.024681844,
0.08043012,
-0.0014103616,
0.0008604012,
0.0016741438,
0.016251745,
0.00360708,
0.058014695,
-0.010049014,
-0.0084027,
0.06814959,
0.033971835,
-0.011656133,
-0.04935883,
-0.03459291,
0.022477727,
0.01610207,
0.025287844,
0.03501659,
-0.018194117,
0.06807382,
0.059983365,
-0.025374522,
0.04583719,
-0.04297365,
-0.104865946,
-0.028109012,
0.079001896,
-0.017114554,
0.012419278,
0.04061318,
-0.020101532,
0.026956845,
0.041828763,
-0.044170532,
0.08095696,
0.021788325,
0.081747636,
0.033276387,
0.021741632,
0.092068955,
-0.05207143,
-0.13620017,
0.013549487,
-0.019821124,
-0.036206715,
-0.050286006,
-0.032959178,
0.04662646,
-0.062424622,
-0.056837536,
-0.027646665,
-0.15120761,
-0.093959294,
-0.010999317,
-0.02427833,
-0.046769585,
-0.002897303,
-0.06647176,
-0.025597623,
0.018255977,
0.0020313214,
-0.06226326,
-0.117481604,
-4.4295206e-33,
-0.009129055,
-0.037181977,
-0.02604801,
0.052037112,
0.00087297254,
0.0065994835,
-0.0045263134,
-0.040167294,
0.0041152886,
0.042845216,
-0.049708433,
0.045345027,
0.04285296,
0.044911012,
0.11100636,
0.021593297,
-0.03125754,
0.072277226,
-0.01916381,
-0.03471753,
0.06770263,
-0.016145714,
0.05970865,
-0.02298266,
0.028831182,
0.015415605,
-0.00031274176,
-0.012733097,
-0.03328956,
-0.00013622487,
-0.024770694,
-0.042212497,
-0.0024302523,
0.04124051,
0.09191475,
0.06856497,
-0.015284932,
-0.12650564,
0.017038988,
-0.086213395,
0.05503028,
0.030287316,
0.0043085497,
0.03199775,
-0.032243066,
0.004920853,
0.009013211,
-0.023148343,
-0.04070659,
-0.091041416,
0.036388315,
0.024427423,
0.013590955,
0.032416057,
0.040976506,
0.037508775,
-0.041537814,
-0.0790035,
-0.05377612,
0.06448428,
-0.080218546,
0.021294411,
0.062302276,
0.045776673,
0.032483075,
0.08931608,
-0.04060625,
-0.031852096,
0.09785858,
0.01842136,
0.005539284,
0.033401128,
-0.069316946,
0.0050071795,
-0.01113226,
0.04040353,
-0.018702384,
-0.061634906,
-0.019955046,
0.055725593,
-0.0339558,
-0.03284888,
0.039789777,
0.032518264,
-0.014831044,
-0.040828414,
0.09042645,
-0.07117855,
-0.0452999,
0.004429679,
-0.011286574,
0.010456636,
-0.005107356,
-0.03228427,
-0.014561991,
1.973978e-33,
-0.014741807,
-0.011373571,
-0.018968971,
-0.030024195,
-0.032379575,
0.00021643718,
-0.012567692,
-0.121494584,
0.0020773544,
0.03192013,
-0.004760303,
0.0094626825,
0.070903994,
-0.10057645,
0.025073227,
0.0619163,
-0.0040503214,
-0.099229865,
-0.011797051,
-0.04770035,
-0.030485118,
0.06268395,
-0.073855996,
-0.0061467164,
-0.01423362,
0.0073681897,
-0.12381955,
-0.12358002,
0.049814835,
0.013639601,
-0.04231122,
-0.057728436,
0.008867639,
-0.03936158,
-0.010378862,
0.01995126,
0.06864242,
-0.0034683226,
0.034935873,
0.01691657,
-0.041248,
0.12756771,
-0.0109369,
-0.038407195,
0.03351686,
0.024284633,
-0.009186648,
0.089450404,
-0.037300985,
-0.033677705,
0.083595864,
0.024388704,
0.013052032,
-0.082466476,
0.08174954,
0.025851287,
-0.0407412,
0.011634866,
0.045149248,
0.057999264,
-0.043137826,
-0.0218611,
0.007614091,
0.075013876,
-0.037117332,
-0.040271968,
-0.044543337,
-0.10995435,
-0.024011672,
-0.08962033,
0.020206504,
0.030622963,
-0.021175418,
0.046819735,
-0.08388905,
-0.04419095,
-0.041822553,
0.031128531,
0.010744972,
0.06392119,
-0.0031621107,
-0.012324199,
0.039583333,
0.03872388,
0.04003792,
0.012126796,
0.060538515,
-0.046224117,
0.009284271,
-0.051235553,
-0.049639463,
-0.015559349,
-0.08584357,
0.07390804,
-0.029281551,
-1.4552155e-08,
-0.060234137,
-0.05653537,
-0.003924483,
-0.030553697,
0.033688337,
-0.051516354,
0.011325061,
0.14125879,
0.0239569,
0.01933575,
0.066012196,
0.030753234,
-0.10696803,
0.0034088665,
0.073148385,
0.02414587,
0.080867074,
-0.07877004,
-0.032145467,
0.07524812,
0.0542984,
0.009829384,
-0.1270656,
0.06314169,
0.09003407,
-0.0016169662,
0.058391552,
0.059590362,
-0.0047688517,
0.022996303,
0.035714924,
-0.034012605,
0.07277301,
0.0797266,
0.0912049,
0.022215161,
0.045965668,
0.04404474,
-0.083592154,
-0.10004596,
0.020836696,
0.023092525,
-0.047950342,
0.08443384,
0.0771323,
0.009310225,
-0.080956854,
0.09289323,
-0.020150434,
-0.00083508895,
-0.038630493,
0.01606296,
0.007031474,
-0.01770303,
-0.0022343053,
-0.021911092,
0.03337036,
-0.032134622,
-0.012314019,
-0.0021285508,
0.021125747,
0.016543584,
0.01756058,
-0.0771557
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_retrieve_contents[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is the content of 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.029406646,
0.08920979,
-0.11326723,
0.006582359,
0.077250674,
-0.03689013,
0.030436229,
0.041454166,
-0.049156617,
0.018258527,
0.14662579,
0.017449213,
-0.012837442,
-0.06889875,
-0.039401624,
-0.038800698,
-0.089634225,
-0.05965662,
0.0013759041,
0.045138657,
0.042796984,
0.05370027,
-0.03570682,
0.010138027,
0.06092007,
0.01734418,
-0.05633908,
0.06337028,
0.0021257722,
-0.08379685,
0.05048752,
0.047987603,
0.069071196,
0.04958848,
0.11703658,
0.053393103,
0.10129956,
-0.048230167,
-0.0149879875,
0.02509149,
0.031392116,
-0.0088639315,
0.0073649837,
-0.0009768078,
-0.016403602,
0.015523453,
-0.010998905,
-0.014869988,
0.006168222,
-0.0017961055,
-0.022682808,
0.01821022,
-0.07757014,
-0.0015845159,
0.06954703,
0.00041901413,
0.038414028,
0.0058234893,
-0.028931376,
0.07009551,
-0.00180101,
0.03351619,
-0.01459379,
0.039224565,
0.08240545,
-0.050596926,
-0.039732885,
-0.024425074,
-0.015055349,
-0.11705068,
-0.1597913,
-0.00825684,
-0.010072011,
0.032664835,
0.0029997872,
0.031642783,
-0.09455495,
0.017661806,
0.058996256,
-0.11971813,
-0.02741471,
-0.09155911,
0.04003796,
0.010918448,
-0.029445998,
0.10225186,
0.065832615,
-0.0034395577,
-0.009694852,
0.016906504,
0.02368599,
-0.03261614,
-0.010238897,
0.07891618,
-0.007330675,
0.05238438,
0.0094362525,
0.042121083,
0.084915146,
0.049208265,
-0.01868229,
-0.01358542,
0.067272,
0.08457155,
-0.10321306,
-0.08387528,
0.036418445,
-0.047227856,
0.057315882,
-0.04463928,
0.006783125,
-0.089341074,
-0.0150403725,
-0.08107064,
0.013285529,
-0.060907837,
-0.04212832,
0.0573062,
-0.05871193,
0.04628303,
0.07019405,
-0.04172959,
-0.03384083,
-0.012369268,
-0.04470885,
-0.059450105,
0.08251312,
-3.4433694e-33,
0.0121309515,
-0.11084455,
-0.020510646,
0.10916456,
0.033683117,
-0.02845082,
0.024345214,
0.034192592,
-0.08367814,
0.006461128,
-0.009124508,
-0.0663567,
-0.0028754692,
0.008272735,
-0.09166767,
0.008977185,
-0.03963945,
0.019947553,
-0.013215279,
-0.019034207,
0.051933147,
0.02810728,
-0.039153166,
-0.080395184,
-0.05050351,
0.020603392,
-0.012718264,
-0.04673254,
0.017907966,
-0.0028334805,
-0.011695186,
-0.056670025,
-0.04389449,
0.034919634,
0.022352071,
0.046777226,
0.04508585,
-0.008840074,
-0.063734464,
0.03672093,
0.012829646,
-0.03516989,
0.046209153,
-0.014361774,
0.03706698,
-0.056797627,
-0.06310496,
0.010818947,
0.04781017,
0.0029118012,
-0.0032358805,
0.061511032,
0.07205669,
-0.03286635,
0.005070118,
0.021947933,
-0.017778976,
-0.02273843,
-0.021926481,
0.04707421,
0.010847564,
0.055397004,
-0.07119968,
0.033833247,
0.012342855,
-0.04758672,
-0.026776215,
-0.098857164,
0.10053446,
0.03687711,
-0.070498966,
-0.059692945,
0.016129475,
-0.0016443543,
-0.026804041,
-0.013527224,
-0.015385459,
0.05562752,
-0.060485095,
-0.055540092,
-0.043290764,
-0.07097362,
-0.04857042,
-0.03726255,
-0.09059368,
-0.036855545,
0.024561191,
-0.101139575,
0.05673813,
-0.10995091,
0.04228283,
0.014222388,
-0.07067845,
-0.059023086,
0.06426122,
1.6036347e-33,
0.037851926,
0.032911293,
-0.04029644,
-0.0004935678,
0.028011912,
0.048672143,
0.07279597,
-0.027471947,
-0.02847661,
0.11449201,
0.0017770563,
-0.009519905,
0.002586274,
-0.056408174,
0.023462147,
-0.006209652,
-0.010567024,
-0.05877588,
-0.032393593,
0.011836728,
-0.038905017,
0.055162948,
0.09564335,
0.028543264,
-0.023832355,
-0.001571201,
0.04704906,
0.03128221,
0.028110944,
0.007177121,
0.055283498,
0.065744534,
-0.10202077,
0.0212136,
0.020237893,
-0.10449359,
0.096089326,
-0.0625318,
0.01529378,
0.042053994,
0.061050024,
0.09091622,
0.018404234,
0.031023262,
0.0356276,
0.112074025,
0.101247594,
-0.007682999,
0.013140254,
-0.04228024,
0.051135294,
-0.029507384,
0.027794365,
-0.010734649,
-0.011067563,
0.058104534,
-0.0092848325,
0.056184538,
-0.040823,
0.010282793,
0.037440926,
0.054198533,
-0.061418094,
0.03056995,
0.002364839,
-0.054184474,
-0.020569982,
0.012422177,
0.025696557,
-0.0076073636,
-0.026194802,
-0.024159035,
0.0012979973,
-0.07461715,
0.051458012,
-0.0041838204,
-0.040804498,
-0.023975449,
0.009455527,
-0.0018798395,
0.036686935,
-0.01931951,
-0.061957866,
0.06456672,
0.04032823,
-0.010790085,
0.013190201,
0.090675384,
-0.00514807,
0.013312666,
-0.029548654,
0.07769,
0.0027328236,
0.045337822,
-0.0017606482,
-1.6615942e-08,
-0.0406104,
-0.098830596,
-0.055221125,
-0.029164754,
-0.019305475,
0.08813818,
-0.03832556,
-0.033276368,
-0.012629351,
0.006948911,
0.010438865,
0.026771495,
-0.040855456,
-0.03958403,
-0.051137038,
-0.016159324,
-0.020525116,
-0.0237264,
-0.013322229,
-0.008097851,
0.028000912,
0.02806973,
0.015645923,
-0.0043167104,
0.005448835,
0.06720417,
0.06847374,
0.07172718,
-0.063394405,
-0.025406148,
0.084684916,
0.04193671,
0.02106718,
-0.07596482,
0.017143346,
0.12602912,
0.121315226,
0.08431054,
0.04058731,
0.036687322,
-0.047169972,
-0.022659343,
-0.0068204585,
0.0052106674,
-0.033786003,
-0.08449121,
-0.08445006,
-0.031927504,
-0.036649484,
-0.13791409,
-0.036417473,
-0.0008054581,
-0.04757889,
0.03879598,
-0.06757744,
0.01694201,
0.036312714,
0.012577993,
-0.058240596,
0.0044712494,
0.032265265,
0.0982174,
0.053010277,
-0.016268048
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_list_files[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch list 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.026654687,
0.024452077,
-0.1139506,
0.03856563,
0.014124825,
0.0074432967,
0.090221025,
0.050991993,
-0.14990892,
0.011114308,
0.09637797,
0.017449306,
0.02125126,
-0.09830446,
-0.050306804,
0.0028243647,
-0.049127623,
-0.024658091,
0.00031474957,
-0.08200882,
0.013139788,
0.03023591,
-0.06822236,
0.019828897,
0.024468401,
0.01093643,
0.0013910357,
-0.043733887,
-0.081199914,
-0.0828776,
-0.009885708,
0.034456402,
0.09182025,
0.051413156,
0.21523972,
-0.024441116,
0.055349704,
0.04393575,
-0.02791881,
0.010488583,
0.032701433,
-0.041195206,
-0.028770478,
-0.0458853,
-0.011582085,
-0.00871958,
-0.042531442,
-0.015596647,
0.009807966,
-0.04052592,
-0.097914495,
-0.016153526,
-0.033625863,
-0.029398082,
-0.017599285,
0.020051528,
0.07416734,
0.04713787,
-0.046889056,
0.010329713,
-0.022568654,
-0.053283226,
-0.031405948,
0.0071451264,
0.074516356,
-0.053875234,
-0.039318826,
0.01954052,
0.061838593,
-0.0988704,
-0.11216514,
0.05507487,
-0.041442905,
-0.0031637498,
-0.0426329,
0.00868271,
0.022812206,
0.016854672,
-0.023670673,
-0.08682866,
-0.06994251,
-0.090295225,
0.03363725,
-0.065658905,
-0.058529533,
0.021201625,
0.023692427,
0.039577886,
-0.017618336,
0.004256976,
-0.02889003,
-0.027627867,
-0.007380277,
0.013479348,
0.0037920324,
0.13223451,
0.0086842645,
0.044237822,
0.030107979,
0.0039674295,
0.004454824,
-0.02372803,
0.009404582,
0.09019233,
-0.035894953,
-0.05536505,
0.07841986,
-0.09759913,
0.042643704,
-0.06841906,
-0.024365075,
0.030787079,
0.007492311,
-0.10710555,
0.029260593,
-0.12377258,
0.006293836,
0.0716477,
-0.103731476,
0.0722891,
0.039905887,
-0.057314686,
0.0019951754,
-0.025712965,
-0.053491935,
-0.02878148,
0.018335236,
-9.213444e-34,
-0.014958336,
-0.14040796,
-0.0020862112,
0.053644143,
0.061184462,
-0.023471,
0.028143182,
0.01389217,
-0.07089758,
-0.033845782,
0.013592736,
-0.09175972,
0.02609767,
0.03978577,
-0.091303125,
-0.009530289,
0.0009604899,
0.06769314,
-0.008414227,
-0.09891154,
0.043122225,
0.032900088,
-0.014758909,
-0.024978621,
-0.030166645,
-0.02154586,
0.008096995,
-0.022792077,
0.031495504,
0.005166396,
0.02800541,
-0.004555192,
-0.053282246,
0.044040125,
0.018465158,
0.06764213,
0.027691394,
-0.023345668,
0.03979653,
-0.0108061815,
-0.0433575,
-0.0053964457,
0.0057261065,
0.021266153,
0.0073551,
-0.045078952,
-0.0754476,
0.047708474,
0.09417267,
0.04923376,
0.0064712586,
0.009458537,
-0.02965998,
-0.0025927352,
0.008194652,
0.0024233914,
-0.03606906,
-0.04523259,
0.0475061,
0.07422418,
-0.029725099,
0.018629357,
-0.09468402,
0.059102483,
0.02429139,
-0.08223788,
0.059906166,
-0.04173233,
0.047276534,
0.07987219,
-0.023748739,
-0.011314122,
0.0762012,
-0.009654777,
0.0019907635,
-0.013876171,
0.07441839,
0.019780278,
-0.08972605,
-0.01682911,
0.018730156,
-0.0716306,
-0.098778896,
-0.028125258,
-0.006705559,
-0.040142916,
-0.0011408459,
-0.03824728,
0.11823234,
-0.09058682,
-0.012214238,
0.03453844,
-0.0038697596,
-0.008567002,
0.036206253,
-1.47862505e-33,
0.12119851,
0.12298278,
0.026005113,
-0.013240869,
0.043463666,
0.009894676,
0.031471584,
-0.033759605,
-0.060157593,
0.09595057,
-0.059792235,
0.03352425,
-0.013199708,
-0.045807462,
0.030246317,
-0.0036194616,
0.032309275,
0.013857993,
-0.066962086,
-0.012374286,
-0.037913665,
0.09342285,
-0.005066124,
0.076662436,
-0.025112577,
-0.04840705,
-0.033852383,
0.031135324,
0.050112516,
-0.0047866167,
0.057173196,
0.062488865,
-0.03444626,
0.08130611,
0.057001427,
-0.052079313,
0.089987144,
0.04835568,
0.009681906,
0.075275876,
0.019253878,
0.08852292,
-0.015337396,
-0.017113382,
-0.0016465652,
0.036441136,
0.050348606,
0.026926653,
-0.034951936,
0.05583207,
-0.0105295265,
-0.04353733,
-0.06201696,
-0.0013114201,
-0.012707974,
-0.030748433,
0.023135139,
0.017968204,
-0.011689624,
-0.0044530826,
-0.021922166,
0.027256578,
0.023917124,
0.0034848948,
-0.0021243605,
-0.039207894,
-0.03577703,
0.010132106,
-0.052930683,
-0.037529834,
-0.0053032544,
-0.02522596,
-0.006937384,
-0.002096661,
-0.01381009,
-0.034785595,
-0.030915927,
-0.033622943,
-0.025045559,
0.056745328,
0.051117793,
0.0077840416,
0.010102386,
-0.0031917912,
0.00975653,
0.08270894,
0.041638043,
0.09215332,
0.06079915,
0.029008033,
-0.024159772,
-0.0036208194,
0.1360159,
0.059999406,
0.045862712,
-1.6161662e-08,
-0.074233435,
-0.13015683,
0.026107704,
0.061253183,
-0.00987927,
0.0605725,
-0.1176213,
0.012852308,
0.02771672,
-0.01657753,
0.01635023,
-0.0085972175,
-0.028337933,
0.010110264,
-0.0120518925,
-0.009144653,
0.016192567,
-0.03584005,
0.061958943,
0.07377364,
-0.0210254,
-0.0021169898,
0.07374615,
0.030425888,
-0.002197107,
0.03516327,
0.011411286,
0.041386917,
-0.085570596,
-0.024465743,
0.06160357,
0.020098133,
0.07538962,
-0.06444438,
0.0025435304,
0.047582038,
0.09273526,
0.035677202,
-0.027112702,
-0.003980394,
-0.06494389,
0.023693308,
0.004454023,
0.009919626,
-0.0034382232,
-0.11134441,
-0.09039949,
-0.040688485,
0.00049193145,
-0.10812712,
-0.07540239,
0.026622782,
0.03446164,
0.027628677,
-0.03128206,
0.047727022,
0.01511917,
-0.01071397,
0.021603482,
0.046458237,
0.02472522,
0.053769212,
-0.008230848,
-0.043127336
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_modes[emb=ollama/all-minilm:l6-v2:dim=384-hybrid]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Python programming language"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.063880146,
0.013411989,
-0.054502595,
0.01193493,
-0.074262686,
-0.13344447,
0.04294062,
0.045387108,
-0.06949706,
-0.035939943,
0.01200873,
0.0068830596,
0.08886977,
0.0026030506,
0.032482542,
-0.007821568,
-0.05044649,
0.006662123,
0.027794942,
-0.12791364,
0.00062353734,
0.045270294,
-0.03605076,
0.044243146,
0.0129354475,
-0.0092799105,
0.011904844,
0.026060482,
0.020055141,
-0.03368774,
-0.028043076,
0.087557025,
0.059002083,
0.053893365,
0.02027196,
0.06840361,
-0.03180594,
-0.087597735,
-0.11277839,
0.022651086,
-0.09037903,
-0.0033202847,
-0.040132593,
-0.034084503,
-0.032953303,
0.02925268,
-0.03903928,
0.04551951,
-0.0331016,
-0.006518362,
-0.09629851,
-0.011739161,
-0.052575007,
-0.064773224,
0.031043475,
-0.012586444,
0.09737276,
0.005224713,
-0.035071153,
-0.1404299,
-0.06678175,
0.03654573,
-0.039277818,
0.07014256,
-0.0010227569,
-0.026846789,
-0.0175696,
0.03044068,
0.06403526,
-0.031643596,
-0.14598879,
-0.045400888,
-0.018469285,
0.06689445,
0.030553635,
-0.12255281,
0.061046645,
-0.05678168,
-0.005118667,
-0.0087622,
0.006514719,
-0.016424034,
-0.033650044,
0.08491301,
-0.00029260007,
-0.07339515,
0.038627055,
0.15695965,
0.010035773,
0.025318887,
-0.0021428047,
-0.04613549,
0.06244243,
-0.019905778,
-0.05471386,
0.09796629,
0.0384793,
-0.072424814,
-0.038704097,
0.07158691,
0.007360897,
-0.05120446,
0.0313513,
-0.032230332,
0.039326303,
-0.009643992,
0.069905065,
-0.052026685,
0.049440835,
-0.04272916,
-0.0037707465,
-0.04155246,
-0.0561972,
-0.03340213,
0.05105359,
0.038616214,
-0.0029470131,
0.08188407,
-0.0035886324,
0.04530431,
0.0068888925,
0.016499842,
0.016347302,
0.007283021,
-0.021663606,
-0.0046215886,
-0.007931065,
-4.1536508e-33,
-0.045777988,
-0.050903402,
-0.038634304,
0.0100991195,
0.070007294,
-0.025182785,
0.1050647,
-0.0049731904,
-0.064141616,
-0.047639705,
0.012718577,
0.05198462,
-0.016051587,
0.08170543,
0.024008816,
-0.020879291,
0.045706064,
0.091577366,
0.02512945,
0.019055998,
0.048144504,
0.097951256,
0.034154113,
0.03543114,
0.011410896,
-0.043446988,
-0.0041784984,
-0.05564714,
0.01147717,
0.0071039577,
-0.06426582,
-0.020623188,
-0.0045247558,
-0.012943628,
0.02658834,
-0.012385487,
0.008399212,
-0.06824828,
0.04683057,
-0.04165085,
-0.025662417,
-0.0038799767,
0.05007075,
-0.008117481,
-0.023308154,
0.023914568,
0.0015741173,
0.046142872,
-0.06898886,
0.041611847,
0.0045286645,
-0.047628563,
0.054236773,
0.06972688,
-0.016889753,
0.04806098,
0.012714234,
0.0022186628,
-0.006355918,
-0.031550523,
0.023726372,
0.06859327,
0.077228814,
-0.01227583,
0.03901903,
0.034360897,
0.03032876,
0.058690928,
0.08030179,
0.06976231,
-0.09047136,
0.02376998,
-0.008751518,
0.038334776,
-0.02751323,
0.023137644,
0.027101006,
-0.08135271,
-0.010334998,
0.04730408,
-0.02033998,
-0.026008504,
-0.017415512,
-0.0035714875,
-0.018727385,
-0.037389226,
0.041064497,
0.05317889,
-0.0055602547,
-0.058561854,
-0.072036326,
-0.075019896,
0.04825644,
0.011348427,
-0.02259257,
1.3515749e-33,
0.006240622,
0.031606406,
-0.036119435,
-0.0016494404,
-0.08255665,
-0.06069396,
0.059934463,
0.014492232,
0.059514895,
0.027053975,
-0.011601325,
-0.057609312,
0.10365583,
-0.002784741,
0.07693759,
0.019432511,
-0.052210074,
0.015158053,
-0.0012768542,
0.027789148,
-0.115292676,
0.047323048,
-0.07599195,
-0.074344486,
-0.029194841,
-0.020079462,
-0.034749795,
-0.05769437,
-0.0301632,
0.04749987,
0.012206333,
0.011497502,
-0.051970575,
0.05972769,
0.03281016,
0.0013676677,
0.057720944,
-0.041179247,
-0.02150875,
-0.0067487382,
0.1419711,
0.05795878,
0.010094941,
0.09603845,
0.014521089,
0.02133803,
-0.07551916,
0.07887724,
-0.04273237,
-0.06601746,
-0.038729392,
-0.008161129,
0.015012324,
-0.049418066,
-0.037083283,
-0.02378242,
0.03743137,
0.008194503,
-0.086978436,
-0.05960285,
-0.07732487,
-0.056507926,
0.029065313,
0.0073954053,
-0.077878684,
0.0026059505,
-0.10405392,
-0.04738624,
-0.015872862,
-0.11591199,
0.09724705,
0.0049243565,
-0.010273523,
0.0066429917,
-0.060295314,
0.02550513,
-0.052950058,
-0.0038489713,
-0.050250847,
0.07679287,
0.046089787,
0.007386997,
0.0046740095,
0.07385862,
-0.07792065,
0.0013675193,
0.013730894,
0.05658653,
0.021934126,
0.007195913,
0.0076705213,
0.10221154,
0.060060997,
0.036779005,
-0.037765697,
-1.187368e-08,
-0.00885571,
0.01760442,
0.062224448,
0.032051455,
-0.011581793,
0.051908698,
-0.011685676,
-0.06391574,
-0.029866237,
0.03258576,
0.0055078953,
-0.012040446,
-0.054406017,
-0.056690563,
-0.030638037,
0.14276367,
0.028526368,
-0.028743364,
0.019917691,
0.025652615,
0.073813364,
-0.0066998666,
0.0061508445,
0.09610696,
-0.08799916,
-0.0089272335,
0.03823298,
0.04832936,
0.018829934,
-0.10534708,
0.048226915,
-0.02225069,
0.020491786,
0.014641141,
0.030794447,
-0.029119467,
0.008283775,
-0.04506887,
0.0025344177,
0.021756247,
-0.008108281,
0.00904927,
-0.013340866,
-0.014037631,
0.06845187,
0.045173325,
-0.034587316,
-0.07275669,
-0.004159724,
-0.058231864,
-0.033032075,
0.0040235794,
-0.019985583,
-0.020122562,
0.055365406,
0.10250875,
-0.10799118,
-0.013780294,
-0.009652406,
0.015592658,
-0.031221472,
0.1329332,
0.15243866,
-0.022426173
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 3,
"total_tokens": 3
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_modes[emb=ollama/all-minilm:l6-v2:dim=384-vector]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Python programming language"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.063880146,
0.013411989,
-0.054502595,
0.01193493,
-0.074262686,
-0.13344447,
0.04294062,
0.045387108,
-0.06949706,
-0.035939943,
0.01200873,
0.0068830596,
0.08886977,
0.0026030506,
0.032482542,
-0.007821568,
-0.05044649,
0.006662123,
0.027794942,
-0.12791364,
0.00062353734,
0.045270294,
-0.03605076,
0.044243146,
0.0129354475,
-0.0092799105,
0.011904844,
0.026060482,
0.020055141,
-0.03368774,
-0.028043076,
0.087557025,
0.059002083,
0.053893365,
0.02027196,
0.06840361,
-0.03180594,
-0.087597735,
-0.11277839,
0.022651086,
-0.09037903,
-0.0033202847,
-0.040132593,
-0.034084503,
-0.032953303,
0.02925268,
-0.03903928,
0.04551951,
-0.0331016,
-0.006518362,
-0.09629851,
-0.011739161,
-0.052575007,
-0.064773224,
0.031043475,
-0.012586444,
0.09737276,
0.005224713,
-0.035071153,
-0.1404299,
-0.06678175,
0.03654573,
-0.039277818,
0.07014256,
-0.0010227569,
-0.026846789,
-0.0175696,
0.03044068,
0.06403526,
-0.031643596,
-0.14598879,
-0.045400888,
-0.018469285,
0.06689445,
0.030553635,
-0.12255281,
0.061046645,
-0.05678168,
-0.005118667,
-0.0087622,
0.006514719,
-0.016424034,
-0.033650044,
0.08491301,
-0.00029260007,
-0.07339515,
0.038627055,
0.15695965,
0.010035773,
0.025318887,
-0.0021428047,
-0.04613549,
0.06244243,
-0.019905778,
-0.05471386,
0.09796629,
0.0384793,
-0.072424814,
-0.038704097,
0.07158691,
0.007360897,
-0.05120446,
0.0313513,
-0.032230332,
0.039326303,
-0.009643992,
0.069905065,
-0.052026685,
0.049440835,
-0.04272916,
-0.0037707465,
-0.04155246,
-0.0561972,
-0.03340213,
0.05105359,
0.038616214,
-0.0029470131,
0.08188407,
-0.0035886324,
0.04530431,
0.0068888925,
0.016499842,
0.016347302,
0.007283021,
-0.021663606,
-0.0046215886,
-0.007931065,
-4.1536508e-33,
-0.045777988,
-0.050903402,
-0.038634304,
0.0100991195,
0.070007294,
-0.025182785,
0.1050647,
-0.0049731904,
-0.064141616,
-0.047639705,
0.012718577,
0.05198462,
-0.016051587,
0.08170543,
0.024008816,
-0.020879291,
0.045706064,
0.091577366,
0.02512945,
0.019055998,
0.048144504,
0.097951256,
0.034154113,
0.03543114,
0.011410896,
-0.043446988,
-0.0041784984,
-0.05564714,
0.01147717,
0.0071039577,
-0.06426582,
-0.020623188,
-0.0045247558,
-0.012943628,
0.02658834,
-0.012385487,
0.008399212,
-0.06824828,
0.04683057,
-0.04165085,
-0.025662417,
-0.0038799767,
0.05007075,
-0.008117481,
-0.023308154,
0.023914568,
0.0015741173,
0.046142872,
-0.06898886,
0.041611847,
0.0045286645,
-0.047628563,
0.054236773,
0.06972688,
-0.016889753,
0.04806098,
0.012714234,
0.0022186628,
-0.006355918,
-0.031550523,
0.023726372,
0.06859327,
0.077228814,
-0.01227583,
0.03901903,
0.034360897,
0.03032876,
0.058690928,
0.08030179,
0.06976231,
-0.09047136,
0.02376998,
-0.008751518,
0.038334776,
-0.02751323,
0.023137644,
0.027101006,
-0.08135271,
-0.010334998,
0.04730408,
-0.02033998,
-0.026008504,
-0.017415512,
-0.0035714875,
-0.018727385,
-0.037389226,
0.041064497,
0.05317889,
-0.0055602547,
-0.058561854,
-0.072036326,
-0.075019896,
0.04825644,
0.011348427,
-0.02259257,
1.3515749e-33,
0.006240622,
0.031606406,
-0.036119435,
-0.0016494404,
-0.08255665,
-0.06069396,
0.059934463,
0.014492232,
0.059514895,
0.027053975,
-0.011601325,
-0.057609312,
0.10365583,
-0.002784741,
0.07693759,
0.019432511,
-0.052210074,
0.015158053,
-0.0012768542,
0.027789148,
-0.115292676,
0.047323048,
-0.07599195,
-0.074344486,
-0.029194841,
-0.020079462,
-0.034749795,
-0.05769437,
-0.0301632,
0.04749987,
0.012206333,
0.011497502,
-0.051970575,
0.05972769,
0.03281016,
0.0013676677,
0.057720944,
-0.041179247,
-0.02150875,
-0.0067487382,
0.1419711,
0.05795878,
0.010094941,
0.09603845,
0.014521089,
0.02133803,
-0.07551916,
0.07887724,
-0.04273237,
-0.06601746,
-0.038729392,
-0.008161129,
0.015012324,
-0.049418066,
-0.037083283,
-0.02378242,
0.03743137,
0.008194503,
-0.086978436,
-0.05960285,
-0.07732487,
-0.056507926,
0.029065313,
0.0073954053,
-0.077878684,
0.0026059505,
-0.10405392,
-0.04738624,
-0.015872862,
-0.11591199,
0.09724705,
0.0049243565,
-0.010273523,
0.0066429917,
-0.060295314,
0.02550513,
-0.052950058,
-0.0038489713,
-0.050250847,
0.07679287,
0.046089787,
0.007386997,
0.0046740095,
0.07385862,
-0.07792065,
0.0013675193,
0.013730894,
0.05658653,
0.021934126,
0.007195913,
0.0076705213,
0.10221154,
0.060060997,
0.036779005,
-0.037765697,
-1.187368e-08,
-0.00885571,
0.01760442,
0.062224448,
0.032051455,
-0.011581793,
0.051908698,
-0.011685676,
-0.06391574,
-0.029866237,
0.03258576,
0.0055078953,
-0.012040446,
-0.054406017,
-0.056690563,
-0.030638037,
0.14276367,
0.028526368,
-0.028743364,
0.019917691,
0.025652615,
0.073813364,
-0.0066998666,
0.0061508445,
0.09610696,
-0.08799916,
-0.0089272335,
0.03823298,
0.04832936,
0.018829934,
-0.10534708,
0.048226915,
-0.02225069,
0.020491786,
0.014641141,
0.030794447,
-0.029119467,
0.008283775,
-0.04506887,
0.0025344177,
0.021756247,
-0.008108281,
0.00904927,
-0.013340866,
-0.014037631,
0.06845187,
0.045173325,
-0.034587316,
-0.07275669,
-0.004159724,
-0.058231864,
-0.033032075,
0.0040235794,
-0.019985583,
-0.020122562,
0.055365406,
0.10250875,
-0.10799118,
-0.013780294,
-0.009652406,
0.015592658,
-0.031221472,
0.1329332,
0.15243866,
-0.022426173
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 3,
"total_tokens": 3
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_with_chunks[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What is Python programming language?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.062304743,
0.04315718,
-0.056847535,
0.03486019,
-0.045148205,
-0.1325256,
0.021795923,
0.039035086,
-0.048403695,
-0.03187157,
-0.03934502,
0.006355416,
0.07870429,
-0.004275144,
0.023635335,
-0.02171452,
-0.055756103,
-0.009452624,
0.03968397,
-0.11446917,
-0.011574315,
0.06161675,
-0.026243819,
0.024376081,
0.029439807,
-0.0035745306,
-0.0014413354,
-0.0031348146,
0.0137771955,
-0.00021878166,
-0.0148119675,
0.08438267,
0.06679146,
0.042289164,
0.0077238376,
0.073178865,
-0.008341517,
-0.094652176,
-0.09245101,
0.0075944075,
-0.07389992,
0.015481098,
-0.04405396,
-0.04497366,
-0.041315924,
0.06968346,
-0.027464444,
0.014380017,
-0.036109854,
-0.006690219,
-0.080297194,
-5.8296577e-05,
-0.03897778,
-0.049029846,
0.017797105,
-0.0064906515,
0.05977029,
-0.0031445406,
-0.024804324,
-0.114971094,
-0.047434244,
0.018489277,
-0.009801151,
0.09573786,
-0.009445709,
-0.035714474,
-0.031265706,
-0.0032087746,
0.07714283,
-0.076175354,
-0.11878057,
-0.06322687,
-0.0045974515,
0.06524851,
0.045755487,
-0.13797933,
0.045973603,
-0.03356543,
-0.013575197,
0.004536992,
0.01706251,
-0.0016689816,
-0.051292486,
0.10251468,
0.015364908,
-0.05339754,
0.046751976,
0.11428272,
-0.0060051866,
0.010296865,
-0.03160346,
-0.051935352,
0.02092994,
0.008887596,
-0.069010794,
0.08132733,
0.012102074,
-0.06409327,
-0.036342084,
0.046690084,
0.011248327,
-0.050334014,
0.073782355,
-0.02119414,
0.0324611,
-0.026148362,
0.06814877,
-0.03795885,
0.030811384,
-0.037118603,
-0.036956605,
-0.02943471,
-0.0328876,
-0.00579801,
0.04255975,
0.05469473,
-0.01927437,
0.12277417,
0.0037985598,
0.032079652,
0.023717156,
0.019211154,
0.019987307,
-0.012261412,
-0.032464176,
-0.004472998,
-0.03568547,
-6.953471e-33,
-0.02200053,
-0.06861985,
-0.035355665,
0.008892092,
0.07110619,
-0.02524488,
0.091491714,
-0.009333656,
-0.059515916,
-0.03471947,
0.04331791,
0.033350475,
0.02423151,
0.08795865,
0.020580785,
-0.00087637454,
-0.012995603,
0.088356934,
0.04568453,
0.025818799,
0.054319557,
0.09676607,
0.02314351,
0.024316499,
0.014192086,
-0.01867069,
-0.024500258,
-0.032566376,
0.025218401,
0.016804473,
-0.07628905,
0.012665322,
-0.021314982,
0.006895667,
0.030793479,
-0.00033363912,
0.0005291749,
-0.08589274,
0.040542576,
0.0062958263,
-0.009977536,
0.0016065374,
0.012649728,
-0.036491103,
-0.023085777,
0.012404348,
-0.0051287347,
0.020217113,
-0.08761001,
0.0451902,
-0.0012827619,
-0.06574815,
0.07477121,
0.08403992,
-0.01390955,
0.05589554,
0.019330526,
-0.019641383,
-0.016001293,
-0.02915193,
0.037374426,
0.068089314,
0.069200926,
-0.007668733,
0.021160824,
0.040417258,
0.035068225,
0.082075246,
0.08809441,
0.05050193,
-0.059343174,
0.04576526,
-0.025118835,
0.03583576,
-0.028081506,
0.019838363,
0.033905286,
-0.07977674,
0.023003135,
0.062460173,
-0.034886148,
-0.05390937,
-0.016114287,
-0.0057315156,
-0.03051132,
-0.02269694,
-0.010376983,
0.06762264,
-0.010560655,
-0.09605588,
-0.07854035,
-0.08528194,
0.029969428,
-0.0059528793,
-0.039581347,
2.9781768e-33,
0.011482255,
0.010417832,
-0.0698601,
0.019292813,
-0.08453582,
-0.08570265,
0.06624837,
0.063025005,
0.050434116,
0.033736084,
-0.0058885855,
-0.069622226,
0.12551048,
0.021380005,
0.07413853,
0.0342258,
-0.045818888,
0.014834041,
-0.012672501,
0.0036430089,
-0.08024709,
0.06730083,
-0.056032285,
-0.086702436,
-0.027874194,
-0.03391202,
-0.03872441,
-0.07792124,
-0.017794719,
0.061800934,
0.014696384,
0.019996569,
-0.08146178,
0.052340467,
0.06287676,
-0.0015751559,
0.040512506,
-0.027605608,
-0.009630798,
-0.017303543,
0.11392578,
0.044186074,
0.035317622,
0.12113664,
0.018812222,
0.049269576,
-0.036081262,
0.07789768,
-0.0296637,
-0.07068735,
-0.006731622,
0.0060941395,
0.042274125,
-0.039680813,
-0.048600707,
-0.03980193,
0.032409266,
0.03371183,
-0.092499994,
-0.049876206,
-0.06597403,
-0.042388365,
0.031259395,
0.011791109,
-0.04424881,
0.04685171,
-0.12302249,
-0.034650978,
-0.01387166,
-0.13122807,
0.1448325,
0.0056148693,
-0.0031096544,
0.022904772,
-0.07642485,
0.016454488,
-0.019540928,
-0.024970472,
-0.068574235,
0.07073104,
0.026643677,
-0.035163663,
-0.0015607082,
0.029314166,
-0.08943546,
-0.022545528,
-0.031130569,
0.053781237,
0.007896568,
0.023091432,
-0.0043701245,
0.05380369,
0.01729408,
0.05636822,
-0.05328019,
-1.3478804e-08,
-0.039678477,
0.013365443,
0.036817312,
0.009736139,
0.004703614,
0.06661744,
0.02291141,
-0.047423527,
-0.04049001,
0.0068159057,
0.008662143,
-0.006292634,
-0.045681197,
-0.06387613,
-0.013174571,
0.11696965,
0.016895585,
-0.0013498863,
0.023227682,
0.022274282,
0.07852807,
-0.04508963,
-0.009177306,
0.06640095,
-0.06651727,
-0.015498115,
0.054094598,
0.07642527,
0.0082470365,
-0.12409585,
0.01265297,
-0.017635401,
-0.020622984,
0.03250185,
-0.012997484,
0.022324847,
0.010529934,
-0.0883164,
0.021471445,
-0.0029947716,
-0.03183814,
0.0718419,
0.010377949,
0.0035974192,
0.048932698,
0.07039089,
-0.03657371,
-0.035186097,
-0.03655875,
-0.07017832,
-0.030322824,
0.028595895,
-0.019070871,
-0.0025186248,
0.021279149,
0.07436103,
-0.114249244,
-0.027311146,
-0.0107884705,
0.010422842,
-0.022787437,
0.11515081,
0.18532182,
-0.026544156
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_list_files[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.028407024,
0.08176727,
-0.07856116,
0.027924549,
0.05008439,
-0.035268802,
-0.0040619136,
0.029315198,
-0.05775003,
0.013769637,
0.14610882,
-0.012019041,
-0.024392882,
-0.05509032,
-0.02661779,
-0.013253934,
-0.109151706,
-0.037233494,
-0.0036058167,
0.04766495,
0.06212885,
0.0070259646,
-0.015513743,
-0.008010851,
0.037648663,
0.01587603,
-0.041856695,
0.09732178,
-0.025641596,
-0.11368298,
0.03550726,
0.07043342,
0.016779423,
0.02220752,
0.123395406,
0.0077137193,
0.12550895,
0.008077936,
-0.026158499,
0.0028612812,
0.018155744,
-0.04666325,
0.041025575,
0.0013476727,
0.0019516364,
0.008663665,
0.016689047,
0.02200178,
0.0020768014,
-0.032861207,
-0.086455174,
0.008047145,
-0.07434091,
-0.016292974,
0.06051878,
0.005966867,
0.0160179,
0.021412006,
0.009540338,
0.03177335,
0.023032434,
0.03437097,
-0.04224765,
0.024748176,
0.116213955,
-0.024936162,
-0.03895259,
-0.024991278,
-0.020854436,
-0.08835937,
-0.15073228,
0.020921277,
-0.022518696,
0.0023868105,
0.0057663955,
-0.0015790414,
-0.11985628,
-0.0029912454,
0.0550998,
-0.11830636,
-0.058846988,
-0.15046737,
0.018624697,
-0.0093440395,
-0.028901154,
0.08400474,
0.0437436,
-0.0006745939,
-0.052540295,
0.00024754918,
0.040431518,
0.0066545215,
0.02609114,
0.051891107,
0.012606882,
0.061448827,
0.013889043,
0.038454182,
0.048222367,
0.104106456,
-0.026478294,
-0.021488149,
-0.020865437,
0.05061779,
-0.05171592,
-0.07573864,
0.057483904,
-0.049993664,
0.06528295,
-0.02875688,
0.038766492,
-0.062760465,
-0.0144796055,
-0.063462086,
0.06642258,
-0.014848135,
-0.03523116,
0.0774014,
-0.039893247,
0.032182425,
0.10171478,
-0.022525396,
-0.059299074,
0.00038746602,
-0.05779858,
-0.07034273,
0.06375495,
-4.088634e-33,
-0.021801252,
-0.07985834,
-0.013881648,
0.14923096,
0.02520313,
-0.042283125,
-0.0067697223,
0.054634638,
-0.09223034,
0.0081036305,
-0.03861765,
-0.117698364,
0.012977803,
0.034548674,
-0.01703291,
0.011910173,
0.012945288,
0.04277919,
-0.017591223,
-0.0184066,
0.06513148,
0.04050013,
-0.02252127,
-0.060939074,
-0.018603502,
0.011679816,
0.01410369,
-0.06763908,
0.08543174,
0.030138582,
0.010859261,
-0.054844614,
-0.024129191,
0.048327282,
0.00750549,
0.013356204,
0.024558878,
-0.005942624,
-0.045620095,
-0.00484637,
0.004418298,
-0.0023806267,
0.013590539,
-0.016870445,
0.06959721,
-0.07736302,
0.02058481,
0.0048155314,
0.055696823,
0.0131223425,
-0.011748222,
0.040935397,
0.007458848,
0.042072233,
0.010358565,
0.019406458,
0.011092792,
0.017259602,
0.018278012,
0.077335365,
0.019612921,
0.05268688,
-0.05863009,
0.039751627,
-0.050250556,
-0.048913844,
-0.05265637,
-0.09227304,
0.0755598,
0.08097828,
-0.022257954,
-0.042141132,
0.056546185,
0.023585746,
0.0015263582,
-0.049815144,
0.002336895,
0.028626408,
-0.06897293,
-0.04780049,
-0.048637427,
-0.076585636,
-0.03285766,
-0.046012525,
-0.0573021,
-0.080889866,
-0.008056378,
-0.0936112,
0.051229417,
-0.058302302,
-0.0005942833,
0.02222621,
-0.046907477,
-0.08964737,
0.1195762,
2.0452953e-33,
0.012159685,
0.086426094,
-0.023217503,
0.002771192,
-0.0010614472,
0.03487195,
0.07328719,
-0.049876485,
-0.041938163,
0.13486409,
-0.00690217,
0.006254477,
0.059122436,
-0.028893106,
0.09141587,
-0.018487127,
0.0077112317,
-0.044207573,
-0.0251735,
-0.014999972,
-0.035417248,
0.12413253,
0.13118097,
0.081015825,
-0.03327241,
0.003976432,
0.026454262,
0.026598025,
0.017349144,
-0.0036153824,
0.035460044,
0.05956128,
-0.124593176,
0.021954069,
0.025635097,
-0.11063109,
0.096061416,
-0.06731725,
-0.011819293,
0.042329434,
0.03790837,
0.10582649,
0.0073426333,
0.06629678,
0.022922922,
0.0494007,
0.14639522,
-0.0067070075,
0.004380622,
-0.029196544,
-0.009010303,
-0.08637028,
0.03588363,
0.0029887543,
-0.029351206,
0.07019312,
0.014898416,
0.028345235,
-0.040354595,
0.01916304,
0.015590835,
0.028637327,
-0.019529723,
-0.018309733,
-0.0054176697,
-0.093132764,
-0.06116049,
0.038816936,
0.02793884,
0.034137025,
-0.027511358,
0.010699668,
-0.05521562,
-0.07380209,
0.021521263,
-0.015450832,
-0.024988633,
-0.004755674,
0.030465573,
-0.024057997,
0.0341225,
-0.0103128245,
-0.012666524,
0.03628323,
-0.0044518244,
-0.014977736,
0.02790076,
0.0978009,
-0.026436698,
-0.005187212,
-0.019124882,
0.06205225,
0.052137945,
0.037870288,
0.012578256,
-1.705626e-08,
-0.05000592,
-0.08913878,
-0.0035273295,
-0.01577607,
-0.021846429,
0.07184407,
-0.050185654,
-0.010643527,
-0.030602882,
-0.01577121,
0.013220822,
-0.0025653532,
-0.04210823,
0.009286525,
-0.041129403,
-0.029615805,
0.002200794,
-0.032989334,
-0.05041253,
-0.021504797,
-0.0068345494,
0.0084738685,
0.03568697,
0.0252117,
-0.016504692,
0.04915123,
0.018349955,
0.049084183,
-0.058165494,
-0.015055481,
0.045743454,
0.049920842,
0.020444298,
-0.052004594,
-0.033592116,
0.061816722,
0.111411005,
0.07770497,
0.022457859,
0.0025742552,
-0.043929543,
0.008576763,
-0.036182683,
0.029673496,
-0.017278075,
-0.09458994,
-0.057882637,
-0.06579892,
-0.06124832,
-0.10455079,
-0.02925637,
0.0013624659,
0.0060532107,
0.04077331,
-0.036694046,
0.016800206,
0.005279432,
0.030968234,
-0.05446385,
0.0048696757,
0.070877954,
0.06684445,
0.017715273,
-0.029237686
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384-test_case1]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"How do systems learn automatically?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.042460807,
-0.06189971,
-0.0784711,
0.0064329687,
0.03129365,
0.00807445,
0.05801836,
0.025447326,
0.016402787,
0.045995634,
-0.028924342,
0.04451832,
0.05686613,
-0.015340794,
-0.07020505,
-0.057178136,
-0.07683263,
0.006748679,
0.0043323045,
-0.123651944,
0.0031534543,
-0.03258051,
-0.02936216,
0.024140852,
-0.028559243,
0.10224467,
0.0021632623,
-0.006975691,
0.025292527,
-0.055500276,
0.031231727,
-0.0070274337,
0.08430815,
-0.028431177,
-0.083029,
0.009555893,
-0.020029299,
-0.00243229,
-0.00768719,
-0.023077851,
-0.09293533,
-0.042625993,
-0.020000124,
0.008240663,
0.060970567,
0.050315727,
-0.0510085,
-0.008543903,
-0.030227834,
-0.03582846,
-0.17836656,
-0.047279052,
0.033892106,
0.031623542,
-0.008832113,
0.10480918,
0.033559043,
0.090348184,
-0.015757555,
-0.0125672715,
-0.084686965,
-0.114781834,
-0.13755985,
0.021652374,
0.047834594,
0.043243896,
0.008659893,
0.038724966,
0.046716973,
-0.077413626,
-0.04887495,
0.031287406,
0.022356613,
0.00043283988,
0.052321073,
-0.012254071,
-0.035172574,
-0.00825216,
-0.008866574,
-0.034267236,
-0.04576201,
0.002467568,
-0.040877618,
0.08047682,
0.09472728,
0.0413438,
0.0057974122,
0.044982508,
0.025369909,
0.006618073,
0.010467276,
-0.07960384,
-0.03108485,
-0.03528749,
0.01831391,
0.053473305,
0.06568304,
-0.07259002,
0.02523736,
0.10520362,
0.035732146,
0.028157586,
0.011687256,
0.044207197,
0.012604437,
0.0018819098,
0.03926183,
0.043135095,
0.09784739,
-0.08801336,
-0.06060836,
0.02681984,
0.0041358666,
0.033492945,
0.011799116,
0.009551661,
-0.0095491735,
-0.021212189,
-0.008917248,
0.029352615,
-0.012693442,
-0.019269384,
0.009901157,
-0.00812101,
0.018603146,
-0.0007501193,
-0.056115113,
-3.8018077e-33,
0.020848714,
0.0047160466,
0.019726405,
0.06024251,
-0.0685974,
-0.07497267,
0.007997452,
-0.047339544,
0.057801835,
0.049544968,
0.01878086,
0.03274472,
0.017663997,
0.07483022,
0.02496901,
-0.011843339,
-0.11212756,
0.0070379525,
0.028099466,
-0.01746246,
0.08173482,
-0.007920462,
0.032095373,
-0.12300146,
0.033773854,
0.025873141,
-0.0045020077,
0.079493225,
0.0040725255,
0.03305898,
0.008061117,
0.0134422695,
-0.03292251,
0.031554114,
0.04013794,
0.0014983519,
0.030762345,
0.029481992,
0.041350223,
-0.047438618,
0.03944708,
-0.07526981,
0.037927423,
-0.026016014,
0.016933467,
0.0136799775,
0.0071263947,
-0.05386736,
-0.07443268,
-0.006070775,
0.024427462,
-0.039844982,
-0.020661902,
-0.033354662,
0.009005565,
0.12111172,
-0.028260944,
-0.036192853,
-0.021332363,
0.05333571,
0.05161245,
-0.01204843,
0.035563566,
0.05408247,
0.060722187,
0.07159865,
0.04299143,
0.008544481,
0.07421879,
0.00841512,
-0.036342908,
-0.008549791,
-0.08816386,
-0.049075164,
0.00029373015,
-0.05127952,
0.03586739,
-0.030380003,
-0.012642127,
0.018771531,
0.01711824,
-0.06644723,
0.023793438,
0.0010271219,
-0.01939443,
-0.053452212,
-0.017060323,
-0.062207118,
-0.05962535,
-0.012172617,
-0.013190802,
-0.037036054,
0.00082622556,
0.098088354,
0.024690514,
2.1767905e-33,
-0.010088812,
-0.016811697,
-0.042140447,
0.08837209,
-0.028899776,
-0.0048947735,
-0.082139015,
0.029238816,
-0.043079354,
-0.014153092,
-0.028387645,
0.025998218,
-0.017625,
0.046511114,
-0.005768211,
0.030010609,
0.011375536,
0.017426634,
0.055062976,
0.032230247,
-0.07995765,
0.032486655,
-0.060016844,
-0.011561194,
0.010211269,
0.046528235,
0.001191399,
0.0786961,
-0.0446158,
0.032789085,
0.0023115936,
-0.03886269,
-0.017663589,
0.07913024,
-0.004583343,
0.043521065,
-0.031589273,
0.008867868,
-0.05013296,
0.068929516,
0.043675046,
0.019968731,
-0.08471742,
-0.046864275,
-0.0068198936,
-0.026138468,
-0.05107216,
0.054374695,
0.03069186,
-0.010925094,
0.04721093,
-0.017387696,
-0.020754937,
-0.081763394,
-0.027709637,
0.035980806,
0.05396534,
0.044874854,
0.059699643,
0.041227758,
-0.06664364,
-0.09201654,
0.008915574,
0.025849758,
-0.038651932,
-0.0044070315,
-0.052066546,
0.027435115,
0.012089562,
0.048306923,
0.059854515,
0.097325735,
-0.053612895,
-0.07639326,
0.015773866,
-0.0444848,
-0.13214406,
-0.0702488,
-0.10134438,
-0.11905995,
-0.027714504,
0.006891868,
-0.0053650527,
0.054135524,
-0.111159205,
0.07835098,
0.03506018,
0.016036613,
0.021490784,
-0.061526407,
0.007425222,
0.04833579,
-0.01361202,
0.012450488,
-0.12729599,
-1.4009424e-08,
-0.040908325,
-0.01596458,
0.060048707,
0.03804525,
0.0663794,
0.04727275,
-0.016112225,
0.09687414,
-0.04424251,
-0.028799534,
-0.01294642,
0.013026413,
0.022404836,
0.04713173,
0.06402557,
0.12130648,
0.06062839,
0.10218965,
-0.0757528,
-0.023806982,
0.12489501,
-0.045460615,
0.09545599,
0.021262301,
0.03731495,
-0.075220875,
-0.0026194793,
0.0472452,
0.048499025,
0.12358729,
0.017998053,
0.013811017,
-0.035893846,
-0.051789004,
0.06182457,
0.05160056,
0.008895317,
-0.12500942,
0.016453298,
-0.08590811,
-0.071096726,
0.06987216,
-0.036072273,
-0.0053715096,
-0.048762616,
0.00081640907,
-0.021502526,
-0.061078615,
0.002485032,
-0.032720752,
0.045743283,
0.038934175,
-0.024666062,
0.025897244,
0.10301431,
-0.013001504,
0.04783332,
-0.07114252,
0.046031926,
0.080549754,
-0.10302451,
0.08449227,
0.028010191,
-0.03697792
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_ranking_options[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"machine learning and artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.04308226,
0.008707138,
0.06876158,
0.018115537,
0.04603657,
0.0026118131,
-0.0032358477,
-0.041284926,
-0.09074888,
-0.033087812,
-0.026611822,
0.0077352105,
0.020191023,
-0.03254043,
-0.035847843,
0.031108031,
-0.039247137,
-0.011286401,
-0.109710276,
-0.12942196,
0.018077252,
0.011446383,
-0.07231236,
-0.013655743,
0.035438832,
0.024783252,
0.03387316,
0.0726014,
-0.012643238,
-0.058606703,
0.057943814,
-0.08163548,
0.064962864,
0.0013675748,
-0.06751009,
0.03504323,
-0.044962864,
-0.004789603,
0.039971247,
-0.010461211,
0.019703588,
-0.09856083,
-0.01284534,
0.018876119,
0.09569305,
0.11571406,
-0.040684983,
-0.026837468,
-0.046950106,
0.022655226,
-0.0884734,
-0.023497678,
-0.022986038,
-0.031128721,
-0.052087843,
0.04241795,
0.011578454,
0.06702011,
0.027121129,
-0.0021518404,
0.04675332,
-0.082024105,
-0.038331598,
0.05215799,
0.097757615,
-0.0006708623,
-0.051935766,
0.09100271,
-0.016111707,
-0.06877312,
0.00767068,
0.076737314,
-0.0017499238,
0.014369293,
0.038031887,
-0.0044654603,
0.011287075,
0.0006178959,
0.08834809,
-0.05933476,
-0.042706404,
-0.048178285,
-0.053068914,
0.033110976,
0.008051986,
-0.042581946,
-0.038104057,
-0.007202849,
0.010891519,
-0.05466173,
0.03903238,
-0.06774145,
-0.02356764,
-0.03883483,
0.03464186,
0.015297014,
0.0073803077,
-0.12351391,
0.036168184,
0.13193323,
-0.06441449,
0.033508655,
-0.01435515,
0.0014314495,
0.031048443,
-0.03981852,
0.0236718,
-0.0028333638,
0.096959464,
-0.13331193,
-0.054209094,
0.019610135,
0.06984815,
-0.05347757,
0.0018131314,
0.02127606,
0.01981612,
0.036502477,
0.008825069,
0.018954003,
-0.07161326,
-0.018733062,
0.031044634,
0.09102944,
0.016508427,
-0.08625295,
-0.08300717,
-1.4044197e-34,
-0.072007515,
-0.045496386,
-0.027986562,
0.05823018,
-0.010462877,
-0.06121516,
0.026053715,
-0.06574638,
0.029178392,
0.012307141,
-0.06338016,
0.040593755,
0.03648161,
0.01977942,
0.08755496,
0.028216325,
0.044194777,
0.076237544,
0.02949726,
-0.0022650051,
0.04304541,
0.025918182,
1.2261046e-05,
-0.038463842,
-0.0161955,
0.03338553,
0.02112944,
-0.023382189,
0.009846733,
0.033575017,
0.030112585,
0.060389582,
-0.06522927,
-0.016030189,
0.019156763,
-0.002600835,
-0.04663393,
0.02794595,
0.021004112,
0.0074595963,
-0.048745092,
-0.0070450655,
0.019834043,
0.016411202,
-0.06381404,
0.031237993,
0.091976196,
-0.0313931,
0.022238847,
-0.015018542,
0.0025784613,
-0.031382624,
-0.0152902305,
-0.025491757,
0.08233924,
0.14333151,
-0.0255008,
-0.005104579,
-0.02309693,
-0.03117742,
0.06995927,
0.030787794,
0.04810884,
0.037135385,
0.0068392092,
0.06759879,
0.049763102,
0.008472162,
0.07170584,
0.0076969583,
-0.005139827,
-0.0031728086,
0.024646448,
-0.06879641,
0.05249289,
-0.009404918,
0.10184627,
-0.013639711,
-0.022681188,
0.021382388,
-0.09593746,
0.024071718,
-0.072101034,
-0.04462981,
0.033456877,
-0.03942254,
0.020099705,
-0.07495305,
-0.008311987,
0.013811793,
-0.09847922,
0.0336409,
0.08235891,
-0.0034134828,
-0.05005179,
-2.0283256e-33,
-0.13664234,
0.06463093,
0.05221015,
0.10102781,
0.016344123,
-0.01269384,
-0.09024102,
-0.023596523,
0.0057664234,
0.10294541,
-0.025930807,
-0.040247634,
0.034446176,
0.019228913,
-0.056902077,
0.019905953,
0.018969242,
-0.039362065,
0.011287794,
0.056024995,
-0.016000811,
0.058928564,
-0.038211577,
-0.030445429,
-0.02130076,
0.031401403,
-0.021228284,
-0.01400283,
-0.051042903,
0.048970606,
0.018451849,
-0.015488385,
-0.05033241,
0.053844187,
-0.050984643,
0.016940817,
-0.032773405,
-0.02502497,
0.000826887,
0.10213942,
0.04724571,
0.010156266,
-0.11653258,
0.012165439,
-0.029735534,
-0.09959623,
-0.052066926,
0.06851813,
0.054645896,
-0.066007115,
0.025503889,
0.013539478,
0.008429433,
-0.10756056,
-0.08184448,
0.07179834,
0.007978949,
-0.013011469,
0.020322459,
0.07827889,
-0.07320297,
-0.1153648,
0.04087073,
0.04355079,
-0.0012279376,
0.045840748,
-0.004366462,
0.074786335,
-0.017625354,
-0.046014115,
0.022716347,
0.057738,
-0.015408269,
0.007771719,
-0.04381374,
-0.05289107,
-0.08783473,
0.016243288,
-0.018398289,
-0.05679973,
0.036058675,
-0.040418148,
0.039242174,
0.083593465,
-0.019223504,
0.05582025,
0.04756948,
-0.07378718,
0.03371102,
-0.08680738,
-0.010659349,
0.0524085,
0.009771544,
0.023841262,
-0.086208895,
-1.7164519e-08,
0.021028979,
-0.051292755,
0.11877283,
-0.04687027,
0.06566496,
0.058750976,
-0.050496,
0.055720143,
-0.040577173,
0.055665523,
0.025019526,
-0.001681203,
-0.031047702,
0.022228474,
0.028109053,
0.03163934,
-0.025502652,
0.020898303,
-0.023064507,
0.013436037,
0.07504084,
0.022279648,
0.028908938,
-0.014271217,
0.025474275,
-0.051414162,
-0.014502164,
0.014646399,
-0.028023712,
0.08406334,
-0.07755092,
0.038713943,
-0.0043370826,
0.025676368,
0.12571524,
0.06996381,
0.0059321956,
-0.10410214,
-0.041439336,
0.016119901,
-0.040744506,
0.017772397,
-0.09114363,
-0.026066387,
0.055598073,
0.016705057,
0.016444646,
-0.11935461,
0.02789905,
0.0151745565,
0.042357437,
0.06817164,
0.05782822,
0.063278705,
0.06748475,
0.059781626,
0.06468886,
-0.06749451,
-0.035589237,
0.0640055,
0.008595763,
0.003157698,
0.009343837,
-0.08392565
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file_removes_from_vector_store[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"The secret string is foobazbar."
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.060630284,
0.06372823,
-0.059383437,
-0.010313639,
-0.11985778,
0.033409074,
0.056847293,
-0.0064553,
0.029896382,
-0.05037607,
0.015193001,
-0.0634204,
0.015119892,
-0.08354324,
0.0092577925,
0.044272587,
-0.024397198,
-0.05100177,
-0.028086444,
-0.07390362,
0.07088186,
0.08101153,
0.006050408,
-0.043090094,
0.010714593,
-0.01581376,
0.0351736,
0.06538307,
0.03639655,
-0.05625738,
0.073681176,
0.04730274,
0.067169026,
-0.01207242,
-0.018193275,
0.0042488067,
0.029168725,
0.0067459582,
0.037927665,
0.0024767139,
0.014044963,
0.022671249,
-0.090508185,
0.041952047,
-0.07933115,
0.031992197,
-0.038355146,
0.037013844,
-0.0036946274,
-0.016986867,
0.03696087,
-0.07697335,
-0.020080294,
0.07733012,
0.04521822,
-0.007816803,
-0.0058926586,
0.009962128,
0.033492323,
0.09000152,
0.016161384,
0.036999356,
-0.039193578,
-0.010969346,
0.023929566,
-0.03698458,
-0.008227196,
0.018780757,
-0.0006967325,
-0.062018193,
-0.030388007,
-0.037649162,
-0.04654288,
0.038450293,
-0.010377299,
-0.032971557,
0.013547814,
-0.059036925,
0.0630603,
0.0159564,
-0.04845087,
-0.069917254,
-0.022502322,
0.04408022,
0.03618941,
0.060470726,
-0.04313285,
0.028797466,
0.0062393937,
0.01027349,
-0.078714885,
-0.091531575,
0.04391341,
0.013202597,
-0.0037814155,
0.0102497,
0.020225797,
0.05634384,
-0.09700619,
0.06577961,
0.047118917,
0.01876648,
0.12445029,
-0.06447121,
-0.012632697,
0.016056264,
0.08604982,
0.024878234,
0.10627678,
-0.043176394,
-0.046339765,
-0.03149599,
-0.001784808,
-0.023469802,
-0.05079461,
0.0046657966,
0.043237828,
0.057146583,
-0.065833576,
0.032975562,
-0.028763266,
0.037831448,
0.00017829033,
0.043322463,
-0.13265091,
0.0263673,
-0.04247752,
-3.3340873e-33,
-0.0022191573,
0.050657377,
0.028066125,
-0.033898965,
-0.0045730886,
-0.034653578,
-0.08628417,
0.043108672,
0.01022734,
0.044009056,
-0.03020062,
-0.0936044,
-0.06522928,
-0.059762992,
0.037560984,
-0.025942331,
-0.06655938,
0.0043691625,
0.018846871,
-0.035582166,
0.02240012,
0.08943218,
0.033568345,
-0.11379316,
0.03822112,
-0.044403847,
0.10261262,
-0.07330182,
0.089390896,
0.056668896,
-0.009407597,
-0.0646505,
0.016652016,
0.007326742,
0.005187682,
0.0051324354,
-0.013595071,
-0.04918112,
-0.06672084,
0.010838405,
0.04638185,
-0.11490209,
-0.055054087,
0.040443793,
-0.032746885,
0.03498173,
-0.023567867,
-0.012213799,
0.048050664,
0.01159698,
0.007860181,
0.03801084,
-0.027765153,
0.003296162,
-0.0033349432,
0.006083357,
0.03200884,
0.048306234,
0.013800832,
0.036165927,
-0.022672432,
0.09197581,
0.029846204,
0.08112345,
-0.08677228,
-0.028041098,
0.0556574,
-0.030357547,
-0.016538681,
0.031826265,
-0.07586954,
-0.009915978,
0.028101236,
0.002207158,
-0.10496646,
-0.023673821,
-0.024204832,
-0.0003132271,
0.0016462951,
-0.037603874,
0.025533162,
-0.05221861,
0.021656586,
0.099111386,
-0.06896361,
-0.018568028,
0.07245527,
-0.10582686,
-0.08505038,
-0.029969748,
-0.015717981,
-0.056855034,
-0.02698479,
-0.06410572,
0.0057078917,
1.2902391e-33,
0.05490771,
-0.036417797,
-0.0023541928,
-0.03591478,
0.106852315,
-0.04931468,
0.037884213,
0.050633065,
-0.083874516,
-0.018756155,
0.0036251817,
0.028974183,
-0.0027879397,
-0.036439158,
0.11148004,
0.051007163,
0.040258586,
0.09245398,
-0.01367112,
-0.070999645,
-0.043213032,
-0.060117763,
-0.03019449,
0.009107182,
-0.044254936,
0.04843456,
0.117205575,
-0.009833911,
0.0023962231,
0.09339494,
-0.059902366,
0.0101377955,
-0.03777244,
-0.04344207,
-0.14677393,
-0.022666233,
-0.008934328,
-0.02157697,
-0.021902358,
-0.06611372,
0.016243221,
0.062620856,
0.01056146,
0.04721975,
-0.087221384,
0.009420561,
-0.017691165,
-0.03847053,
0.010398396,
0.022942957,
0.099518456,
-0.021421565,
0.0016765085,
-0.039359514,
0.01641369,
0.039669517,
-0.119695365,
0.009885617,
0.003855461,
0.018273395,
-0.0454586,
0.0020496584,
0.024263415,
0.016978405,
0.06884217,
-0.027432522,
-0.01813802,
0.053840507,
-0.028815664,
-0.045221787,
0.11472852,
0.019796453,
-0.05785514,
0.016556906,
-0.07362942,
0.04025756,
-0.01510899,
0.0067040483,
-0.049666926,
0.045941774,
0.077951804,
-0.042951427,
0.021852365,
0.063826546,
0.08110754,
-0.070652775,
-0.03245094,
0.09259784,
-0.020451743,
0.0701599,
-0.020740295,
0.09339449,
-0.051164806,
0.039440546,
0.02560772,
-1.6767814e-08,
0.001529873,
0.0080792755,
-0.017666567,
-0.034070052,
0.06805411,
0.07387949,
-0.07592055,
-0.11369049,
-0.022008128,
0.009088418,
0.03108134,
-0.0056734695,
-0.0462051,
0.0037219985,
0.013269294,
-0.03213892,
-0.05557376,
-0.010602884,
0.006751397,
-0.025462827,
-0.0836812,
0.08886153,
0.005159859,
-0.051621262,
-0.051873572,
0.039706588,
-0.042155124,
0.057125967,
0.088910565,
0.049736783,
0.04144574,
0.094677895,
-0.037107926,
-0.06845684,
-0.061673928,
0.09891817,
-0.05952751,
-0.0331722,
-0.026014913,
0.077612035,
0.056150436,
0.010709955,
0.018974187,
0.056079865,
-0.041700333,
-0.02731697,
0.10184176,
-0.036189064,
-0.029914921,
-0.043333948,
0.043660097,
0.018800316,
-0.0042763646,
0.055898346,
-0.0034344571,
0.060258396,
-0.1337251,
0.008184424,
-0.031549457,
0.022398692,
0.037932154,
0.024529235,
0.068037644,
0.07021777
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_empty[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"test query"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.06829306,
0.061738,
-0.0064223274,
0.08267553,
-0.07827752,
0.026546001,
0.13129343,
0.041391023,
-0.01950488,
-0.027131394,
0.08875853,
-0.10276945,
0.05070562,
-0.07138499,
-0.0092889285,
-0.039247777,
0.028884362,
-0.010484688,
-0.02469515,
-0.0354649,
-0.04093021,
-0.009903105,
-0.026185337,
0.057967436,
-0.00060980336,
0.007659294,
0.013928803,
-0.0016587646,
0.044655163,
-0.058990903,
-0.037958965,
0.037799176,
-0.033270117,
0.071682036,
0.09722083,
-0.08261939,
0.027622383,
-0.014190519,
0.01816939,
-0.002717151,
-0.02426505,
-0.11493204,
0.0851599,
-0.016752614,
-0.006310121,
0.065255314,
-0.058001935,
0.096675195,
-0.01419834,
-0.0068260576,
-0.09889976,
-0.015109596,
-0.07833432,
-0.035589334,
-0.008278154,
-0.013655421,
-0.07625151,
-0.030405698,
-0.013589333,
0.050117858,
-0.010591754,
-0.038398717,
0.067407176,
0.03565695,
0.010748793,
-0.0782303,
-0.006898065,
-0.03009224,
0.05595709,
-0.076849714,
-0.009063107,
-0.0028242348,
-0.02941444,
0.06881705,
0.013745148,
0.03078439,
-0.036471423,
-0.07147355,
0.054742936,
-0.028959772,
-0.06466119,
-0.05974295,
-0.06766193,
0.022777116,
0.079530336,
0.051767077,
0.14789894,
-0.0024908637,
-0.05542459,
-0.027760198,
0.019384151,
0.06692773,
-0.07952434,
0.019047031,
-0.00097613735,
0.013479467,
0.038207904,
-0.040212464,
0.06499357,
0.13929029,
0.0592868,
0.018087199,
-0.04910378,
-0.057469312,
-0.17034933,
0.009854021,
0.04478709,
-0.08707103,
0.046889827,
-0.020303966,
-0.062274974,
0.030287566,
0.04991786,
-0.030625034,
-0.007196787,
-0.060630832,
-0.0057445914,
0.028697284,
-0.055902485,
-0.0060850815,
0.075516894,
0.07304865,
-0.03200336,
-0.027994294,
-0.0013179975,
0.02373418,
0.082337655,
-2.0787389e-33,
0.014712573,
-0.084956154,
0.059368864,
-0.00785449,
-0.015981624,
0.02598549,
0.037614744,
0.12561654,
-0.04002324,
0.02472032,
0.014450717,
-0.06304021,
0.034111217,
-0.00766782,
0.008186535,
0.10461876,
0.018852819,
-0.021535609,
-0.04381762,
0.05679568,
0.01621111,
-0.0734938,
0.020150887,
0.05246773,
0.015011716,
-0.06588331,
-0.03257114,
0.025002314,
0.018430108,
-0.00030111038,
-0.06266604,
-0.006196726,
-0.16044672,
0.028114004,
0.032982383,
0.037261836,
0.0540566,
-0.0079226745,
-0.008597091,
0.054075282,
-0.046998158,
-0.03870267,
0.08493371,
-0.005938313,
0.021924777,
-0.05206361,
-0.047436308,
-0.054906387,
0.03400277,
-0.028335828,
-0.032045983,
-0.0013805287,
-0.04042137,
-0.017744336,
0.052251115,
0.0038320236,
0.008692022,
0.03270182,
0.010805367,
0.11194987,
-0.019722551,
-0.04577441,
-0.002028829,
0.020897591,
-0.006168528,
-0.0017238662,
-0.006808375,
-0.08133367,
0.091827765,
0.048646383,
0.07771223,
-0.05870435,
0.006373254,
0.0036029797,
-0.071249805,
0.022061123,
0.019477166,
0.10132688,
0.006618212,
-0.044631813,
0.06139753,
-0.09197761,
-0.013284173,
0.014608393,
-0.01761416,
0.0073858253,
0.0062043094,
-0.048021033,
0.013127433,
-0.077592075,
0.014133566,
0.035386372,
-0.02616333,
0.0027075391,
0.08635036,
9.132231e-34,
-0.022040669,
0.05085595,
-0.027267562,
0.02862394,
0.0137278,
-0.07108621,
0.09040417,
-0.09064723,
-0.0656353,
0.06688156,
0.06701843,
-0.05015593,
0.01906404,
-0.04147956,
0.012601856,
0.06909683,
0.028203059,
-0.0709644,
-0.061153468,
0.031663477,
-0.09626921,
0.13134153,
-0.003593543,
-0.027185699,
-0.06297406,
-0.00092433795,
-0.008680087,
-0.031325806,
-0.018586429,
0.011512126,
0.071864344,
-0.071975954,
-0.005884031,
0.09355209,
0.046686243,
-0.031970512,
0.06956754,
-0.045880646,
0.010095539,
0.064092614,
0.07247815,
0.04723167,
0.048781574,
0.06763336,
0.0054456857,
0.035764687,
0.018254038,
-0.03819517,
0.050082564,
0.04140595,
-0.025459196,
0.021584416,
0.014274055,
-0.007126868,
-0.014268015,
-0.010105026,
-0.09164537,
0.009354007,
0.004333732,
-0.009582354,
-0.029860867,
0.17471065,
-0.0045884773,
0.05782756,
-0.044819925,
-0.051430847,
-0.045887176,
0.0074449414,
0.0054387357,
0.039599653,
-0.056232683,
-0.002221041,
0.047835752,
-0.039582185,
0.027316216,
0.039718047,
-0.07969795,
0.03511298,
0.029242206,
0.010144028,
-0.03904501,
-0.027879883,
-0.040858228,
0.04611512,
-0.06931006,
0.061977647,
0.03922111,
0.025860278,
0.0064425017,
0.053613506,
0.069628745,
-0.007990142,
-0.038263973,
-0.10954397,
0.018542184,
-1.33346125e-08,
-0.025668526,
-0.07473254,
-0.019855365,
0.0384919,
0.027314084,
-0.010875396,
-0.035207637,
0.036075134,
-0.063237526,
0.011492366,
0.03342596,
-0.012063488,
0.0039839908,
0.016522188,
-0.008002217,
-0.04168924,
-0.07092195,
0.008746656,
0.004452133,
-0.03877822,
-0.051253635,
0.01774984,
-0.018253444,
0.04394154,
-0.042883426,
0.08245372,
0.015452854,
0.022076968,
0.04442366,
0.022832815,
0.08296971,
-0.01261236,
0.013092747,
-0.06689178,
0.0478462,
-0.04507667,
0.006519156,
0.0055980994,
-0.019575223,
-0.01730519,
-0.03837497,
-0.00043787624,
-0.008650636,
-0.026787039,
-0.06598753,
-0.14336495,
0.041543495,
-0.048590284,
0.012749011,
-0.08499328,
-0.010950221,
-0.038154602,
0.030090204,
-0.03886871,
-0.03670644,
0.046492297,
0.03623469,
0.052362714,
-0.09623828,
-0.04149126,
0.050219554,
-2.084757e-05,
0.0019338154,
0.019553935
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_retrieve_contents[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is the content of test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.0148711065,
0.09436506,
-0.09827569,
0.016189529,
0.07229643,
-0.039229736,
0.0076381243,
0.035811506,
-0.037845902,
0.0225911,
0.158102,
0.00919506,
-0.029846655,
-0.06448416,
-0.018980775,
-0.020236723,
-0.0759393,
-0.046663288,
0.010769112,
0.033283222,
0.069518395,
0.0390862,
-0.009640046,
-0.008600989,
0.039979048,
0.027999777,
-0.06578153,
0.08029442,
0.0101567935,
-0.07898879,
0.048795823,
0.05729712,
0.025737246,
0.035729684,
0.11485979,
0.030900666,
0.11848549,
-0.041167885,
-0.019413602,
-0.0009897662,
0.037177447,
-0.012367268,
-0.0026639146,
0.015703415,
-0.004682757,
0.02313873,
0.01285587,
-0.029367413,
0.0004299994,
-0.0032229219,
-0.055509217,
0.012830607,
-0.06941757,
-0.011024728,
0.07149938,
0.021040814,
0.04097556,
0.010087864,
-0.015326144,
0.06633092,
0.024846293,
0.030543767,
-0.036063526,
0.04786585,
0.080746196,
-0.05148901,
-0.03944397,
-0.02560731,
-0.030061806,
-0.119378395,
-0.14597124,
-0.0019379664,
0.008393022,
0.02391299,
0.028285576,
0.017838066,
-0.10575889,
0.008080279,
0.063887216,
-0.12506104,
-0.025367834,
-0.11007926,
0.05119881,
0.0074462467,
-0.030837482,
0.09254254,
0.05638558,
-0.015566809,
-0.031867318,
0.018337104,
0.024428742,
-0.04207904,
0.0038124651,
0.089954995,
-0.008119599,
0.04010364,
0.01101277,
0.044628654,
0.07919566,
0.05424772,
-0.02765181,
-0.031907864,
0.041443747,
0.041629776,
-0.077835254,
-0.09937545,
0.029904114,
-0.054343645,
0.07058966,
-0.045357563,
0.033653554,
-0.06165668,
-0.018105466,
-0.07228338,
0.035377976,
-0.031618785,
-0.020589711,
0.05848512,
-0.049225498,
0.039343223,
0.08550032,
-0.02999123,
-0.05576069,
-0.029334867,
-0.053031906,
-0.06183916,
0.08176058,
-3.3282095e-33,
0.00018263677,
-0.09808407,
-0.005546721,
0.13180183,
0.026467672,
-0.03976278,
0.010410526,
0.0224753,
-0.071907185,
0.0051384456,
-0.021325551,
-0.10467329,
0.0020021657,
0.023773558,
-0.05749998,
-0.011727474,
-0.020912446,
0.026353715,
0.017790182,
-0.014831289,
0.064687334,
0.04506042,
-0.029312057,
-0.086329944,
-0.02679263,
0.014552092,
0.00450541,
-0.06774747,
0.03405205,
0.013713737,
-0.0075812894,
-0.05971845,
-0.016189387,
0.04431407,
0.026844716,
0.026430609,
0.024091443,
-0.0032407092,
-0.07528814,
0.032822173,
0.027104294,
-0.026295086,
0.04316077,
-0.010091853,
0.03418472,
-0.08266354,
-0.020962028,
-0.007195799,
0.06854903,
0.0050335745,
0.0017976143,
0.06465498,
0.05990612,
-0.012483751,
0.024451843,
0.0216595,
-0.004607541,
-0.0045599337,
0.0027132547,
0.06237349,
0.0035650963,
0.06017223,
-0.062707886,
0.039936993,
-0.0064444174,
-0.041358147,
-0.045459997,
-0.1090475,
0.08058788,
0.055110272,
-0.05126055,
-0.059765127,
0.03794019,
0.015456589,
-0.024956541,
-0.037877902,
-0.006798994,
0.03168522,
-0.036858823,
-0.055584647,
-0.048513155,
-0.07101659,
-0.04168172,
-0.044297233,
-0.09584416,
-0.060873844,
0.008867646,
-0.10643857,
0.04005054,
-0.08472912,
0.018111285,
0.010153481,
-0.088831946,
-0.06396933,
0.086119734,
1.40742655e-33,
0.034337442,
0.03765372,
-0.05348678,
0.0015385735,
0.026684111,
0.026603363,
0.07006394,
-0.034265485,
-0.018221738,
0.10960257,
0.013464453,
-0.008325578,
0.019438108,
-0.039553,
0.0346948,
-0.01237728,
-0.013288512,
-0.048081715,
-0.019539706,
-0.0033996345,
-0.024453554,
0.06150568,
0.11923691,
0.026294913,
-0.01607059,
-0.011499132,
0.042671245,
0.029590787,
0.02208458,
0.007893698,
0.052055497,
0.05781511,
-0.13408816,
0.01778497,
0.021400997,
-0.12113227,
0.10535692,
-0.073586024,
-0.01365194,
0.04049292,
0.054151,
0.09874618,
0.011020864,
0.040327527,
0.034936663,
0.104008466,
0.12958325,
-0.024530984,
0.002284699,
-0.04423982,
0.049778443,
-0.055789,
0.015235878,
0.0034493376,
-0.026075553,
0.06028265,
-0.02800474,
0.04087514,
-0.023749314,
0.0022890922,
0.04982695,
0.046928346,
-0.06416002,
0.013701593,
0.015511846,
-0.054726034,
-0.04598014,
0.032580692,
0.027034545,
0.016436677,
-0.04178264,
-0.036985684,
-0.023043893,
-0.07073367,
0.02848624,
0.0017765185,
-0.03352673,
-0.009977873,
0.024488715,
-0.01789395,
0.029737173,
-0.026266964,
-0.035670772,
0.074699685,
0.02839327,
-0.029625066,
-0.010531287,
0.09147495,
-0.018718459,
0.0012933264,
-0.021214454,
0.07475738,
-0.007773509,
0.04859745,
0.005216041,
-1.6914717e-08,
-0.05724561,
-0.09389087,
-0.034359884,
-0.037500706,
-0.020235123,
0.06142232,
-0.04227304,
-0.008759751,
-0.009908806,
0.016231995,
-0.0142393345,
0.024709389,
-0.030538578,
-0.0539113,
-0.051778484,
0.01277339,
0.0036139442,
-0.012569917,
-0.025041299,
-0.020393578,
0.025865218,
0.010908354,
0.027834723,
0.009661091,
-0.0065981704,
0.078608714,
0.0545161,
0.042956606,
-0.06275147,
-0.025701549,
0.080858655,
0.030041324,
0.022489993,
-0.08401946,
0.00029938412,
0.10966557,
0.11890735,
0.063014634,
0.037847053,
0.032069076,
-0.05345484,
-0.022730356,
0.007188865,
0.037573755,
-0.020178057,
-0.090167664,
-0.07191701,
-0.026041618,
-0.043885022,
-0.14087011,
-0.01723047,
-0.01206335,
-0.046736807,
0.03904859,
-0.060394738,
0.022166023,
0.025670739,
0.022949712,
-0.06707244,
-0.01465472,
0.057985112,
0.10511711,
0.056983206,
-0.017205823
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_list_files[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch list 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.026654687,
0.024452077,
-0.1139506,
0.03856563,
0.014124825,
0.0074432967,
0.090221025,
0.050991993,
-0.14990892,
0.011114308,
0.09637797,
0.017449306,
0.02125126,
-0.09830446,
-0.050306804,
0.0028243647,
-0.049127623,
-0.024658091,
0.00031474957,
-0.08200882,
0.013139788,
0.03023591,
-0.06822236,
0.019828897,
0.024468401,
0.01093643,
0.0013910357,
-0.043733887,
-0.081199914,
-0.0828776,
-0.009885708,
0.034456402,
0.09182025,
0.051413156,
0.21523972,
-0.024441116,
0.055349704,
0.04393575,
-0.02791881,
0.010488583,
0.032701433,
-0.041195206,
-0.028770478,
-0.0458853,
-0.011582085,
-0.00871958,
-0.042531442,
-0.015596647,
0.009807966,
-0.04052592,
-0.097914495,
-0.016153526,
-0.033625863,
-0.029398082,
-0.017599285,
0.020051528,
0.07416734,
0.04713787,
-0.046889056,
0.010329713,
-0.022568654,
-0.053283226,
-0.031405948,
0.0071451264,
0.074516356,
-0.053875234,
-0.039318826,
0.01954052,
0.061838593,
-0.0988704,
-0.11216514,
0.05507487,
-0.041442905,
-0.0031637498,
-0.0426329,
0.00868271,
0.022812206,
0.016854672,
-0.023670673,
-0.08682866,
-0.06994251,
-0.090295225,
0.03363725,
-0.065658905,
-0.058529533,
0.021201625,
0.023692427,
0.039577886,
-0.017618336,
0.004256976,
-0.02889003,
-0.027627867,
-0.007380277,
0.013479348,
0.0037920324,
0.13223451,
0.0086842645,
0.044237822,
0.030107979,
0.0039674295,
0.004454824,
-0.02372803,
0.009404582,
0.09019233,
-0.035894953,
-0.05536505,
0.07841986,
-0.09759913,
0.042643704,
-0.06841906,
-0.024365075,
0.030787079,
0.007492311,
-0.10710555,
0.029260593,
-0.12377258,
0.006293836,
0.0716477,
-0.103731476,
0.0722891,
0.039905887,
-0.057314686,
0.0019951754,
-0.025712965,
-0.053491935,
-0.02878148,
0.018335236,
-9.213444e-34,
-0.014958336,
-0.14040796,
-0.0020862112,
0.053644143,
0.061184462,
-0.023471,
0.028143182,
0.01389217,
-0.07089758,
-0.033845782,
0.013592736,
-0.09175972,
0.02609767,
0.03978577,
-0.091303125,
-0.009530289,
0.0009604899,
0.06769314,
-0.008414227,
-0.09891154,
0.043122225,
0.032900088,
-0.014758909,
-0.024978621,
-0.030166645,
-0.02154586,
0.008096995,
-0.022792077,
0.031495504,
0.005166396,
0.02800541,
-0.004555192,
-0.053282246,
0.044040125,
0.018465158,
0.06764213,
0.027691394,
-0.023345668,
0.03979653,
-0.0108061815,
-0.0433575,
-0.0053964457,
0.0057261065,
0.021266153,
0.0073551,
-0.045078952,
-0.0754476,
0.047708474,
0.09417267,
0.04923376,
0.0064712586,
0.009458537,
-0.02965998,
-0.0025927352,
0.008194652,
0.0024233914,
-0.03606906,
-0.04523259,
0.0475061,
0.07422418,
-0.029725099,
0.018629357,
-0.09468402,
0.059102483,
0.02429139,
-0.08223788,
0.059906166,
-0.04173233,
0.047276534,
0.07987219,
-0.023748739,
-0.011314122,
0.0762012,
-0.009654777,
0.0019907635,
-0.013876171,
0.07441839,
0.019780278,
-0.08972605,
-0.01682911,
0.018730156,
-0.0716306,
-0.098778896,
-0.028125258,
-0.006705559,
-0.040142916,
-0.0011408459,
-0.03824728,
0.11823234,
-0.09058682,
-0.012214238,
0.03453844,
-0.0038697596,
-0.008567002,
0.036206253,
-1.47862505e-33,
0.12119851,
0.12298278,
0.026005113,
-0.013240869,
0.043463666,
0.009894676,
0.031471584,
-0.033759605,
-0.060157593,
0.09595057,
-0.059792235,
0.03352425,
-0.013199708,
-0.045807462,
0.030246317,
-0.0036194616,
0.032309275,
0.013857993,
-0.066962086,
-0.012374286,
-0.037913665,
0.09342285,
-0.005066124,
0.076662436,
-0.025112577,
-0.04840705,
-0.033852383,
0.031135324,
0.050112516,
-0.0047866167,
0.057173196,
0.062488865,
-0.03444626,
0.08130611,
0.057001427,
-0.052079313,
0.089987144,
0.04835568,
0.009681906,
0.075275876,
0.019253878,
0.08852292,
-0.015337396,
-0.017113382,
-0.0016465652,
0.036441136,
0.050348606,
0.026926653,
-0.034951936,
0.05583207,
-0.0105295265,
-0.04353733,
-0.06201696,
-0.0013114201,
-0.012707974,
-0.030748433,
0.023135139,
0.017968204,
-0.011689624,
-0.0044530826,
-0.021922166,
0.027256578,
0.023917124,
0.0034848948,
-0.0021243605,
-0.039207894,
-0.03577703,
0.010132106,
-0.052930683,
-0.037529834,
-0.0053032544,
-0.02522596,
-0.006937384,
-0.002096661,
-0.01381009,
-0.034785595,
-0.030915927,
-0.033622943,
-0.025045559,
0.056745328,
0.051117793,
0.0077840416,
0.010102386,
-0.0031917912,
0.00975653,
0.08270894,
0.041638043,
0.09215332,
0.06079915,
0.029008033,
-0.024159772,
-0.0036208194,
0.1360159,
0.059999406,
0.045862712,
-1.6161662e-08,
-0.074233435,
-0.13015683,
0.026107704,
0.061253183,
-0.00987927,
0.0605725,
-0.1176213,
0.012852308,
0.02771672,
-0.01657753,
0.01635023,
-0.0085972175,
-0.028337933,
0.010110264,
-0.0120518925,
-0.009144653,
0.016192567,
-0.03584005,
0.061958943,
0.07377364,
-0.0210254,
-0.0021169898,
0.07374615,
0.030425888,
-0.002197107,
0.03516327,
0.011411286,
0.041386917,
-0.085570596,
-0.024465743,
0.06160357,
0.020098133,
0.07538962,
-0.06444438,
0.0025435304,
0.047582038,
0.09273526,
0.035677202,
-0.027112702,
-0.003980394,
-0.06494389,
0.023693308,
0.004454023,
0.009919626,
-0.0034382232,
-0.11134441,
-0.09039949,
-0.040688485,
0.00049193145,
-0.10812712,
-0.07540239,
0.026622782,
0.03446164,
0.027628677,
-0.03128206,
0.047727022,
0.01511917,
-0.01071397,
0.021603482,
0.046458237,
0.02472522,
0.053769212,
-0.008230848,
-0.043127336
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_list_files[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384-test_case3]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What inspires neural networks?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.08566708,
-0.09559047,
0.044014607,
-0.015974598,
0.029406257,
0.07229597,
-0.010901963,
-0.023829829,
0.07381301,
-0.05698464,
-0.033780586,
0.051200844,
0.0050912783,
0.014317088,
-0.07878143,
-0.012908666,
-0.041628323,
0.06881713,
-0.10783476,
-0.04042705,
0.026262026,
-0.0019893218,
-0.011008084,
-0.0019646112,
0.004033132,
0.08881656,
0.014049165,
-0.018416086,
0.032621212,
-0.034692146,
0.07614942,
-0.014122101,
-0.024901746,
0.03755059,
-0.10197354,
0.054705318,
-0.022539826,
0.024209768,
0.011698194,
-0.008956377,
-0.050146304,
0.0026327297,
0.055942897,
0.009974366,
0.12796965,
-0.025006283,
0.024338534,
-0.024487961,
-0.0022703854,
-0.024687177,
-0.10482094,
-0.05994297,
-0.055200897,
0.0152664175,
0.03496896,
0.052624088,
-0.0006445885,
0.06637695,
-0.031790398,
-0.007308742,
-0.0050764186,
-0.042508755,
-0.04089097,
0.020062948,
0.038683955,
0.022463562,
-0.02866933,
0.053370677,
0.022435635,
0.01934692,
0.12264713,
0.023911418,
-0.037264284,
0.0059156846,
0.05235448,
0.054004095,
0.08022169,
-0.010992806,
0.029295033,
-0.0672064,
-0.00021147476,
-0.050584126,
-0.0095251575,
0.04616498,
0.078677796,
0.01416309,
-0.033226117,
0.0018380182,
-0.06667651,
-0.020977372,
-0.017116925,
-0.04396714,
-0.05969979,
-0.07344942,
-0.03985366,
-0.030863814,
-0.019918729,
-0.1075161,
-0.026654154,
0.0689854,
-0.0049292273,
0.026645623,
0.018879393,
0.022113768,
0.064208575,
-0.053153764,
0.06160797,
0.014026719,
0.11772326,
-0.051769163,
-0.07634968,
0.03090975,
-0.038558383,
-0.025260162,
0.039262023,
-0.061449137,
0.008389126,
0.016175874,
0.032293033,
0.06679397,
-0.06503257,
0.014676881,
-0.038542666,
0.018718671,
-0.030111106,
-0.028481327,
-0.14707623,
-3.455443e-33,
-0.048577547,
-0.024983348,
0.071679614,
0.035652317,
0.07931413,
-0.07811974,
0.023085583,
-0.047467884,
0.08872273,
-0.0010074769,
-0.11320135,
0.091322996,
0.023978539,
0.11368158,
0.042203873,
-0.05773289,
-0.074543044,
-0.0021036167,
-0.051522236,
-0.050925426,
-0.0016557347,
0.030671587,
0.045119714,
-0.03974729,
-0.05871358,
-0.030611658,
0.0017253247,
0.009114429,
-0.013763352,
0.023424039,
0.0017495834,
0.046633217,
-0.07230643,
-0.027882291,
0.016182518,
0.044456217,
-0.004326421,
-0.061798126,
0.0697968,
0.031249145,
-0.013697079,
-0.007417679,
0.031665757,
-0.02367961,
0.07153089,
0.023938214,
0.009729952,
0.0071919435,
-0.03235391,
-0.04955071,
-0.050248373,
0.02151118,
0.015327139,
-0.0674203,
0.06544387,
-0.025547959,
0.03207046,
0.02038825,
0.0112230005,
0.00019493286,
-0.023462659,
-0.004949742,
-0.014066955,
0.0014178518,
0.059315395,
0.039931085,
-0.032498423,
-0.023698896,
0.05445033,
0.064231694,
-0.034013335,
0.08745776,
-0.080473825,
-0.090545714,
-0.065398656,
-8.2386265e-05,
-0.021441188,
-0.0684535,
-0.029121745,
0.034134887,
-0.07799698,
-0.05388711,
-0.035591345,
0.044826802,
-0.040090464,
0.07972004,
0.026058797,
-0.08184859,
0.0018106091,
-0.027676936,
-0.04312832,
-0.042090744,
0.08336437,
-0.049453646,
-0.0902778,
2.6716498e-33,
-0.091911495,
0.02641473,
-0.07022486,
0.075562105,
0.03900905,
0.027913846,
-0.05444872,
-0.036666486,
-0.048225258,
0.07551892,
0.046452336,
0.025874302,
0.052248206,
-0.00018527219,
0.010575236,
-0.040591337,
-0.028484622,
-0.020559357,
0.08882296,
-0.06755767,
0.04941752,
0.13231009,
-0.06998129,
-0.040112328,
0.044030365,
0.034218542,
-0.08650528,
0.05746921,
-0.0075130556,
0.049070083,
-0.0148686,
-0.018103259,
-0.020280316,
0.038828347,
0.022253176,
0.13486238,
0.06899369,
-0.002589861,
-0.016430879,
0.0033818923,
0.017275693,
0.013614936,
0.044220798,
0.049155377,
-0.008259856,
-0.046575654,
-0.043921605,
0.04156687,
-0.035468902,
0.042837795,
0.03131579,
0.017961076,
-0.026213305,
-0.05458616,
-0.04259084,
-0.004110002,
0.029035388,
0.0010451805,
0.09044077,
0.014110149,
-0.068820216,
-0.07098938,
0.020328037,
0.00433692,
-0.046977337,
0.016492791,
-0.028396707,
0.104340956,
0.002814702,
-0.08339559,
0.037326302,
0.058929898,
0.0376423,
0.09580634,
-0.12376848,
-0.054060236,
-0.014485116,
0.0013106487,
-0.04537336,
-0.0899294,
0.001730278,
-0.05520831,
0.000568523,
0.00053380145,
0.07856981,
0.104590714,
0.00355283,
0.008365939,
0.04291482,
0.010064388,
0.025177509,
0.05732803,
-0.023061136,
0.054399785,
-0.049828697,
-1.3290186e-08,
-0.0539168,
0.08074109,
0.03397028,
0.024365881,
0.0906225,
-0.07162824,
0.07550329,
0.017278913,
-0.061226364,
-0.03298407,
0.07829606,
0.03967995,
-0.036696997,
0.02665964,
0.1000655,
-0.014426734,
0.020708792,
-0.039230846,
0.0085029,
-0.0012509917,
0.06740856,
0.013992665,
-0.054007422,
-0.016785627,
0.07651403,
-0.035508703,
-0.050085396,
0.08382383,
-0.009957674,
0.08140875,
0.019287178,
0.049911316,
0.0022236605,
-0.07807412,
0.019454133,
0.111560374,
-0.01269702,
-0.06466137,
-0.09346588,
-0.050038446,
-0.042178612,
0.0599713,
0.034831088,
-0.014957726,
0.014484159,
-0.022619838,
0.06916277,
-0.088544875,
0.021478733,
0.01378541,
-0.0075770007,
0.027888266,
0.015526889,
0.0052174823,
0.010616002,
-0.022908956,
-0.02535865,
-0.04139556,
-0.08375561,
0.092626974,
0.051755503,
0.09296614,
0.011223383,
-0.016759252
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_create_and_retrieve[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"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.009745715,
0.0336304,
-0.10852256,
0.026609872,
-0.006059925,
-0.020473616,
0.06924864,
0.032276772,
-0.115328364,
-0.0005206984,
0.11814912,
0.0119809285,
0.03685764,
-0.10744221,
-0.046515644,
0.0015449026,
-0.06319663,
-0.0464081,
-0.03731879,
-0.02571832,
-0.0002605647,
-0.011890779,
-0.05092556,
0.014111699,
0.02946771,
0.006379115,
-0.012013315,
-0.0024293852,
-0.044318777,
-0.081000976,
0.020095684,
0.05571391,
0.07881666,
0.054973688,
0.20367871,
-0.004309473,
0.038770065,
0.03825524,
-0.0025382712,
-0.00079738133,
0.044761047,
-0.054529086,
-0.008856873,
-0.040780775,
0.011367247,
-0.022404471,
-0.062090557,
0.025587223,
-0.0034454083,
-0.037439276,
-0.062026367,
-0.030812208,
-0.034592524,
-0.014926671,
0.018588405,
0.01343587,
0.08169152,
0.053658433,
-0.03557854,
0.03332595,
-0.016375782,
-0.022215173,
-0.039247524,
0.00094365346,
0.10228942,
-0.043056134,
-0.05220083,
-0.02007382,
0.05480537,
-0.082313724,
-0.14736548,
0.048954602,
-0.021216843,
0.028726585,
-0.06714089,
0.021436092,
-0.023599941,
0.036779854,
0.010577456,
-0.09660043,
-0.063672334,
-0.10277646,
0.027399305,
-0.06292901,
-0.04634418,
0.03991984,
0.026828999,
0.025460068,
-0.013083576,
-0.0026677637,
-0.016529415,
0.01260503,
-0.0064383014,
0.015841363,
-0.017107084,
0.12320288,
-0.007766043,
0.058450412,
0.073625505,
0.03842608,
0.0047420114,
-0.01559851,
0.014189777,
0.07865993,
-0.02635258,
-0.037174642,
0.06787812,
-0.060126685,
0.06111399,
-0.03493127,
-0.009446341,
-0.0061508804,
0.028923118,
-0.093615785,
0.03353643,
-0.0908891,
0.009241143,
0.07092966,
-0.08954646,
0.044945493,
0.040462427,
-0.041673496,
0.007603028,
-0.0066417875,
-0.0727573,
-0.04369056,
0.076850034,
-1.0508806e-33,
-0.019583644,
-0.13087203,
-0.03574567,
0.070223786,
0.081330545,
-0.009436032,
0.046778373,
0.034781482,
-0.09441179,
-0.040857747,
-0.021270562,
-0.10695986,
0.024023224,
0.022781014,
-0.09042501,
-0.035755865,
0.011359137,
0.050059177,
0.005081587,
-0.07676933,
0.05453652,
0.041917715,
-0.009206511,
-0.022437021,
-0.04617263,
-0.038608655,
-0.0003649128,
-0.025092361,
0.03914682,
-0.0072839684,
0.036754888,
-0.011301057,
-0.08863298,
0.059421457,
0.015851097,
0.033407677,
0.05688381,
-0.01203774,
0.027333332,
-0.0095604975,
-0.05030557,
-0.009787593,
0.023205012,
-0.007937713,
0.0039910576,
-0.036422852,
-0.06979184,
0.046075653,
0.056377765,
0.0071928017,
-0.00020658936,
0.017678235,
0.023745911,
-0.0031295703,
0.016370844,
0.027585862,
-0.034401312,
-0.05594278,
0.036442757,
0.035779852,
-0.005324617,
0.0152410185,
-0.090714596,
0.0727646,
0.023438152,
-0.093097225,
0.05842131,
-0.06191377,
0.045555975,
0.076393075,
-0.03519974,
-0.009256825,
0.038682748,
-0.040795814,
0.01768643,
-0.025513096,
0.06860536,
0.08552028,
-0.1023457,
-0.003647399,
-0.0148261795,
-0.0504576,
-0.09065474,
-0.076476775,
-0.008537983,
-0.041119486,
-0.035473906,
-0.061549008,
0.114327796,
-0.09601485,
0.022990141,
0.0022396236,
-0.023026086,
-0.028128348,
0.07969125,
-4.176525e-34,
0.0786638,
0.11484067,
0.016687384,
0.009315665,
0.01664126,
0.024303278,
0.046507545,
-0.043804727,
-0.09136994,
0.10635374,
-0.069488525,
0.018747646,
0.0053492286,
-0.033229284,
0.042339113,
-0.0017468395,
0.053231545,
0.0058223205,
-0.053313456,
0.016506527,
-0.023251828,
0.097519755,
-0.004555821,
0.08866846,
-0.028221438,
-0.012007983,
-0.009742708,
0.061457966,
0.01574456,
-0.0003945739,
0.02444835,
0.06589118,
-0.05477909,
0.048636883,
0.043890003,
-0.06246761,
0.0761539,
0.0067509436,
0.01915008,
0.06994536,
0.02790094,
0.089027435,
-0.02743303,
0.031390857,
0.022712845,
0.081195295,
0.06855677,
0.002355309,
-0.067641854,
0.0070417193,
-0.03452144,
-0.053785603,
-0.030752137,
0.007947853,
-0.02531741,
-0.04066398,
0.03614412,
0.017730458,
-0.0401791,
0.013665839,
0.004815402,
0.009095547,
0.007248343,
0.012753354,
-0.047865536,
-0.046072427,
-0.0140483035,
0.031082965,
-0.034945227,
-0.023550384,
0.033062257,
-0.022966467,
0.0077442336,
0.01593954,
-0.0012224934,
0.0010534981,
-0.015109031,
-0.02159786,
-0.029862734,
0.039838333,
0.06253634,
0.010616784,
-0.027220458,
0.024103748,
-0.0023567104,
0.08531,
0.04843323,
0.090823546,
0.0051263347,
0.020297285,
-0.017391264,
0.04767738,
0.11080086,
0.030030215,
0.029773543,
-1.5454503e-08,
-0.035807595,
-0.12177603,
0.019753786,
0.058543555,
-0.015907632,
0.08578133,
-0.09558482,
-0.001674384,
0.0077319415,
-0.04790153,
0.011759348,
0.0065360577,
-0.032027353,
0.0031026457,
-0.07580573,
-0.039700788,
-0.0017064476,
-0.07095588,
0.04368033,
0.029966792,
0.0039943536,
0.03192335,
0.08119931,
0.038820695,
0.013302761,
0.041675314,
0.04434972,
0.06040389,
-0.10581905,
-0.05287384,
0.050275758,
0.039101597,
0.059991803,
-0.025067795,
-0.019554092,
0.06748807,
0.1250856,
0.059007544,
-0.019899802,
-0.030194843,
-0.046559427,
0.034567233,
-0.02164492,
-0.0332763,
-0.007566738,
-0.10065882,
-0.0639619,
-0.055270903,
-0.01117581,
-0.116718665,
-0.07208091,
0.02320803,
0.027215244,
0.063635156,
-0.05858023,
0.020345286,
0.018325832,
-0.003609524,
0.0069166403,
0.06541716,
0.009575528,
0.046839867,
0.0070611103,
-0.094708405
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_list_files[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.028407024,
0.08176727,
-0.07856116,
0.027924549,
0.05008439,
-0.035268802,
-0.0040619136,
0.029315198,
-0.05775003,
0.013769637,
0.14610882,
-0.012019041,
-0.024392882,
-0.05509032,
-0.02661779,
-0.013253934,
-0.109151706,
-0.037233494,
-0.0036058167,
0.04766495,
0.06212885,
0.0070259646,
-0.015513743,
-0.008010851,
0.037648663,
0.01587603,
-0.041856695,
0.09732178,
-0.025641596,
-0.11368298,
0.03550726,
0.07043342,
0.016779423,
0.02220752,
0.123395406,
0.0077137193,
0.12550895,
0.008077936,
-0.026158499,
0.0028612812,
0.018155744,
-0.04666325,
0.041025575,
0.0013476727,
0.0019516364,
0.008663665,
0.016689047,
0.02200178,
0.0020768014,
-0.032861207,
-0.086455174,
0.008047145,
-0.07434091,
-0.016292974,
0.06051878,
0.005966867,
0.0160179,
0.021412006,
0.009540338,
0.03177335,
0.023032434,
0.03437097,
-0.04224765,
0.024748176,
0.116213955,
-0.024936162,
-0.03895259,
-0.024991278,
-0.020854436,
-0.08835937,
-0.15073228,
0.020921277,
-0.022518696,
0.0023868105,
0.0057663955,
-0.0015790414,
-0.11985628,
-0.0029912454,
0.0550998,
-0.11830636,
-0.058846988,
-0.15046737,
0.018624697,
-0.0093440395,
-0.028901154,
0.08400474,
0.0437436,
-0.0006745939,
-0.052540295,
0.00024754918,
0.040431518,
0.0066545215,
0.02609114,
0.051891107,
0.012606882,
0.061448827,
0.013889043,
0.038454182,
0.048222367,
0.104106456,
-0.026478294,
-0.021488149,
-0.020865437,
0.05061779,
-0.05171592,
-0.07573864,
0.057483904,
-0.049993664,
0.06528295,
-0.02875688,
0.038766492,
-0.062760465,
-0.0144796055,
-0.063462086,
0.06642258,
-0.014848135,
-0.03523116,
0.0774014,
-0.039893247,
0.032182425,
0.10171478,
-0.022525396,
-0.059299074,
0.00038746602,
-0.05779858,
-0.07034273,
0.06375495,
-4.088634e-33,
-0.021801252,
-0.07985834,
-0.013881648,
0.14923096,
0.02520313,
-0.042283125,
-0.0067697223,
0.054634638,
-0.09223034,
0.0081036305,
-0.03861765,
-0.117698364,
0.012977803,
0.034548674,
-0.01703291,
0.011910173,
0.012945288,
0.04277919,
-0.017591223,
-0.0184066,
0.06513148,
0.04050013,
-0.02252127,
-0.060939074,
-0.018603502,
0.011679816,
0.01410369,
-0.06763908,
0.08543174,
0.030138582,
0.010859261,
-0.054844614,
-0.024129191,
0.048327282,
0.00750549,
0.013356204,
0.024558878,
-0.005942624,
-0.045620095,
-0.00484637,
0.004418298,
-0.0023806267,
0.013590539,
-0.016870445,
0.06959721,
-0.07736302,
0.02058481,
0.0048155314,
0.055696823,
0.0131223425,
-0.011748222,
0.040935397,
0.007458848,
0.042072233,
0.010358565,
0.019406458,
0.011092792,
0.017259602,
0.018278012,
0.077335365,
0.019612921,
0.05268688,
-0.05863009,
0.039751627,
-0.050250556,
-0.048913844,
-0.05265637,
-0.09227304,
0.0755598,
0.08097828,
-0.022257954,
-0.042141132,
0.056546185,
0.023585746,
0.0015263582,
-0.049815144,
0.002336895,
0.028626408,
-0.06897293,
-0.04780049,
-0.048637427,
-0.076585636,
-0.03285766,
-0.046012525,
-0.0573021,
-0.080889866,
-0.008056378,
-0.0936112,
0.051229417,
-0.058302302,
-0.0005942833,
0.02222621,
-0.046907477,
-0.08964737,
0.1195762,
2.0452953e-33,
0.012159685,
0.086426094,
-0.023217503,
0.002771192,
-0.0010614472,
0.03487195,
0.07328719,
-0.049876485,
-0.041938163,
0.13486409,
-0.00690217,
0.006254477,
0.059122436,
-0.028893106,
0.09141587,
-0.018487127,
0.0077112317,
-0.044207573,
-0.0251735,
-0.014999972,
-0.035417248,
0.12413253,
0.13118097,
0.081015825,
-0.03327241,
0.003976432,
0.026454262,
0.026598025,
0.017349144,
-0.0036153824,
0.035460044,
0.05956128,
-0.124593176,
0.021954069,
0.025635097,
-0.11063109,
0.096061416,
-0.06731725,
-0.011819293,
0.042329434,
0.03790837,
0.10582649,
0.0073426333,
0.06629678,
0.022922922,
0.0494007,
0.14639522,
-0.0067070075,
0.004380622,
-0.029196544,
-0.009010303,
-0.08637028,
0.03588363,
0.0029887543,
-0.029351206,
0.07019312,
0.014898416,
0.028345235,
-0.040354595,
0.01916304,
0.015590835,
0.028637327,
-0.019529723,
-0.018309733,
-0.0054176697,
-0.093132764,
-0.06116049,
0.038816936,
0.02793884,
0.034137025,
-0.027511358,
0.010699668,
-0.05521562,
-0.07380209,
0.021521263,
-0.015450832,
-0.024988633,
-0.004755674,
0.030465573,
-0.024057997,
0.0341225,
-0.0103128245,
-0.012666524,
0.03628323,
-0.0044518244,
-0.014977736,
0.02790076,
0.0978009,
-0.026436698,
-0.005187212,
-0.019124882,
0.06205225,
0.052137945,
0.037870288,
0.012578256,
-1.705626e-08,
-0.05000592,
-0.08913878,
-0.0035273295,
-0.01577607,
-0.021846429,
0.07184407,
-0.050185654,
-0.010643527,
-0.030602882,
-0.01577121,
0.013220822,
-0.0025653532,
-0.04210823,
0.009286525,
-0.041129403,
-0.029615805,
0.002200794,
-0.032989334,
-0.05041253,
-0.021504797,
-0.0068345494,
0.0084738685,
0.03568697,
0.0252117,
-0.016504692,
0.04915123,
0.018349955,
0.049084183,
-0.058165494,
-0.015055481,
0.045743454,
0.049920842,
0.020444298,
-0.052004594,
-0.033592116,
0.061816722,
0.111411005,
0.07770497,
0.022457859,
0.0025742552,
-0.043929543,
0.008576763,
-0.036182683,
0.029673496,
-0.017278075,
-0.09458994,
-0.057882637,
-0.06579892,
-0.06124832,
-0.10455079,
-0.02925637,
0.0013624659,
0.0060532107,
0.04077331,
-0.036694046,
0.016800206,
0.005279432,
0.030968234,
-0.05446385,
0.0048696757,
0.070877954,
0.06684445,
0.017715273,
-0.029237686
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file_removes_from_vector_store[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What is the secret string?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07473014,
0.08137506,
-0.06463602,
0.011821943,
-0.07454815,
0.021821007,
0.077573344,
0.012804661,
0.05853777,
-0.014141324,
0.053993534,
-0.026554074,
-0.018055506,
-0.060447972,
-0.019253474,
-0.006501444,
-0.047272332,
-0.048944764,
-0.090516366,
-0.06656194,
0.09287066,
0.02129739,
-0.013401809,
-0.006629013,
0.0079892,
0.016818035,
0.03971694,
0.021875564,
0.014873574,
-0.039426163,
0.025255844,
-0.036836684,
0.016627828,
0.008789532,
-0.053503897,
0.03616121,
-0.034633957,
-0.009877797,
0.064843215,
-0.01517806,
0.020897496,
-0.07135096,
-0.008519908,
0.05118655,
-0.062102985,
0.059486073,
-0.047937352,
0.07045817,
-0.024867272,
-0.010756205,
0.06538509,
-0.03693754,
-0.08240387,
0.08169191,
0.017090658,
0.012944557,
-0.047139525,
0.0025796075,
0.008701712,
0.099866174,
0.04969699,
-0.025922626,
-0.017354922,
0.03395182,
0.038391408,
-0.054247838,
0.008610521,
-0.04077977,
0.0265637,
-0.07186012,
-0.019953186,
-0.041191205,
-0.07246228,
0.00041248833,
0.018758524,
0.023036895,
0.01662864,
-0.06335885,
0.03495032,
0.050063577,
0.00043262896,
-0.06176693,
0.0062733325,
0.11142063,
0.0040838965,
0.085737824,
0.023284689,
0.05699812,
-0.03149832,
-0.013344509,
-0.045138564,
-0.117300816,
0.016063986,
-0.016894838,
-0.028934335,
0.03575864,
-0.05156192,
0.032958068,
-0.11266628,
0.06640015,
0.037839692,
0.022948038,
0.058071073,
-0.039643735,
-0.03247236,
0.017690921,
-0.005001274,
0.019046135,
0.07745316,
-0.020402163,
-0.020310633,
-0.009519755,
0.0031459313,
-0.0045639877,
-0.029116316,
0.033835515,
0.00050839526,
0.06419946,
0.010721198,
0.124151744,
-0.0053820186,
0.00491648,
-0.059696514,
0.029483523,
-0.13409872,
0.016187217,
-0.048092023,
-6.6084764e-33,
0.012305612,
0.060384244,
0.036461998,
-0.035974216,
-0.04197416,
0.012333701,
-0.084805995,
0.012502633,
0.02794982,
0.0861082,
-0.030791838,
-0.061355945,
-0.0009604986,
-0.0252044,
0.045444816,
-0.027590565,
-0.009594973,
0.006712001,
0.043692384,
-0.021483036,
0.003300438,
0.11860881,
0.047044385,
-0.1348901,
0.025469579,
-0.01029819,
0.0022393467,
-0.061863262,
0.10386513,
0.018658707,
-0.0017492755,
-0.051914047,
0.046442248,
0.03761067,
0.033752125,
0.006650237,
0.022015076,
-0.07834835,
-0.008209136,
0.027432231,
0.017393896,
-0.07524756,
0.006497012,
0.027272953,
0.0005804994,
-0.010941825,
-0.020050043,
-0.00012092298,
0.013705002,
0.004699541,
0.022770848,
0.015477994,
-0.0142482165,
-0.013953546,
0.015865315,
-0.023075614,
0.03379947,
-0.039221376,
-0.043229815,
0.02998769,
-0.01652291,
0.06981088,
0.04606923,
0.05332633,
-0.055300076,
0.02511626,
0.014049543,
-0.09398743,
0.03590562,
0.029452223,
-0.13200304,
-0.005059034,
-0.03784268,
-0.03180819,
-0.095502876,
-0.027853556,
0.0024331037,
-0.007881495,
0.058296,
-0.031999517,
-0.06077097,
-0.023381822,
-0.00048603877,
0.13765746,
-0.060579,
-0.008109843,
-0.034873307,
-0.1024547,
-0.009072849,
-0.018931676,
-0.0016711762,
-0.07710289,
-0.043332253,
-0.03619527,
0.03958017,
3.0217083e-33,
0.0050329794,
0.00016030145,
-0.063078895,
0.012225751,
0.10637338,
0.015972024,
0.006653195,
0.01880781,
-0.04708357,
0.045863643,
0.0076015075,
0.03243478,
0.032097474,
-0.020893326,
0.10697852,
0.0075498912,
0.036074348,
0.1462344,
0.03779065,
-0.043190572,
-0.02176097,
-0.009340132,
-0.06983617,
0.015578788,
0.021121953,
0.030661412,
0.08434581,
-0.09288574,
0.008169474,
0.078080945,
-0.081626564,
0.011895231,
0.017099649,
0.0040119104,
-0.14145434,
0.0040375097,
0.046316408,
0.008959473,
-0.0056506568,
-0.055587813,
0.028007837,
0.055937108,
0.062269785,
0.08602392,
-0.12157818,
0.021943888,
-0.0050934856,
0.029819332,
-0.012127162,
0.048801802,
0.06409215,
-0.041438665,
0.01809265,
-0.028214281,
-0.0213588,
0.05564267,
-0.1547868,
0.027465124,
0.018855799,
0.04327939,
0.011500479,
0.017364705,
-0.023216385,
0.051007293,
0.02946264,
0.012533944,
-0.04542834,
-0.002238765,
-0.05611544,
-0.0789272,
0.07960444,
-0.020431034,
-0.0762138,
0.011588508,
-0.035614885,
-0.04803985,
-0.06607436,
-0.057365946,
-0.040188126,
0.07176218,
0.03135825,
0.02303279,
-0.023997622,
0.023614945,
0.09607302,
-0.06843066,
0.014260722,
0.08802569,
-0.037736766,
0.029445928,
-0.028643936,
0.10217973,
-0.0660917,
0.022864237,
0.042151757,
-1.4814046e-08,
0.030838449,
0.043877687,
-0.0245681,
-0.09818859,
0.056659035,
0.0929652,
-0.010337853,
-0.0983916,
0.018008571,
-0.0131424805,
0.026400762,
0.008793538,
-0.05285605,
-0.042175982,
0.030133193,
0.01710666,
-0.06242493,
-0.018753909,
-0.015986755,
-0.018400662,
-0.026477808,
0.010281372,
-0.030476814,
-0.084556945,
-0.05402664,
0.010030052,
0.029531356,
0.13555466,
0.033426728,
0.12098221,
0.040777553,
0.008206964,
-0.018235989,
-0.0568263,
-0.1289943,
0.12416113,
-0.053454727,
-0.038151894,
0.030221034,
0.019807614,
0.047819767,
0.029434063,
0.0015704447,
0.0611775,
-0.05557245,
-0.030236417,
0.10799873,
-0.07073352,
-0.08215229,
0.004518122,
-0.015573616,
-0.013696145,
-0.0023438279,
0.026377691,
-0.015769389,
0.016251203,
-0.04062322,
-0.013962793,
-0.08309221,
0.031991288,
0.049991824,
-0.0038595141,
0.07031122,
0.0049263495
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_create_vector_store_files_duplicate_vector_store_name[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_max_num_results[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"machine learning and artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.04308226,
0.008707138,
0.06876158,
0.018115537,
0.04603657,
0.0026118131,
-0.0032358477,
-0.041284926,
-0.09074888,
-0.033087812,
-0.026611822,
0.0077352105,
0.020191023,
-0.03254043,
-0.035847843,
0.031108031,
-0.039247137,
-0.011286401,
-0.109710276,
-0.12942196,
0.018077252,
0.011446383,
-0.07231236,
-0.013655743,
0.035438832,
0.024783252,
0.03387316,
0.0726014,
-0.012643238,
-0.058606703,
0.057943814,
-0.08163548,
0.064962864,
0.0013675748,
-0.06751009,
0.03504323,
-0.044962864,
-0.004789603,
0.039971247,
-0.010461211,
0.019703588,
-0.09856083,
-0.01284534,
0.018876119,
0.09569305,
0.11571406,
-0.040684983,
-0.026837468,
-0.046950106,
0.022655226,
-0.0884734,
-0.023497678,
-0.022986038,
-0.031128721,
-0.052087843,
0.04241795,
0.011578454,
0.06702011,
0.027121129,
-0.0021518404,
0.04675332,
-0.082024105,
-0.038331598,
0.05215799,
0.097757615,
-0.0006708623,
-0.051935766,
0.09100271,
-0.016111707,
-0.06877312,
0.00767068,
0.076737314,
-0.0017499238,
0.014369293,
0.038031887,
-0.0044654603,
0.011287075,
0.0006178959,
0.08834809,
-0.05933476,
-0.042706404,
-0.048178285,
-0.053068914,
0.033110976,
0.008051986,
-0.042581946,
-0.038104057,
-0.007202849,
0.010891519,
-0.05466173,
0.03903238,
-0.06774145,
-0.02356764,
-0.03883483,
0.03464186,
0.015297014,
0.0073803077,
-0.12351391,
0.036168184,
0.13193323,
-0.06441449,
0.033508655,
-0.01435515,
0.0014314495,
0.031048443,
-0.03981852,
0.0236718,
-0.0028333638,
0.096959464,
-0.13331193,
-0.054209094,
0.019610135,
0.06984815,
-0.05347757,
0.0018131314,
0.02127606,
0.01981612,
0.036502477,
0.008825069,
0.018954003,
-0.07161326,
-0.018733062,
0.031044634,
0.09102944,
0.016508427,
-0.08625295,
-0.08300717,
-1.4044197e-34,
-0.072007515,
-0.045496386,
-0.027986562,
0.05823018,
-0.010462877,
-0.06121516,
0.026053715,
-0.06574638,
0.029178392,
0.012307141,
-0.06338016,
0.040593755,
0.03648161,
0.01977942,
0.08755496,
0.028216325,
0.044194777,
0.076237544,
0.02949726,
-0.0022650051,
0.04304541,
0.025918182,
1.2261046e-05,
-0.038463842,
-0.0161955,
0.03338553,
0.02112944,
-0.023382189,
0.009846733,
0.033575017,
0.030112585,
0.060389582,
-0.06522927,
-0.016030189,
0.019156763,
-0.002600835,
-0.04663393,
0.02794595,
0.021004112,
0.0074595963,
-0.048745092,
-0.0070450655,
0.019834043,
0.016411202,
-0.06381404,
0.031237993,
0.091976196,
-0.0313931,
0.022238847,
-0.015018542,
0.0025784613,
-0.031382624,
-0.0152902305,
-0.025491757,
0.08233924,
0.14333151,
-0.0255008,
-0.005104579,
-0.02309693,
-0.03117742,
0.06995927,
0.030787794,
0.04810884,
0.037135385,
0.0068392092,
0.06759879,
0.049763102,
0.008472162,
0.07170584,
0.0076969583,
-0.005139827,
-0.0031728086,
0.024646448,
-0.06879641,
0.05249289,
-0.009404918,
0.10184627,
-0.013639711,
-0.022681188,
0.021382388,
-0.09593746,
0.024071718,
-0.072101034,
-0.04462981,
0.033456877,
-0.03942254,
0.020099705,
-0.07495305,
-0.008311987,
0.013811793,
-0.09847922,
0.0336409,
0.08235891,
-0.0034134828,
-0.05005179,
-2.0283256e-33,
-0.13664234,
0.06463093,
0.05221015,
0.10102781,
0.016344123,
-0.01269384,
-0.09024102,
-0.023596523,
0.0057664234,
0.10294541,
-0.025930807,
-0.040247634,
0.034446176,
0.019228913,
-0.056902077,
0.019905953,
0.018969242,
-0.039362065,
0.011287794,
0.056024995,
-0.016000811,
0.058928564,
-0.038211577,
-0.030445429,
-0.02130076,
0.031401403,
-0.021228284,
-0.01400283,
-0.051042903,
0.048970606,
0.018451849,
-0.015488385,
-0.05033241,
0.053844187,
-0.050984643,
0.016940817,
-0.032773405,
-0.02502497,
0.000826887,
0.10213942,
0.04724571,
0.010156266,
-0.11653258,
0.012165439,
-0.029735534,
-0.09959623,
-0.052066926,
0.06851813,
0.054645896,
-0.066007115,
0.025503889,
0.013539478,
0.008429433,
-0.10756056,
-0.08184448,
0.07179834,
0.007978949,
-0.013011469,
0.020322459,
0.07827889,
-0.07320297,
-0.1153648,
0.04087073,
0.04355079,
-0.0012279376,
0.045840748,
-0.004366462,
0.074786335,
-0.017625354,
-0.046014115,
0.022716347,
0.057738,
-0.015408269,
0.007771719,
-0.04381374,
-0.05289107,
-0.08783473,
0.016243288,
-0.018398289,
-0.05679973,
0.036058675,
-0.040418148,
0.039242174,
0.083593465,
-0.019223504,
0.05582025,
0.04756948,
-0.07378718,
0.03371102,
-0.08680738,
-0.010659349,
0.0524085,
0.009771544,
0.023841262,
-0.086208895,
-1.7164519e-08,
0.021028979,
-0.051292755,
0.11877283,
-0.04687027,
0.06566496,
0.058750976,
-0.050496,
0.055720143,
-0.040577173,
0.055665523,
0.025019526,
-0.001681203,
-0.031047702,
0.022228474,
0.028109053,
0.03163934,
-0.025502652,
0.020898303,
-0.023064507,
0.013436037,
0.07504084,
0.022279648,
0.028908938,
-0.014271217,
0.025474275,
-0.051414162,
-0.014502164,
0.014646399,
-0.028023712,
0.08406334,
-0.07755092,
0.038713943,
-0.0043370826,
0.025676368,
0.12571524,
0.06996381,
0.0059321956,
-0.10410214,
-0.041439336,
0.016119901,
-0.040744506,
0.017772397,
-0.09114363,
-0.026066387,
0.055598073,
0.016705057,
0.016444646,
-0.11935461,
0.02789905,
0.0151745565,
0.042357437,
0.06817164,
0.05782822,
0.063278705,
0.06748475,
0.059781626,
0.06468886,
-0.06749451,
-0.035589237,
0.0640055,
0.008595763,
0.003157698,
0.009343837,
-0.08392565
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_retrieve_file_contents[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.03427073,
0.090051405,
-0.11458989,
0.0021456745,
0.059038658,
-0.027524853,
-0.020602634,
0.03373726,
-0.038729247,
0.026002944,
0.11481002,
0.027119067,
-0.015927644,
-0.021832926,
-0.046713773,
-0.0463825,
-0.074167565,
-0.0528447,
-0.028117927,
0.06325688,
0.029135453,
0.047131006,
-0.052675154,
-0.005349263,
0.030659368,
0.017706472,
-0.01687267,
0.08681507,
-0.014155131,
-0.0838676,
0.020020565,
0.07115838,
0.08365558,
0.030919788,
0.11829893,
0.028751066,
0.069536895,
-0.017295403,
-0.005784813,
0.005809313,
0.0012009157,
-0.0653044,
0.0373506,
0.018565746,
-0.0034945607,
-0.0011305016,
-0.029752811,
-0.021266408,
0.0058016903,
-0.035597492,
-0.03722647,
0.012373253,
-0.066935256,
-0.023148224,
0.056864377,
0.0014741909,
0.014408296,
-0.017165763,
0.009236472,
0.06087921,
0.024628488,
0.03699286,
-0.050610077,
0.05173448,
0.10159555,
0.008507267,
-0.04803921,
-0.013024803,
0.03110457,
-0.16593884,
-0.1410075,
0.009813814,
-0.025974236,
0.05233053,
-0.0078903325,
0.00788491,
-0.08471812,
-0.044507448,
0.054161046,
-0.0704361,
-0.05769206,
-0.100796975,
0.02182441,
0.022125391,
0.0071617346,
0.13063926,
0.080232956,
-0.004421626,
-0.018768508,
0.0076132733,
-0.03163366,
0.031986494,
-0.022168567,
0.03073627,
-0.023798423,
0.06954045,
0.016659362,
0.009536805,
0.027459558,
0.102133445,
0.021457382,
-0.021377807,
0.015131543,
0.039423607,
-0.09434147,
-0.11544392,
0.09468138,
-0.011155598,
0.07266597,
-0.03601087,
-0.011743829,
-0.06654009,
-0.03470551,
-0.10300434,
0.03020924,
-0.06319472,
-0.0908424,
0.04116676,
-0.033686537,
0.045706224,
0.07134009,
-0.031778418,
-0.059655976,
-0.017215038,
-0.03229557,
-0.058579948,
0.06733934,
-5.023814e-33,
-0.0058283503,
-0.0719842,
-0.009296622,
0.09659216,
0.03709538,
-0.03478395,
-0.004713233,
0.016686605,
-0.09859812,
0.00547005,
-0.014113569,
-0.0840751,
0.0027168505,
0.04445616,
-0.012728728,
0.034566686,
-0.0006014651,
0.06319148,
-0.026799418,
-0.013500979,
0.024169419,
0.015417236,
-0.04135526,
-0.055208974,
-0.06455241,
0.03148543,
-0.0073052812,
-0.03945437,
0.059831504,
0.026674163,
0.01396753,
-0.038841277,
-0.048514687,
0.01756627,
0.020964677,
0.035239976,
0.0115498835,
-0.00846713,
-0.044673763,
0.014640657,
5.2045852e-05,
-0.04694704,
0.02703366,
0.006635295,
0.064396136,
-0.044757996,
-0.026173549,
-0.016282372,
0.05521396,
0.014104745,
-0.008479494,
0.04204778,
0.05049772,
0.021629427,
0.011260506,
0.04858872,
0.017662494,
-0.005005865,
0.0019118759,
0.06333162,
0.035875723,
0.03504778,
-0.06642375,
0.008791644,
-0.027326671,
-0.05987137,
-0.0272001,
-0.08728625,
0.112434424,
0.05879801,
-0.041698616,
-0.06924583,
0.06434144,
0.01583225,
-0.027750073,
-0.037574448,
-0.011715211,
0.0694801,
-0.07104981,
-0.039085716,
-0.043068763,
-0.11208956,
-0.030723054,
-0.063793585,
-0.03527373,
-0.06119042,
-0.01526633,
-0.10094421,
0.047486804,
-0.08320468,
-0.0029513796,
0.0131224785,
-0.056690685,
-0.057956036,
0.06140136,
2.7669969e-33,
0.0036719525,
0.06695694,
-0.05591421,
0.025166295,
0.014735592,
0.03381445,
0.09345791,
-0.01053347,
-0.046693947,
0.14254177,
-0.015430197,
0.0066938214,
0.07679359,
-0.045779705,
0.07989786,
0.0036165903,
0.023604553,
-0.06533708,
-0.04253485,
-0.025912313,
-0.0748119,
0.10020777,
0.12578633,
0.06409652,
-0.016682886,
0.01406972,
0.025274348,
0.0017218525,
-0.013340701,
0.01172295,
0.03772902,
0.040607873,
-0.120578945,
0.024344057,
0.03439985,
-0.10167353,
0.11863072,
-0.03571693,
-0.0126576,
0.022622129,
0.039235484,
0.10625315,
0.0106492825,
0.076503076,
0.02088746,
0.06468519,
0.08582322,
-0.032148413,
0.04359905,
0.011070053,
0.023209164,
-0.06709916,
0.055355705,
-0.008128262,
-0.026921155,
0.076995976,
-0.011614669,
0.044967294,
-0.02459807,
0.020910041,
-0.0016746842,
0.02905443,
-0.03898753,
-0.01360213,
-0.019878393,
-0.057056017,
-0.014543598,
0.010161744,
0.016893594,
0.011981163,
0.019902436,
0.019194229,
-0.06551642,
-0.050247267,
0.050837662,
-0.075614415,
-0.018767305,
-0.012229684,
0.0019464786,
-0.0035209567,
0.0699799,
-0.02925182,
-0.008455151,
0.04742619,
-0.0004527954,
-0.014011262,
-0.0035493495,
0.08439228,
-0.001586065,
0.0016962147,
-0.023180604,
0.059889086,
0.019616995,
0.05435093,
0.012301163,
-1.5289881e-08,
-0.038103975,
-0.084179275,
-0.013605872,
-0.03277629,
-0.020995136,
0.08924277,
0.005438667,
-0.07047066,
-0.03966912,
-0.018226335,
0.05716885,
-0.026391266,
-0.09881308,
0.017511,
-0.01952465,
-0.06237397,
-0.019553065,
-0.0112019945,
-0.030052405,
0.010624359,
-0.005598304,
0.05326868,
0.044162616,
0.025812192,
0.0059228353,
0.059632093,
0.06885661,
0.08894283,
-0.06225795,
-0.038893122,
0.028817136,
0.08772772,
0.017759481,
-0.050048865,
-0.0009810333,
0.1297453,
0.083138496,
0.08161095,
0.011747931,
0.006871316,
-0.07277484,
-0.0020051182,
-0.018357608,
0.008882652,
-0.03823878,
-0.09057624,
-0.06433315,
-0.04256367,
-0.030856675,
-0.09314087,
-0.043470908,
0.012043298,
-9.8401986e-05,
0.040246293,
-0.04912119,
0.014575804,
0.017479645,
-0.00515073,
-0.033331197,
0.0075505474,
0.07488009,
0.06460031,
0.044803377,
-0.028485151
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.028407024,
0.08176727,
-0.07856116,
0.027924549,
0.05008439,
-0.035268802,
-0.0040619136,
0.029315198,
-0.05775003,
0.013769637,
0.14610882,
-0.012019041,
-0.024392882,
-0.05509032,
-0.02661779,
-0.013253934,
-0.109151706,
-0.037233494,
-0.0036058167,
0.04766495,
0.06212885,
0.0070259646,
-0.015513743,
-0.008010851,
0.037648663,
0.01587603,
-0.041856695,
0.09732178,
-0.025641596,
-0.11368298,
0.03550726,
0.07043342,
0.016779423,
0.02220752,
0.123395406,
0.0077137193,
0.12550895,
0.008077936,
-0.026158499,
0.0028612812,
0.018155744,
-0.04666325,
0.041025575,
0.0013476727,
0.0019516364,
0.008663665,
0.016689047,
0.02200178,
0.0020768014,
-0.032861207,
-0.086455174,
0.008047145,
-0.07434091,
-0.016292974,
0.06051878,
0.005966867,
0.0160179,
0.021412006,
0.009540338,
0.03177335,
0.023032434,
0.03437097,
-0.04224765,
0.024748176,
0.116213955,
-0.024936162,
-0.03895259,
-0.024991278,
-0.020854436,
-0.08835937,
-0.15073228,
0.020921277,
-0.022518696,
0.0023868105,
0.0057663955,
-0.0015790414,
-0.11985628,
-0.0029912454,
0.0550998,
-0.11830636,
-0.058846988,
-0.15046737,
0.018624697,
-0.0093440395,
-0.028901154,
0.08400474,
0.0437436,
-0.0006745939,
-0.052540295,
0.00024754918,
0.040431518,
0.0066545215,
0.02609114,
0.051891107,
0.012606882,
0.061448827,
0.013889043,
0.038454182,
0.048222367,
0.104106456,
-0.026478294,
-0.021488149,
-0.020865437,
0.05061779,
-0.05171592,
-0.07573864,
0.057483904,
-0.049993664,
0.06528295,
-0.02875688,
0.038766492,
-0.062760465,
-0.0144796055,
-0.063462086,
0.06642258,
-0.014848135,
-0.03523116,
0.0774014,
-0.039893247,
0.032182425,
0.10171478,
-0.022525396,
-0.059299074,
0.00038746602,
-0.05779858,
-0.07034273,
0.06375495,
-4.088634e-33,
-0.021801252,
-0.07985834,
-0.013881648,
0.14923096,
0.02520313,
-0.042283125,
-0.0067697223,
0.054634638,
-0.09223034,
0.0081036305,
-0.03861765,
-0.117698364,
0.012977803,
0.034548674,
-0.01703291,
0.011910173,
0.012945288,
0.04277919,
-0.017591223,
-0.0184066,
0.06513148,
0.04050013,
-0.02252127,
-0.060939074,
-0.018603502,
0.011679816,
0.01410369,
-0.06763908,
0.08543174,
0.030138582,
0.010859261,
-0.054844614,
-0.024129191,
0.048327282,
0.00750549,
0.013356204,
0.024558878,
-0.005942624,
-0.045620095,
-0.00484637,
0.004418298,
-0.0023806267,
0.013590539,
-0.016870445,
0.06959721,
-0.07736302,
0.02058481,
0.0048155314,
0.055696823,
0.0131223425,
-0.011748222,
0.040935397,
0.007458848,
0.042072233,
0.010358565,
0.019406458,
0.011092792,
0.017259602,
0.018278012,
0.077335365,
0.019612921,
0.05268688,
-0.05863009,
0.039751627,
-0.050250556,
-0.048913844,
-0.05265637,
-0.09227304,
0.0755598,
0.08097828,
-0.022257954,
-0.042141132,
0.056546185,
0.023585746,
0.0015263582,
-0.049815144,
0.002336895,
0.028626408,
-0.06897293,
-0.04780049,
-0.048637427,
-0.076585636,
-0.03285766,
-0.046012525,
-0.0573021,
-0.080889866,
-0.008056378,
-0.0936112,
0.051229417,
-0.058302302,
-0.0005942833,
0.02222621,
-0.046907477,
-0.08964737,
0.1195762,
2.0452953e-33,
0.012159685,
0.086426094,
-0.023217503,
0.002771192,
-0.0010614472,
0.03487195,
0.07328719,
-0.049876485,
-0.041938163,
0.13486409,
-0.00690217,
0.006254477,
0.059122436,
-0.028893106,
0.09141587,
-0.018487127,
0.0077112317,
-0.044207573,
-0.0251735,
-0.014999972,
-0.035417248,
0.12413253,
0.13118097,
0.081015825,
-0.03327241,
0.003976432,
0.026454262,
0.026598025,
0.017349144,
-0.0036153824,
0.035460044,
0.05956128,
-0.124593176,
0.021954069,
0.025635097,
-0.11063109,
0.096061416,
-0.06731725,
-0.011819293,
0.042329434,
0.03790837,
0.10582649,
0.0073426333,
0.06629678,
0.022922922,
0.0494007,
0.14639522,
-0.0067070075,
0.004380622,
-0.029196544,
-0.009010303,
-0.08637028,
0.03588363,
0.0029887543,
-0.029351206,
0.07019312,
0.014898416,
0.028345235,
-0.040354595,
0.01916304,
0.015590835,
0.028637327,
-0.019529723,
-0.018309733,
-0.0054176697,
-0.093132764,
-0.06116049,
0.038816936,
0.02793884,
0.034137025,
-0.027511358,
0.010699668,
-0.05521562,
-0.07380209,
0.021521263,
-0.015450832,
-0.024988633,
-0.004755674,
0.030465573,
-0.024057997,
0.0341225,
-0.0103128245,
-0.012666524,
0.03628323,
-0.0044518244,
-0.014977736,
0.02790076,
0.0978009,
-0.026436698,
-0.005187212,
-0.019124882,
0.06205225,
0.052137945,
0.037870288,
0.012578256,
-1.705626e-08,
-0.05000592,
-0.08913878,
-0.0035273295,
-0.01577607,
-0.021846429,
0.07184407,
-0.050185654,
-0.010643527,
-0.030602882,
-0.01577121,
0.013220822,
-0.0025653532,
-0.04210823,
0.009286525,
-0.041129403,
-0.029615805,
0.002200794,
-0.032989334,
-0.05041253,
-0.021504797,
-0.0068345494,
0.0084738685,
0.03568697,
0.0252117,
-0.016504692,
0.04915123,
0.018349955,
0.049084183,
-0.058165494,
-0.015055481,
0.045743454,
0.049920842,
0.020444298,
-0.052004594,
-0.033592116,
0.061816722,
0.111411005,
0.07770497,
0.022457859,
0.0025742552,
-0.043929543,
0.008576763,
-0.036182683,
0.029673496,
-0.017278075,
-0.09458994,
-0.057882637,
-0.06579892,
-0.06124832,
-0.10455079,
-0.02925637,
0.0013624659,
0.0060532107,
0.04077331,
-0.036694046,
0.016800206,
0.005279432,
0.030968234,
-0.05446385,
0.0048696757,
0.070877954,
0.06684445,
0.017715273,
-0.029237686
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_retrieve_contents[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is the content of test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.0148711065,
0.09436506,
-0.09827569,
0.016189529,
0.07229643,
-0.039229736,
0.0076381243,
0.035811506,
-0.037845902,
0.0225911,
0.158102,
0.00919506,
-0.029846655,
-0.06448416,
-0.018980775,
-0.020236723,
-0.0759393,
-0.046663288,
0.010769112,
0.033283222,
0.069518395,
0.0390862,
-0.009640046,
-0.008600989,
0.039979048,
0.027999777,
-0.06578153,
0.08029442,
0.0101567935,
-0.07898879,
0.048795823,
0.05729712,
0.025737246,
0.035729684,
0.11485979,
0.030900666,
0.11848549,
-0.041167885,
-0.019413602,
-0.0009897662,
0.037177447,
-0.012367268,
-0.0026639146,
0.015703415,
-0.004682757,
0.02313873,
0.01285587,
-0.029367413,
0.0004299994,
-0.0032229219,
-0.055509217,
0.012830607,
-0.06941757,
-0.011024728,
0.07149938,
0.021040814,
0.04097556,
0.010087864,
-0.015326144,
0.06633092,
0.024846293,
0.030543767,
-0.036063526,
0.04786585,
0.080746196,
-0.05148901,
-0.03944397,
-0.02560731,
-0.030061806,
-0.119378395,
-0.14597124,
-0.0019379664,
0.008393022,
0.02391299,
0.028285576,
0.017838066,
-0.10575889,
0.008080279,
0.063887216,
-0.12506104,
-0.025367834,
-0.11007926,
0.05119881,
0.0074462467,
-0.030837482,
0.09254254,
0.05638558,
-0.015566809,
-0.031867318,
0.018337104,
0.024428742,
-0.04207904,
0.0038124651,
0.089954995,
-0.008119599,
0.04010364,
0.01101277,
0.044628654,
0.07919566,
0.05424772,
-0.02765181,
-0.031907864,
0.041443747,
0.041629776,
-0.077835254,
-0.09937545,
0.029904114,
-0.054343645,
0.07058966,
-0.045357563,
0.033653554,
-0.06165668,
-0.018105466,
-0.07228338,
0.035377976,
-0.031618785,
-0.020589711,
0.05848512,
-0.049225498,
0.039343223,
0.08550032,
-0.02999123,
-0.05576069,
-0.029334867,
-0.053031906,
-0.06183916,
0.08176058,
-3.3282095e-33,
0.00018263677,
-0.09808407,
-0.005546721,
0.13180183,
0.026467672,
-0.03976278,
0.010410526,
0.0224753,
-0.071907185,
0.0051384456,
-0.021325551,
-0.10467329,
0.0020021657,
0.023773558,
-0.05749998,
-0.011727474,
-0.020912446,
0.026353715,
0.017790182,
-0.014831289,
0.064687334,
0.04506042,
-0.029312057,
-0.086329944,
-0.02679263,
0.014552092,
0.00450541,
-0.06774747,
0.03405205,
0.013713737,
-0.0075812894,
-0.05971845,
-0.016189387,
0.04431407,
0.026844716,
0.026430609,
0.024091443,
-0.0032407092,
-0.07528814,
0.032822173,
0.027104294,
-0.026295086,
0.04316077,
-0.010091853,
0.03418472,
-0.08266354,
-0.020962028,
-0.007195799,
0.06854903,
0.0050335745,
0.0017976143,
0.06465498,
0.05990612,
-0.012483751,
0.024451843,
0.0216595,
-0.004607541,
-0.0045599337,
0.0027132547,
0.06237349,
0.0035650963,
0.06017223,
-0.062707886,
0.039936993,
-0.0064444174,
-0.041358147,
-0.045459997,
-0.1090475,
0.08058788,
0.055110272,
-0.05126055,
-0.059765127,
0.03794019,
0.015456589,
-0.024956541,
-0.037877902,
-0.006798994,
0.03168522,
-0.036858823,
-0.055584647,
-0.048513155,
-0.07101659,
-0.04168172,
-0.044297233,
-0.09584416,
-0.060873844,
0.008867646,
-0.10643857,
0.04005054,
-0.08472912,
0.018111285,
0.010153481,
-0.088831946,
-0.06396933,
0.086119734,
1.40742655e-33,
0.034337442,
0.03765372,
-0.05348678,
0.0015385735,
0.026684111,
0.026603363,
0.07006394,
-0.034265485,
-0.018221738,
0.10960257,
0.013464453,
-0.008325578,
0.019438108,
-0.039553,
0.0346948,
-0.01237728,
-0.013288512,
-0.048081715,
-0.019539706,
-0.0033996345,
-0.024453554,
0.06150568,
0.11923691,
0.026294913,
-0.01607059,
-0.011499132,
0.042671245,
0.029590787,
0.02208458,
0.007893698,
0.052055497,
0.05781511,
-0.13408816,
0.01778497,
0.021400997,
-0.12113227,
0.10535692,
-0.073586024,
-0.01365194,
0.04049292,
0.054151,
0.09874618,
0.011020864,
0.040327527,
0.034936663,
0.104008466,
0.12958325,
-0.024530984,
0.002284699,
-0.04423982,
0.049778443,
-0.055789,
0.015235878,
0.0034493376,
-0.026075553,
0.06028265,
-0.02800474,
0.04087514,
-0.023749314,
0.0022890922,
0.04982695,
0.046928346,
-0.06416002,
0.013701593,
0.015511846,
-0.054726034,
-0.04598014,
0.032580692,
0.027034545,
0.016436677,
-0.04178264,
-0.036985684,
-0.023043893,
-0.07073367,
0.02848624,
0.0017765185,
-0.03352673,
-0.009977873,
0.024488715,
-0.01789395,
0.029737173,
-0.026266964,
-0.035670772,
0.074699685,
0.02839327,
-0.029625066,
-0.010531287,
0.09147495,
-0.018718459,
0.0012933264,
-0.021214454,
0.07475738,
-0.007773509,
0.04859745,
0.005216041,
-1.6914717e-08,
-0.05724561,
-0.09389087,
-0.034359884,
-0.037500706,
-0.020235123,
0.06142232,
-0.04227304,
-0.008759751,
-0.009908806,
0.016231995,
-0.0142393345,
0.024709389,
-0.030538578,
-0.0539113,
-0.051778484,
0.01277339,
0.0036139442,
-0.012569917,
-0.025041299,
-0.020393578,
0.025865218,
0.010908354,
0.027834723,
0.009661091,
-0.0065981704,
0.078608714,
0.0545161,
0.042956606,
-0.06275147,
-0.025701549,
0.080858655,
0.030041324,
0.022489993,
-0.08401946,
0.00029938412,
0.10966557,
0.11890735,
0.063014634,
0.037847053,
0.032069076,
-0.05345484,
-0.022730356,
0.007188865,
0.037573755,
-0.020178057,
-0.090167664,
-0.07191701,
-0.026041618,
-0.043885022,
-0.14087011,
-0.01723047,
-0.01206335,
-0.046736807,
0.03904859,
-0.060394738,
0.022166023,
0.025670739,
0.022949712,
-0.06707244,
-0.01465472,
0.057985112,
0.10511711,
0.056983206,
-0.017205823
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_create_vector_store_files_duplicate_vector_store_name[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_high_score_filter[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Python is a high-level programming language with code readability and fewer lines than C++ or Java"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07642644,
0.0213101,
-0.03612849,
-0.0012144424,
-0.048599217,
-0.13194773,
-0.084226094,
0.059389386,
-0.0617182,
-0.009323243,
-0.08099486,
0.055514984,
0.052610602,
0.026061919,
0.063071534,
-0.062316332,
-0.065115415,
-0.022351492,
0.017378356,
-0.11605584,
-0.036349725,
0.0404155,
-0.0325302,
-0.01770141,
0.05722761,
0.012393438,
-0.018529164,
-0.030017126,
0.002365914,
0.0066701965,
-0.08862459,
0.0779319,
0.03702611,
0.029523117,
-0.01977821,
0.05424799,
-0.00074063655,
-0.08949148,
-0.05312112,
-0.012703181,
-0.08622611,
0.07689996,
-0.038602136,
-0.011616902,
-0.03234132,
-0.0073969415,
-0.024779495,
-0.067999884,
-0.03039565,
-0.025974417,
-0.09690519,
0.009931951,
-0.05362519,
-0.09107193,
-0.009222061,
-0.008804084,
0.048185978,
-0.003329437,
-0.0058579347,
-0.13306528,
-0.09721703,
0.013474277,
0.047286008,
0.06279936,
-0.01582815,
-0.03771013,
-0.01651892,
0.029905442,
0.09326656,
-0.06746783,
-0.13385954,
-0.020873511,
-0.02586237,
0.11623731,
0.030632136,
-0.10494776,
0.03905967,
-0.010701787,
-0.0014734551,
0.020711906,
0.0017687598,
0.027797814,
-0.078500465,
0.10791581,
0.02910256,
-0.05398749,
0.030513834,
0.07001416,
-0.034323946,
0.00986597,
0.034644563,
-0.04232179,
0.065106474,
0.026648693,
-0.032122962,
0.07616709,
0.020026332,
-0.030642457,
-0.07188906,
0.027189687,
-0.018678213,
-0.05416582,
0.07488992,
0.017753933,
0.03386007,
0.02414506,
0.09077034,
-0.052096054,
0.040722203,
-0.018450806,
-0.012474094,
-0.06403705,
-0.023205942,
-0.061878704,
0.053436812,
0.047876816,
-0.010608645,
0.07852118,
0.03579911,
0.027097313,
0.022424318,
-0.004912598,
-0.02455264,
0.003700777,
0.00039888592,
-0.008842094,
0.009365857,
2.05052e-34,
-0.03236592,
-0.024301885,
0.027186498,
0.021633558,
0.06519107,
-0.019539308,
0.05306087,
0.007985293,
-0.03927361,
-0.020062907,
0.008070545,
0.02382429,
0.015006528,
0.1128094,
0.06113956,
-0.011911169,
0.016901307,
0.045509744,
0.0013988831,
0.00907712,
0.01314859,
-0.012022324,
0.027043821,
0.0071581583,
0.022573117,
-0.013721936,
-0.004378743,
-0.0007087661,
0.033585846,
0.011227843,
-0.05136015,
-0.0739591,
-0.03094639,
0.01957863,
-0.010360539,
-0.0029881562,
-0.00480912,
-0.10446798,
0.034694213,
-0.02424012,
-0.047155295,
0.035451673,
0.037169226,
-0.016986743,
0.0056092087,
0.05057555,
-0.008601115,
0.0060349177,
-0.12273999,
0.036871877,
-0.022267655,
-0.009739047,
0.075974636,
0.08902226,
0.01647873,
0.044345584,
0.06792565,
0.06456903,
-0.050189856,
-0.0016995457,
-0.00090498856,
0.09925942,
0.09253569,
-0.011321612,
0.050309792,
0.07697773,
0.0100068,
0.101032645,
0.03268899,
0.06433435,
-0.044524822,
0.03860177,
-0.019314477,
0.037440598,
-0.0017394378,
0.011816814,
0.011359969,
-0.1040215,
0.06984421,
0.01910163,
-0.028409261,
-0.013704911,
0.048502754,
-0.015429918,
-0.03423058,
-0.055616368,
0.005001686,
0.026054256,
-0.0007700968,
-0.0041726283,
-0.0640977,
-0.05985385,
0.0813829,
0.014288322,
-0.038147252,
-2.1576616e-33,
-0.027279941,
-0.034765568,
-0.02465107,
0.026859807,
-0.090699576,
-0.045698144,
0.013666582,
0.002109106,
0.054007426,
0.032838397,
-0.029939773,
-0.058843046,
0.09825693,
0.03251322,
0.109977886,
0.020682266,
-0.0958973,
0.0005566991,
0.0018037638,
0.017544486,
-0.06843023,
0.06435102,
-0.050149646,
-0.048880838,
-0.027535524,
-0.014993001,
-0.1210176,
-0.04412877,
-0.011025324,
0.058610573,
-0.007498303,
0.038722932,
-0.07025986,
0.030281536,
0.055707317,
-0.001162887,
0.01707519,
-0.042081844,
-0.016578361,
-0.025714336,
0.117893435,
0.04196084,
0.064787276,
0.046081997,
0.014950138,
0.030026693,
-0.039077066,
0.087156676,
-0.012328571,
-0.035646956,
-0.048145168,
0.041394625,
0.038984135,
-0.025188481,
-0.028836856,
-0.02917782,
0.029690607,
0.051454436,
-0.08629761,
-0.06921346,
-0.07273269,
-0.05952071,
0.0050034616,
0.025693603,
-0.022103382,
0.024972659,
-0.09724792,
0.0062089814,
-0.04963219,
-0.13054384,
0.124669954,
-0.01361085,
-0.022798477,
0.039057832,
-0.07550591,
0.049364913,
0.0007779102,
0.004692535,
-0.040757872,
0.06355995,
0.110190175,
0.02015945,
-0.048807338,
0.05842704,
-0.066375315,
0.026938869,
-0.062775925,
-0.014049011,
0.023343485,
0.02358394,
-0.002172394,
0.07766165,
0.031056313,
0.020171564,
-0.020073414,
-2.4317085e-08,
0.020261949,
-0.008623839,
0.0621209,
-0.008334477,
0.02526615,
0.08902315,
-0.007958188,
-0.018911751,
-0.035572145,
0.06189234,
-0.017249323,
-0.030186126,
-0.10225455,
-0.06522741,
-0.004033112,
0.10897627,
-0.02168822,
-0.053784374,
0.011841631,
0.052263785,
0.058334205,
0.0052479547,
-0.06017166,
0.08723854,
-0.08275336,
-0.040676847,
0.065786876,
0.028317772,
-0.012168614,
-0.07196286,
0.014588226,
-0.03231537,
0.0028357722,
0.03868031,
0.055439528,
-0.015238348,
0.05482384,
-0.025080629,
-0.033771332,
0.0030752022,
-0.037511814,
0.015122315,
0.02292684,
0.012024873,
0.03559873,
0.006865039,
-0.04049267,
-0.049685854,
-0.05455341,
-0.073071465,
-0.024902396,
-0.002133957,
-0.013212662,
-0.06657236,
0.023245512,
0.046919,
-0.13278763,
-0.011092663,
-0.023939205,
0.043182902,
0.024406029,
0.06922961,
0.15658055,
0.017658537
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 21,
"total_tokens": 21
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_update_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.03427073,
0.090051405,
-0.11458989,
0.0021456745,
0.059038658,
-0.027524853,
-0.020602634,
0.03373726,
-0.038729247,
0.026002944,
0.11481002,
0.027119067,
-0.015927644,
-0.021832926,
-0.046713773,
-0.0463825,
-0.074167565,
-0.0528447,
-0.028117927,
0.06325688,
0.029135453,
0.047131006,
-0.052675154,
-0.005349263,
0.030659368,
0.017706472,
-0.01687267,
0.08681507,
-0.014155131,
-0.0838676,
0.020020565,
0.07115838,
0.08365558,
0.030919788,
0.11829893,
0.028751066,
0.069536895,
-0.017295403,
-0.005784813,
0.005809313,
0.0012009157,
-0.0653044,
0.0373506,
0.018565746,
-0.0034945607,
-0.0011305016,
-0.029752811,
-0.021266408,
0.0058016903,
-0.035597492,
-0.03722647,
0.012373253,
-0.066935256,
-0.023148224,
0.056864377,
0.0014741909,
0.014408296,
-0.017165763,
0.009236472,
0.06087921,
0.024628488,
0.03699286,
-0.050610077,
0.05173448,
0.10159555,
0.008507267,
-0.04803921,
-0.013024803,
0.03110457,
-0.16593884,
-0.1410075,
0.009813814,
-0.025974236,
0.05233053,
-0.0078903325,
0.00788491,
-0.08471812,
-0.044507448,
0.054161046,
-0.0704361,
-0.05769206,
-0.100796975,
0.02182441,
0.022125391,
0.0071617346,
0.13063926,
0.080232956,
-0.004421626,
-0.018768508,
0.0076132733,
-0.03163366,
0.031986494,
-0.022168567,
0.03073627,
-0.023798423,
0.06954045,
0.016659362,
0.009536805,
0.027459558,
0.102133445,
0.021457382,
-0.021377807,
0.015131543,
0.039423607,
-0.09434147,
-0.11544392,
0.09468138,
-0.011155598,
0.07266597,
-0.03601087,
-0.011743829,
-0.06654009,
-0.03470551,
-0.10300434,
0.03020924,
-0.06319472,
-0.0908424,
0.04116676,
-0.033686537,
0.045706224,
0.07134009,
-0.031778418,
-0.059655976,
-0.017215038,
-0.03229557,
-0.058579948,
0.06733934,
-5.023814e-33,
-0.0058283503,
-0.0719842,
-0.009296622,
0.09659216,
0.03709538,
-0.03478395,
-0.004713233,
0.016686605,
-0.09859812,
0.00547005,
-0.014113569,
-0.0840751,
0.0027168505,
0.04445616,
-0.012728728,
0.034566686,
-0.0006014651,
0.06319148,
-0.026799418,
-0.013500979,
0.024169419,
0.015417236,
-0.04135526,
-0.055208974,
-0.06455241,
0.03148543,
-0.0073052812,
-0.03945437,
0.059831504,
0.026674163,
0.01396753,
-0.038841277,
-0.048514687,
0.01756627,
0.020964677,
0.035239976,
0.0115498835,
-0.00846713,
-0.044673763,
0.014640657,
5.2045852e-05,
-0.04694704,
0.02703366,
0.006635295,
0.064396136,
-0.044757996,
-0.026173549,
-0.016282372,
0.05521396,
0.014104745,
-0.008479494,
0.04204778,
0.05049772,
0.021629427,
0.011260506,
0.04858872,
0.017662494,
-0.005005865,
0.0019118759,
0.06333162,
0.035875723,
0.03504778,
-0.06642375,
0.008791644,
-0.027326671,
-0.05987137,
-0.0272001,
-0.08728625,
0.112434424,
0.05879801,
-0.041698616,
-0.06924583,
0.06434144,
0.01583225,
-0.027750073,
-0.037574448,
-0.011715211,
0.0694801,
-0.07104981,
-0.039085716,
-0.043068763,
-0.11208956,
-0.030723054,
-0.063793585,
-0.03527373,
-0.06119042,
-0.01526633,
-0.10094421,
0.047486804,
-0.08320468,
-0.0029513796,
0.0131224785,
-0.056690685,
-0.057956036,
0.06140136,
2.7669969e-33,
0.0036719525,
0.06695694,
-0.05591421,
0.025166295,
0.014735592,
0.03381445,
0.09345791,
-0.01053347,
-0.046693947,
0.14254177,
-0.015430197,
0.0066938214,
0.07679359,
-0.045779705,
0.07989786,
0.0036165903,
0.023604553,
-0.06533708,
-0.04253485,
-0.025912313,
-0.0748119,
0.10020777,
0.12578633,
0.06409652,
-0.016682886,
0.01406972,
0.025274348,
0.0017218525,
-0.013340701,
0.01172295,
0.03772902,
0.040607873,
-0.120578945,
0.024344057,
0.03439985,
-0.10167353,
0.11863072,
-0.03571693,
-0.0126576,
0.022622129,
0.039235484,
0.10625315,
0.0106492825,
0.076503076,
0.02088746,
0.06468519,
0.08582322,
-0.032148413,
0.04359905,
0.011070053,
0.023209164,
-0.06709916,
0.055355705,
-0.008128262,
-0.026921155,
0.076995976,
-0.011614669,
0.044967294,
-0.02459807,
0.020910041,
-0.0016746842,
0.02905443,
-0.03898753,
-0.01360213,
-0.019878393,
-0.057056017,
-0.014543598,
0.010161744,
0.016893594,
0.011981163,
0.019902436,
0.019194229,
-0.06551642,
-0.050247267,
0.050837662,
-0.075614415,
-0.018767305,
-0.012229684,
0.0019464786,
-0.0035209567,
0.0699799,
-0.02925182,
-0.008455151,
0.04742619,
-0.0004527954,
-0.014011262,
-0.0035493495,
0.08439228,
-0.001586065,
0.0016962147,
-0.023180604,
0.059889086,
0.019616995,
0.05435093,
0.012301163,
-1.5289881e-08,
-0.038103975,
-0.084179275,
-0.013605872,
-0.03277629,
-0.020995136,
0.08924277,
0.005438667,
-0.07047066,
-0.03966912,
-0.018226335,
0.05716885,
-0.026391266,
-0.09881308,
0.017511,
-0.01952465,
-0.06237397,
-0.019553065,
-0.0112019945,
-0.030052405,
0.010624359,
-0.005598304,
0.05326868,
0.044162616,
0.025812192,
0.0059228353,
0.059632093,
0.06885661,
0.08894283,
-0.06225795,
-0.038893122,
0.028817136,
0.08772772,
0.017759481,
-0.050048865,
-0.0009810333,
0.1297453,
0.083138496,
0.08161095,
0.011747931,
0.006871316,
-0.07277484,
-0.0020051182,
-0.018357608,
0.008882652,
-0.03823878,
-0.09057624,
-0.06433315,
-0.04256367,
-0.030856675,
-0.09314087,
-0.043470908,
0.012043298,
-9.8401986e-05,
0.040246293,
-0.04912119,
0.014575804,
0.017479645,
-0.00515073,
-0.033331197,
0.0075505474,
0.07488009,
0.06460031,
0.044803377,
-0.028485151
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_with_chunks[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.024330618,
0.016706783,
0.037677176,
-0.00915746,
-0.030534461,
-0.017140884,
0.074272,
0.0456916,
-0.009377196,
0.009883053,
-0.0056895507,
0.007668296,
0.039537333,
0.015226257,
-0.083189555,
0.019439526,
-0.022046678,
-0.033254813,
-0.18105465,
-0.13025087,
-0.0022671346,
0.013451522,
-0.024325468,
-0.0370128,
0.0020083552,
0.08566712,
0.0047639925,
-0.0033431018,
-0.006082307,
-0.11575565,
0.06682902,
-0.018777572,
0.08786827,
-0.0074177794,
-0.093573004,
0.06146399,
-0.08110609,
0.012222862,
0.03971064,
-0.0026197461,
-0.04657111,
-0.08183902,
0.03959615,
0.015451151,
0.04370617,
0.103643835,
-0.058421485,
0.036699355,
-0.052699573,
0.040590122,
-0.12578927,
0.006500531,
-0.03583627,
-0.010050973,
-0.023851713,
0.045972254,
0.014605586,
0.019414552,
0.028465148,
-0.055030964,
0.024210233,
-0.052867457,
0.015230711,
-0.0043921247,
0.092372045,
0.033849865,
-0.04737281,
0.03204496,
0.001322036,
-0.051211488,
0.025862284,
0.08155327,
0.04092595,
0.019154705,
0.056453932,
-0.052758913,
0.030533386,
-0.01663434,
0.07877244,
-0.054262977,
-0.042149354,
-0.045443602,
-0.052689902,
0.11225497,
0.01989102,
-0.042375352,
-0.01168115,
0.024315914,
0.01915792,
-0.016550383,
-0.01030883,
-0.08545277,
0.023834355,
-0.042181373,
-0.02503509,
0.062114798,
-0.0045557353,
-0.15369569,
0.001106691,
0.19423288,
-0.0338511,
0.026152972,
-0.02032091,
0.0012884078,
-0.0010269672,
-0.02411262,
0.017495485,
-0.009808713,
0.07037937,
-0.13769862,
-0.11118059,
-0.01736481,
0.06603106,
-0.05188892,
0.0019610007,
0.014606686,
0.060775463,
0.096280165,
0.013551965,
0.019343173,
-0.00010512453,
-0.026652312,
-0.009341819,
0.07083247,
-0.0034617546,
-0.062412772,
-0.044611085,
-8.796679e-34,
-0.111884,
-0.04256611,
0.027425196,
0.06574074,
0.002830377,
-0.044104468,
0.005238822,
-0.036899913,
-0.015583552,
0.0206543,
-0.059225976,
0.007236511,
-0.028716031,
0.040467348,
0.13387093,
0.006795838,
-0.01636956,
0.082198486,
-0.02261007,
-0.03641293,
0.06524453,
0.021011814,
-0.005472363,
-0.038433436,
0.001462021,
0.0073671984,
0.016773427,
-0.062663026,
0.035388503,
-0.014395795,
0.027888605,
0.0837546,
-0.027772024,
-0.0036210797,
0.03903557,
-0.026879627,
-0.018737236,
0.019059159,
0.06522148,
0.0070414003,
0.004749159,
-0.0030224407,
0.040062208,
0.028016094,
-0.004660955,
0.012264517,
0.08708117,
-0.0070171114,
-0.03749808,
0.011326775,
0.015419708,
0.013775354,
0.017958472,
-0.009817919,
0.09011542,
0.05170552,
-0.034259036,
0.0043903207,
-0.01884889,
-0.031481344,
0.08216297,
0.016875258,
-0.022163702,
0.06844141,
0.01581623,
0.020322658,
0.0063856863,
0.016461994,
0.12718283,
0.014996434,
-0.010813858,
0.0017669421,
0.03166716,
-0.044353984,
-0.05225622,
0.022843942,
0.050988898,
-0.018916955,
0.0027930918,
-0.033645593,
-0.13571611,
-0.027015164,
-0.035672266,
-0.033537813,
0.047864296,
-0.0054381513,
0.021346755,
-0.040034927,
0.019374551,
0.012011466,
-0.04336231,
0.00054701004,
0.034879614,
0.017960642,
-0.062501945,
8.224154e-34,
-0.09450138,
0.013776636,
-0.025351105,
0.098992504,
0.045503527,
-0.02053458,
-0.029694881,
-0.059200566,
0.042453792,
0.0844487,
-0.043211546,
-0.0077362363,
0.049354795,
0.04203366,
-0.036539596,
0.014424774,
0.040357023,
-0.058971472,
0.010022987,
0.059877146,
-0.02790864,
0.034927685,
-0.087597504,
-0.060616262,
-0.0048867166,
0.08776906,
-0.0053599468,
-0.021816833,
-0.048162397,
0.046919785,
0.0083988905,
-0.0517289,
-0.020422187,
0.08581073,
-0.022597926,
0.034425046,
-0.014506674,
0.0031332907,
-0.04651877,
0.030281488,
0.039713897,
0.02969227,
-0.09310218,
0.051527865,
0.007809,
-0.05700871,
-0.041792583,
0.08987064,
-0.00813404,
-0.04082285,
-0.053487595,
-0.034378976,
-0.045253906,
-0.09715307,
-0.058194414,
0.06093547,
-0.009079956,
0.006918499,
0.012345728,
0.062036473,
-0.0060238577,
-0.0864295,
0.05872831,
0.053304974,
-0.05352623,
0.039521407,
-0.04498403,
0.0727911,
-0.039616212,
-0.05134442,
0.10334881,
0.02176773,
0.00016648973,
0.009423309,
0.022016358,
-0.006902813,
-0.128883,
-0.009864072,
-0.036396757,
-0.042481646,
0.004420737,
-0.047660243,
0.0065179355,
0.102602735,
-0.053166825,
0.07328581,
0.015810944,
-0.029149039,
0.025130944,
-0.063055776,
-0.043462534,
0.06719971,
0.014921177,
-0.0010985207,
-0.09869465,
-1.4682753e-08,
0.004611013,
-0.06715223,
0.07644809,
-0.019802453,
0.06737909,
0.044783685,
-0.050963327,
-0.0077186874,
-0.029319718,
0.028867716,
0.018877175,
-0.024279349,
0.04412064,
0.04416273,
0.03432814,
0.046517964,
0.02158077,
-0.001748483,
-0.0029956794,
0.014355785,
0.12525895,
0.03431845,
-0.014617591,
0.039184693,
-0.0023036227,
-0.014352919,
0.01010173,
0.02430961,
-0.041730728,
0.08832413,
-0.031459343,
0.030073628,
-0.0029376182,
0.0049478672,
0.09588392,
0.09396655,
0.01412568,
-0.077148266,
-0.039246846,
-0.01064901,
-0.008556093,
0.06409403,
-0.033037152,
-0.03049978,
0.0945846,
-0.008954658,
-0.029921891,
-0.132985,
0.059934624,
-0.011668423,
0.0071737366,
0.035627652,
0.0041028745,
0.056198087,
0.07656151,
-0.010067092,
0.05678312,
0.023536043,
-0.063770495,
0.08934554,
0.043756966,
0.04337246,
0.046287052,
-0.07039028
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[openai_client-emb=ollama/all-minilm:l6-v2:dim=384-test_case0]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What makes Python different from other languages?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.054516047,
-0.016456056,
-0.010628294,
0.022998175,
0.011771307,
-0.11192805,
-0.009638266,
0.019111464,
0.048958372,
-0.040184658,
-0.022362057,
0.016236247,
0.009179422,
0.054799747,
0.049246185,
-0.095869735,
-0.031108288,
-0.010185289,
-0.02914681,
-0.08954776,
-0.0006788293,
0.03496997,
0.016079746,
0.003440155,
0.039660316,
-0.016080642,
-0.028411511,
0.021429215,
0.046082154,
-0.062199906,
-0.023051145,
0.10141082,
0.025186997,
-0.03625052,
-0.032918967,
0.034433577,
-0.016646268,
-0.066217534,
-0.06070787,
0.0006243064,
-0.06383077,
0.0077886702,
-0.005127284,
-0.036702275,
-0.023532037,
0.074247204,
-0.017199293,
0.064781435,
-0.00963324,
-0.0011216484,
-0.094671436,
0.029772488,
-0.0828219,
-0.053136364,
-0.014507852,
-0.015170829,
0.03712605,
0.071739994,
-0.018907284,
-0.11193762,
-0.11859575,
0.029719124,
0.030655412,
0.10308374,
-0.027978238,
-0.045611758,
0.0013704232,
0.004602404,
0.032320693,
-0.027153788,
-0.06603313,
-0.015827695,
0.01920783,
0.06879109,
0.047088612,
-0.1058506,
0.046279814,
-0.030967912,
-0.06984916,
-0.014879451,
-0.0014568317,
0.026731879,
-0.04702097,
0.076069675,
0.05755153,
-0.020301627,
0.038702164,
0.06855233,
-0.06817319,
-0.017392006,
0.057020444,
-0.0795406,
-0.014256318,
0.0036161602,
-0.05289696,
0.049625576,
0.021482797,
0.034989595,
0.025457244,
-0.004806878,
0.051217325,
-0.085426696,
0.07142323,
0.04465428,
0.039311107,
-0.013488202,
0.07088864,
-0.06598805,
0.05922822,
-0.023026757,
-0.027465338,
-0.046879534,
-0.03751372,
-0.0085191075,
0.05315477,
0.0037932945,
-0.020239882,
0.043557003,
-0.03434906,
0.04282584,
-0.007332412,
-0.0016165953,
0.041878954,
-0.025151564,
-0.0301328,
0.05601688,
-0.03388191,
-4.802144e-33,
0.008930927,
-0.10549414,
-0.022485359,
-0.00461374,
0.10122854,
-0.024063904,
0.072040126,
0.00826307,
-0.017573163,
-0.012551788,
0.011197847,
0.09432378,
0.025232295,
0.061275084,
0.028605146,
0.070148624,
-0.028050693,
0.042055413,
0.012653081,
0.051212482,
0.06987365,
0.113007665,
0.063927636,
0.04614841,
0.00071471,
-0.04746817,
-0.007670411,
-0.016275087,
-0.039374933,
-0.0060473024,
-0.057836913,
-0.032802302,
0.030103875,
0.049495216,
0.006514002,
-0.015127479,
0.027406687,
-0.13926439,
0.04688173,
-0.00014261098,
0.023295157,
0.014260961,
0.00048042598,
-0.019151432,
-0.02166308,
0.012344319,
-0.03541818,
-0.014996304,
-0.12476534,
0.017857043,
-0.015367026,
-0.030933712,
0.0775453,
0.067932405,
-0.002991927,
0.034482367,
0.07207725,
-0.008732087,
-0.0038812195,
-0.048092995,
0.021236168,
0.06584243,
0.07847724,
0.014562048,
0.066736475,
0.07221872,
0.03357779,
0.084165,
0.01657892,
0.04212138,
-0.059364557,
0.020403123,
-0.065706775,
0.045810685,
0.0029439582,
0.0034878643,
-0.008467763,
-0.14005418,
0.056226924,
0.05473064,
-0.060421,
-0.035074305,
-0.05707729,
-0.0104098,
-0.089569785,
-0.023614792,
0.0344653,
0.033663824,
0.06720568,
-0.0725603,
-0.04185905,
-0.08224899,
0.010631505,
-0.042881776,
-0.0014539668,
8.40692e-34,
-0.07032476,
0.0070766173,
-0.03506184,
0.021500606,
-0.11258514,
-0.045659322,
0.08482931,
0.050339974,
0.0533988,
0.01208183,
-0.0019384808,
-0.0860773,
0.09599927,
0.0037235345,
0.060938608,
0.015288853,
-0.040593054,
0.10491757,
0.07109598,
-0.0050172145,
-0.049021836,
0.091859885,
-0.09862007,
-0.012040684,
-0.016914355,
-0.028067894,
-0.12471722,
-0.078632146,
-0.018693453,
0.021743925,
0.0057838396,
0.051090635,
-0.08270728,
0.07299018,
0.014088154,
0.0010067249,
-0.03681869,
0.005664378,
0.017898101,
0.01379136,
0.049959406,
0.021462437,
0.11088524,
0.061694097,
0.018546695,
0.036211833,
-0.06682083,
0.036322806,
-0.021121122,
-0.079697676,
0.065231666,
0.002995329,
0.0188468,
-0.008694769,
-0.058170997,
-0.040058907,
0.051831294,
0.016280394,
-0.08779952,
-0.022270929,
-0.013231236,
-0.03801554,
0.0254927,
0.030549657,
-0.054053955,
0.040396415,
-0.116118245,
-0.026093038,
-0.004378966,
-0.15024145,
0.08058958,
-0.05766716,
0.02520104,
-0.0038984206,
-0.06448939,
0.020477816,
-0.034754846,
-0.029315596,
-0.052802563,
0.050487537,
-0.03663958,
-0.009309272,
-0.031305738,
-0.0010610216,
-0.089741714,
0.0445201,
-0.058746234,
0.028397618,
0.057035178,
-0.021242462,
0.024774676,
0.023253858,
-0.025503494,
0.066465355,
0.011176001,
-1.5780694e-08,
-0.043592602,
0.050871234,
0.009062051,
0.03658537,
0.002769079,
0.038917493,
-0.013205564,
0.006855097,
-0.006784634,
0.020516934,
-0.029890155,
-0.005596517,
-0.06777992,
-0.05436433,
0.02436097,
0.13761573,
-0.07139558,
0.007746665,
0.051632155,
0.059728563,
0.0424793,
-0.035606194,
-0.05791164,
0.044417217,
-0.105627485,
0.009701339,
-0.016052725,
0.03566595,
0.023313522,
-0.079250954,
0.0054293363,
-0.060480006,
-0.044735,
0.013152052,
-0.015912784,
-0.012098195,
0.0058634495,
-0.070984975,
0.017616477,
0.03611389,
0.023517592,
-0.007936504,
-0.03601146,
0.0059993765,
0.059939068,
0.0058700717,
-0.05880679,
-0.04119574,
-0.038231015,
-0.030013425,
0.01916342,
-0.020920184,
-0.008940394,
-0.025874808,
0.08722286,
0.042265054,
-0.09463029,
-0.034977533,
0.05149754,
0.042541843,
-0.01818799,
0.06035198,
0.1938343,
0.01467125
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 8,
"total_tokens": 8
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_list_files[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch list test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.0036465183,
0.039924216,
-0.12941182,
0.037590887,
0.010976234,
0.0051913885,
0.050194982,
0.04712549,
-0.110254765,
0.015371635,
0.10012847,
0.0086210305,
-0.00401681,
-0.07506743,
-0.07134991,
0.0026189892,
-0.042793002,
-0.043490924,
0.024093278,
-0.059902564,
0.0057522473,
0.041752275,
-0.0518659,
0.0041615097,
0.0145003805,
0.009214976,
-0.0040959273,
-0.05989768,
-0.066200614,
-0.06039945,
-0.008130723,
0.049457688,
0.09335371,
0.040228266,
0.23237613,
-0.031075992,
0.066336684,
0.031554125,
-0.018242544,
0.018741237,
0.04798815,
-0.027992837,
-0.030888785,
-0.026447287,
-0.005291827,
0.0026244177,
-0.029284751,
-0.039187636,
0.025298318,
-0.03554318,
-0.08725903,
0.0051248395,
-0.034592275,
-0.032171108,
-0.004462186,
0.015781265,
0.06675842,
0.06411844,
-0.026831465,
0.040966112,
-0.025728298,
-0.04688795,
-0.030973477,
0.0108745955,
0.0722766,
-0.024154983,
-0.05418077,
-0.000112870955,
0.06427881,
-0.10798278,
-0.094993085,
0.031746376,
-0.03553208,
0.011721068,
-0.040610477,
0.0252638,
0.032354478,
0.0044251755,
-0.011238418,
-0.068738,
-0.08214709,
-0.09680521,
0.037895776,
-0.06387282,
-0.050618686,
0.047263417,
0.018891728,
0.0412337,
-0.00036982878,
0.01646717,
-0.068015374,
-0.024197156,
-0.06515257,
0.010283863,
-0.0011034796,
0.12800129,
0.0046132635,
0.04948645,
0.0066414373,
0.0038719445,
0.011649022,
-0.05141349,
0.020765351,
0.10356703,
-0.021878071,
-0.04683769,
0.08752736,
-0.082844995,
0.030899115,
-0.06978503,
-0.022572583,
0.031471837,
0.020657966,
-0.1110287,
0.008903277,
-0.14674239,
-0.008688162,
0.06673007,
-0.1264913,
0.07123954,
0.04898091,
-0.05575026,
-0.0021988999,
-0.027179684,
-0.06655918,
-0.0017623958,
0.029062115,
-9.678609e-34,
-0.0040430804,
-0.1445171,
0.027866993,
0.056585513,
0.051756255,
-0.033553254,
0.03485847,
0.015262136,
-0.055595256,
-0.017982436,
0.029664941,
-0.091648795,
0.030431122,
0.038217068,
-0.080033876,
-0.001278928,
0.008315687,
0.06286121,
0.0021489516,
-0.095392406,
0.056737788,
0.02301,
-0.03430761,
-0.041193787,
-0.03171937,
0.0022807133,
-0.0032209419,
-0.034821205,
0.011649089,
0.008981317,
0.0254853,
0.007002123,
-0.04010535,
0.029323202,
0.022673734,
0.068820246,
-0.00014395108,
-0.010711781,
0.024299825,
0.012537121,
-0.0481291,
-0.015601043,
-0.0069175945,
0.004603007,
-0.0052467184,
-0.05961089,
-0.059626818,
0.031623863,
0.092408285,
0.04708552,
0.00075549266,
0.019177787,
-0.035067532,
-0.001123708,
-0.017206883,
-0.0036923788,
-0.03970438,
-0.047295928,
0.036669154,
0.068081565,
-0.029749148,
0.020204429,
-0.107095204,
0.042345714,
0.022392623,
-0.09487722,
0.057932172,
-0.056190446,
0.046567976,
0.08047286,
-0.016240422,
-0.011581611,
0.07382179,
0.0020555314,
0.0025288807,
-0.021367662,
0.081748515,
0.007078425,
-0.09470811,
0.0030566726,
0.053787757,
-0.074042186,
-0.083328,
-0.057415612,
0.008429428,
-0.053765427,
-0.015226777,
-0.027527997,
0.10367792,
-0.10190198,
0.0054718414,
0.015465243,
-0.016845582,
-0.0016768618,
0.012372419,
-1.2111097e-33,
0.11383396,
0.12203165,
0.0062433938,
-0.011379958,
0.02088539,
0.007189597,
0.054203767,
-0.018699061,
-0.052370373,
0.10751054,
-0.021465823,
0.04084957,
-7.4275136e-05,
-0.025531521,
0.044114646,
0.005272512,
0.0062982296,
0.021161184,
-0.06669754,
-0.018744836,
-0.03190448,
0.10949183,
-0.008740601,
0.0689648,
-0.021337925,
-0.053446896,
-0.02771705,
0.048302785,
0.05164785,
-0.014181841,
0.086858906,
0.07332701,
-0.05071209,
0.06767104,
0.073746495,
-0.043644488,
0.09263983,
0.054621045,
0.025011554,
0.055775028,
0.02436886,
0.09215541,
-0.034988236,
0.0030215532,
-0.006717577,
0.03289223,
0.059916247,
0.009774813,
-0.015418337,
0.034162316,
0.008471469,
-0.045472328,
-0.04667333,
0.00731922,
-0.013213432,
-0.024659151,
0.009905776,
0.02377535,
-0.003152262,
-0.01130403,
-0.030932695,
0.029342141,
0.013968052,
-0.0046377,
-0.005656476,
-0.013187236,
-0.03282219,
0.03882881,
-0.050185896,
-0.06398926,
0.010382671,
-0.022127153,
-0.030189876,
-0.009426351,
-0.03064495,
-0.03634641,
-0.0349218,
-0.035668623,
-0.021144494,
0.059650354,
0.065509655,
0.0044521615,
0.013206919,
-0.002061999,
0.026685787,
0.06515911,
0.006900156,
0.09558864,
0.050668344,
0.023799876,
-0.017750489,
-0.011246626,
0.11730665,
0.07201313,
0.041874938,
-1.5963826e-08,
-0.07315261,
-0.12011152,
0.033495143,
0.05738324,
0.0005284734,
0.050519086,
-0.09675792,
-0.008407969,
0.0107015055,
-0.020977397,
0.0144274095,
-0.024443854,
-0.0429767,
0.0043172077,
-0.007172003,
-0.013036474,
0.02008991,
-0.018716406,
0.058911163,
0.07260904,
-0.053028338,
-0.0014296019,
0.051438745,
0.025465284,
0.0024763653,
0.024762444,
0.033506636,
0.046712905,
-0.07720086,
-0.043867115,
0.04290285,
0.020185705,
0.060160834,
-0.0538641,
-0.00598599,
0.08269462,
0.102695964,
0.044464804,
-0.018108651,
-0.0076020714,
-0.09503401,
0.024033083,
0.017758038,
0.00809999,
-0.030638821,
-0.094934754,
-0.098738804,
-0.0314479,
-0.0046123876,
-0.1324908,
-0.061987024,
0.029954871,
-0.0017423966,
0.03009696,
-0.030504663,
0.039349448,
0.012448695,
-0.013150999,
0.006029242,
0.060209665,
0.04083634,
0.05273217,
-0.008709646,
-0.052867472
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"The secret string is foobazbar."
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.060630284,
0.06372823,
-0.059383437,
-0.010313639,
-0.11985778,
0.033409074,
0.056847293,
-0.0064553,
0.029896382,
-0.05037607,
0.015193001,
-0.0634204,
0.015119892,
-0.08354324,
0.0092577925,
0.044272587,
-0.024397198,
-0.05100177,
-0.028086444,
-0.07390362,
0.07088186,
0.08101153,
0.006050408,
-0.043090094,
0.010714593,
-0.01581376,
0.0351736,
0.06538307,
0.03639655,
-0.05625738,
0.073681176,
0.04730274,
0.067169026,
-0.01207242,
-0.018193275,
0.0042488067,
0.029168725,
0.0067459582,
0.037927665,
0.0024767139,
0.014044963,
0.022671249,
-0.090508185,
0.041952047,
-0.07933115,
0.031992197,
-0.038355146,
0.037013844,
-0.0036946274,
-0.016986867,
0.03696087,
-0.07697335,
-0.020080294,
0.07733012,
0.04521822,
-0.007816803,
-0.0058926586,
0.009962128,
0.033492323,
0.09000152,
0.016161384,
0.036999356,
-0.039193578,
-0.010969346,
0.023929566,
-0.03698458,
-0.008227196,
0.018780757,
-0.0006967325,
-0.062018193,
-0.030388007,
-0.037649162,
-0.04654288,
0.038450293,
-0.010377299,
-0.032971557,
0.013547814,
-0.059036925,
0.0630603,
0.0159564,
-0.04845087,
-0.069917254,
-0.022502322,
0.04408022,
0.03618941,
0.060470726,
-0.04313285,
0.028797466,
0.0062393937,
0.01027349,
-0.078714885,
-0.091531575,
0.04391341,
0.013202597,
-0.0037814155,
0.0102497,
0.020225797,
0.05634384,
-0.09700619,
0.06577961,
0.047118917,
0.01876648,
0.12445029,
-0.06447121,
-0.012632697,
0.016056264,
0.08604982,
0.024878234,
0.10627678,
-0.043176394,
-0.046339765,
-0.03149599,
-0.001784808,
-0.023469802,
-0.05079461,
0.0046657966,
0.043237828,
0.057146583,
-0.065833576,
0.032975562,
-0.028763266,
0.037831448,
0.00017829033,
0.043322463,
-0.13265091,
0.0263673,
-0.04247752,
-3.3340873e-33,
-0.0022191573,
0.050657377,
0.028066125,
-0.033898965,
-0.0045730886,
-0.034653578,
-0.08628417,
0.043108672,
0.01022734,
0.044009056,
-0.03020062,
-0.0936044,
-0.06522928,
-0.059762992,
0.037560984,
-0.025942331,
-0.06655938,
0.0043691625,
0.018846871,
-0.035582166,
0.02240012,
0.08943218,
0.033568345,
-0.11379316,
0.03822112,
-0.044403847,
0.10261262,
-0.07330182,
0.089390896,
0.056668896,
-0.009407597,
-0.0646505,
0.016652016,
0.007326742,
0.005187682,
0.0051324354,
-0.013595071,
-0.04918112,
-0.06672084,
0.010838405,
0.04638185,
-0.11490209,
-0.055054087,
0.040443793,
-0.032746885,
0.03498173,
-0.023567867,
-0.012213799,
0.048050664,
0.01159698,
0.007860181,
0.03801084,
-0.027765153,
0.003296162,
-0.0033349432,
0.006083357,
0.03200884,
0.048306234,
0.013800832,
0.036165927,
-0.022672432,
0.09197581,
0.029846204,
0.08112345,
-0.08677228,
-0.028041098,
0.0556574,
-0.030357547,
-0.016538681,
0.031826265,
-0.07586954,
-0.009915978,
0.028101236,
0.002207158,
-0.10496646,
-0.023673821,
-0.024204832,
-0.0003132271,
0.0016462951,
-0.037603874,
0.025533162,
-0.05221861,
0.021656586,
0.099111386,
-0.06896361,
-0.018568028,
0.07245527,
-0.10582686,
-0.08505038,
-0.029969748,
-0.015717981,
-0.056855034,
-0.02698479,
-0.06410572,
0.0057078917,
1.2902391e-33,
0.05490771,
-0.036417797,
-0.0023541928,
-0.03591478,
0.106852315,
-0.04931468,
0.037884213,
0.050633065,
-0.083874516,
-0.018756155,
0.0036251817,
0.028974183,
-0.0027879397,
-0.036439158,
0.11148004,
0.051007163,
0.040258586,
0.09245398,
-0.01367112,
-0.070999645,
-0.043213032,
-0.060117763,
-0.03019449,
0.009107182,
-0.044254936,
0.04843456,
0.117205575,
-0.009833911,
0.0023962231,
0.09339494,
-0.059902366,
0.0101377955,
-0.03777244,
-0.04344207,
-0.14677393,
-0.022666233,
-0.008934328,
-0.02157697,
-0.021902358,
-0.06611372,
0.016243221,
0.062620856,
0.01056146,
0.04721975,
-0.087221384,
0.009420561,
-0.017691165,
-0.03847053,
0.010398396,
0.022942957,
0.099518456,
-0.021421565,
0.0016765085,
-0.039359514,
0.01641369,
0.039669517,
-0.119695365,
0.009885617,
0.003855461,
0.018273395,
-0.0454586,
0.0020496584,
0.024263415,
0.016978405,
0.06884217,
-0.027432522,
-0.01813802,
0.053840507,
-0.028815664,
-0.045221787,
0.11472852,
0.019796453,
-0.05785514,
0.016556906,
-0.07362942,
0.04025756,
-0.01510899,
0.0067040483,
-0.049666926,
0.045941774,
0.077951804,
-0.042951427,
0.021852365,
0.063826546,
0.08110754,
-0.070652775,
-0.03245094,
0.09259784,
-0.020451743,
0.0701599,
-0.020740295,
0.09339449,
-0.051164806,
0.039440546,
0.02560772,
-1.6767814e-08,
0.001529873,
0.0080792755,
-0.017666567,
-0.034070052,
0.06805411,
0.07387949,
-0.07592055,
-0.11369049,
-0.022008128,
0.009088418,
0.03108134,
-0.0056734695,
-0.0462051,
0.0037219985,
0.013269294,
-0.03213892,
-0.05557376,
-0.010602884,
0.006751397,
-0.025462827,
-0.0836812,
0.08886153,
0.005159859,
-0.051621262,
-0.051873572,
0.039706588,
-0.042155124,
0.057125967,
0.088910565,
0.049736783,
0.04144574,
0.094677895,
-0.037107926,
-0.06845684,
-0.061673928,
0.09891817,
-0.05952751,
-0.0331722,
-0.026014913,
0.077612035,
0.056150436,
0.010709955,
0.018974187,
0.056079865,
-0.041700333,
-0.02731697,
0.10184176,
-0.036189064,
-0.029914921,
-0.043333948,
0.043660097,
0.018800316,
-0.0042763646,
0.055898346,
-0.0034344571,
0.060258396,
-0.1337251,
0.008184424,
-0.031549457,
0.022398692,
0.037932154,
0.024529235,
0.068037644,
0.07021777
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_create_vector_store_files_duplicate_vector_store_name[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_create_and_retrieve[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"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.009745715,
0.0336304,
-0.10852256,
0.026609872,
-0.006059925,
-0.020473616,
0.06924864,
0.032276772,
-0.115328364,
-0.0005206984,
0.11814912,
0.0119809285,
0.03685764,
-0.10744221,
-0.046515644,
0.0015449026,
-0.06319663,
-0.0464081,
-0.03731879,
-0.02571832,
-0.0002605647,
-0.011890779,
-0.05092556,
0.014111699,
0.02946771,
0.006379115,
-0.012013315,
-0.0024293852,
-0.044318777,
-0.081000976,
0.020095684,
0.05571391,
0.07881666,
0.054973688,
0.20367871,
-0.004309473,
0.038770065,
0.03825524,
-0.0025382712,
-0.00079738133,
0.044761047,
-0.054529086,
-0.008856873,
-0.040780775,
0.011367247,
-0.022404471,
-0.062090557,
0.025587223,
-0.0034454083,
-0.037439276,
-0.062026367,
-0.030812208,
-0.034592524,
-0.014926671,
0.018588405,
0.01343587,
0.08169152,
0.053658433,
-0.03557854,
0.03332595,
-0.016375782,
-0.022215173,
-0.039247524,
0.00094365346,
0.10228942,
-0.043056134,
-0.05220083,
-0.02007382,
0.05480537,
-0.082313724,
-0.14736548,
0.048954602,
-0.021216843,
0.028726585,
-0.06714089,
0.021436092,
-0.023599941,
0.036779854,
0.010577456,
-0.09660043,
-0.063672334,
-0.10277646,
0.027399305,
-0.06292901,
-0.04634418,
0.03991984,
0.026828999,
0.025460068,
-0.013083576,
-0.0026677637,
-0.016529415,
0.01260503,
-0.0064383014,
0.015841363,
-0.017107084,
0.12320288,
-0.007766043,
0.058450412,
0.073625505,
0.03842608,
0.0047420114,
-0.01559851,
0.014189777,
0.07865993,
-0.02635258,
-0.037174642,
0.06787812,
-0.060126685,
0.06111399,
-0.03493127,
-0.009446341,
-0.0061508804,
0.028923118,
-0.093615785,
0.03353643,
-0.0908891,
0.009241143,
0.07092966,
-0.08954646,
0.044945493,
0.040462427,
-0.041673496,
0.007603028,
-0.0066417875,
-0.0727573,
-0.04369056,
0.076850034,
-1.0508806e-33,
-0.019583644,
-0.13087203,
-0.03574567,
0.070223786,
0.081330545,
-0.009436032,
0.046778373,
0.034781482,
-0.09441179,
-0.040857747,
-0.021270562,
-0.10695986,
0.024023224,
0.022781014,
-0.09042501,
-0.035755865,
0.011359137,
0.050059177,
0.005081587,
-0.07676933,
0.05453652,
0.041917715,
-0.009206511,
-0.022437021,
-0.04617263,
-0.038608655,
-0.0003649128,
-0.025092361,
0.03914682,
-0.0072839684,
0.036754888,
-0.011301057,
-0.08863298,
0.059421457,
0.015851097,
0.033407677,
0.05688381,
-0.01203774,
0.027333332,
-0.0095604975,
-0.05030557,
-0.009787593,
0.023205012,
-0.007937713,
0.0039910576,
-0.036422852,
-0.06979184,
0.046075653,
0.056377765,
0.0071928017,
-0.00020658936,
0.017678235,
0.023745911,
-0.0031295703,
0.016370844,
0.027585862,
-0.034401312,
-0.05594278,
0.036442757,
0.035779852,
-0.005324617,
0.0152410185,
-0.090714596,
0.0727646,
0.023438152,
-0.093097225,
0.05842131,
-0.06191377,
0.045555975,
0.076393075,
-0.03519974,
-0.009256825,
0.038682748,
-0.040795814,
0.01768643,
-0.025513096,
0.06860536,
0.08552028,
-0.1023457,
-0.003647399,
-0.0148261795,
-0.0504576,
-0.09065474,
-0.076476775,
-0.008537983,
-0.041119486,
-0.035473906,
-0.061549008,
0.114327796,
-0.09601485,
0.022990141,
0.0022396236,
-0.023026086,
-0.028128348,
0.07969125,
-4.176525e-34,
0.0786638,
0.11484067,
0.016687384,
0.009315665,
0.01664126,
0.024303278,
0.046507545,
-0.043804727,
-0.09136994,
0.10635374,
-0.069488525,
0.018747646,
0.0053492286,
-0.033229284,
0.042339113,
-0.0017468395,
0.053231545,
0.0058223205,
-0.053313456,
0.016506527,
-0.023251828,
0.097519755,
-0.004555821,
0.08866846,
-0.028221438,
-0.012007983,
-0.009742708,
0.061457966,
0.01574456,
-0.0003945739,
0.02444835,
0.06589118,
-0.05477909,
0.048636883,
0.043890003,
-0.06246761,
0.0761539,
0.0067509436,
0.01915008,
0.06994536,
0.02790094,
0.089027435,
-0.02743303,
0.031390857,
0.022712845,
0.081195295,
0.06855677,
0.002355309,
-0.067641854,
0.0070417193,
-0.03452144,
-0.053785603,
-0.030752137,
0.007947853,
-0.02531741,
-0.04066398,
0.03614412,
0.017730458,
-0.0401791,
0.013665839,
0.004815402,
0.009095547,
0.007248343,
0.012753354,
-0.047865536,
-0.046072427,
-0.0140483035,
0.031082965,
-0.034945227,
-0.023550384,
0.033062257,
-0.022966467,
0.0077442336,
0.01593954,
-0.0012224934,
0.0010534981,
-0.015109031,
-0.02159786,
-0.029862734,
0.039838333,
0.06253634,
0.010616784,
-0.027220458,
0.024103748,
-0.0023567104,
0.08531,
0.04843323,
0.090823546,
0.0051263347,
0.020297285,
-0.017391264,
0.04767738,
0.11080086,
0.030030215,
0.029773543,
-1.5454503e-08,
-0.035807595,
-0.12177603,
0.019753786,
0.058543555,
-0.015907632,
0.08578133,
-0.09558482,
-0.001674384,
0.0077319415,
-0.04790153,
0.011759348,
0.0065360577,
-0.032027353,
0.0031026457,
-0.07580573,
-0.039700788,
-0.0017064476,
-0.07095588,
0.04368033,
0.029966792,
0.0039943536,
0.03192335,
0.08119931,
0.038820695,
0.013302761,
0.041675314,
0.04434972,
0.06040389,
-0.10581905,
-0.05287384,
0.050275758,
0.039101597,
0.059991803,
-0.025067795,
-0.019554092,
0.06748807,
0.1250856,
0.059007544,
-0.019899802,
-0.030194843,
-0.046559427,
0.034567233,
-0.02164492,
-0.0332763,
-0.007566738,
-0.10065882,
-0.0639619,
-0.055270903,
-0.01117581,
-0.116718665,
-0.07208091,
0.02320803,
0.027215244,
0.063635156,
-0.05858023,
0.020345286,
0.018325832,
-0.003609524,
0.0069166403,
0.06541716,
0.009575528,
0.046839867,
0.0070611103,
-0.094708405
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_ranking_options[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"machine learning and artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.04308226,
0.008707138,
0.06876158,
0.018115537,
0.04603657,
0.0026118131,
-0.0032358477,
-0.041284926,
-0.09074888,
-0.033087812,
-0.026611822,
0.0077352105,
0.020191023,
-0.03254043,
-0.035847843,
0.031108031,
-0.039247137,
-0.011286401,
-0.109710276,
-0.12942196,
0.018077252,
0.011446383,
-0.07231236,
-0.013655743,
0.035438832,
0.024783252,
0.03387316,
0.0726014,
-0.012643238,
-0.058606703,
0.057943814,
-0.08163548,
0.064962864,
0.0013675748,
-0.06751009,
0.03504323,
-0.044962864,
-0.004789603,
0.039971247,
-0.010461211,
0.019703588,
-0.09856083,
-0.01284534,
0.018876119,
0.09569305,
0.11571406,
-0.040684983,
-0.026837468,
-0.046950106,
0.022655226,
-0.0884734,
-0.023497678,
-0.022986038,
-0.031128721,
-0.052087843,
0.04241795,
0.011578454,
0.06702011,
0.027121129,
-0.0021518404,
0.04675332,
-0.082024105,
-0.038331598,
0.05215799,
0.097757615,
-0.0006708623,
-0.051935766,
0.09100271,
-0.016111707,
-0.06877312,
0.00767068,
0.076737314,
-0.0017499238,
0.014369293,
0.038031887,
-0.0044654603,
0.011287075,
0.0006178959,
0.08834809,
-0.05933476,
-0.042706404,
-0.048178285,
-0.053068914,
0.033110976,
0.008051986,
-0.042581946,
-0.038104057,
-0.007202849,
0.010891519,
-0.05466173,
0.03903238,
-0.06774145,
-0.02356764,
-0.03883483,
0.03464186,
0.015297014,
0.0073803077,
-0.12351391,
0.036168184,
0.13193323,
-0.06441449,
0.033508655,
-0.01435515,
0.0014314495,
0.031048443,
-0.03981852,
0.0236718,
-0.0028333638,
0.096959464,
-0.13331193,
-0.054209094,
0.019610135,
0.06984815,
-0.05347757,
0.0018131314,
0.02127606,
0.01981612,
0.036502477,
0.008825069,
0.018954003,
-0.07161326,
-0.018733062,
0.031044634,
0.09102944,
0.016508427,
-0.08625295,
-0.08300717,
-1.4044197e-34,
-0.072007515,
-0.045496386,
-0.027986562,
0.05823018,
-0.010462877,
-0.06121516,
0.026053715,
-0.06574638,
0.029178392,
0.012307141,
-0.06338016,
0.040593755,
0.03648161,
0.01977942,
0.08755496,
0.028216325,
0.044194777,
0.076237544,
0.02949726,
-0.0022650051,
0.04304541,
0.025918182,
1.2261046e-05,
-0.038463842,
-0.0161955,
0.03338553,
0.02112944,
-0.023382189,
0.009846733,
0.033575017,
0.030112585,
0.060389582,
-0.06522927,
-0.016030189,
0.019156763,
-0.002600835,
-0.04663393,
0.02794595,
0.021004112,
0.0074595963,
-0.048745092,
-0.0070450655,
0.019834043,
0.016411202,
-0.06381404,
0.031237993,
0.091976196,
-0.0313931,
0.022238847,
-0.015018542,
0.0025784613,
-0.031382624,
-0.0152902305,
-0.025491757,
0.08233924,
0.14333151,
-0.0255008,
-0.005104579,
-0.02309693,
-0.03117742,
0.06995927,
0.030787794,
0.04810884,
0.037135385,
0.0068392092,
0.06759879,
0.049763102,
0.008472162,
0.07170584,
0.0076969583,
-0.005139827,
-0.0031728086,
0.024646448,
-0.06879641,
0.05249289,
-0.009404918,
0.10184627,
-0.013639711,
-0.022681188,
0.021382388,
-0.09593746,
0.024071718,
-0.072101034,
-0.04462981,
0.033456877,
-0.03942254,
0.020099705,
-0.07495305,
-0.008311987,
0.013811793,
-0.09847922,
0.0336409,
0.08235891,
-0.0034134828,
-0.05005179,
-2.0283256e-33,
-0.13664234,
0.06463093,
0.05221015,
0.10102781,
0.016344123,
-0.01269384,
-0.09024102,
-0.023596523,
0.0057664234,
0.10294541,
-0.025930807,
-0.040247634,
0.034446176,
0.019228913,
-0.056902077,
0.019905953,
0.018969242,
-0.039362065,
0.011287794,
0.056024995,
-0.016000811,
0.058928564,
-0.038211577,
-0.030445429,
-0.02130076,
0.031401403,
-0.021228284,
-0.01400283,
-0.051042903,
0.048970606,
0.018451849,
-0.015488385,
-0.05033241,
0.053844187,
-0.050984643,
0.016940817,
-0.032773405,
-0.02502497,
0.000826887,
0.10213942,
0.04724571,
0.010156266,
-0.11653258,
0.012165439,
-0.029735534,
-0.09959623,
-0.052066926,
0.06851813,
0.054645896,
-0.066007115,
0.025503889,
0.013539478,
0.008429433,
-0.10756056,
-0.08184448,
0.07179834,
0.007978949,
-0.013011469,
0.020322459,
0.07827889,
-0.07320297,
-0.1153648,
0.04087073,
0.04355079,
-0.0012279376,
0.045840748,
-0.004366462,
0.074786335,
-0.017625354,
-0.046014115,
0.022716347,
0.057738,
-0.015408269,
0.007771719,
-0.04381374,
-0.05289107,
-0.08783473,
0.016243288,
-0.018398289,
-0.05679973,
0.036058675,
-0.040418148,
0.039242174,
0.083593465,
-0.019223504,
0.05582025,
0.04756948,
-0.07378718,
0.03371102,
-0.08680738,
-0.010659349,
0.0524085,
0.009771544,
0.023841262,
-0.086208895,
-1.7164519e-08,
0.021028979,
-0.051292755,
0.11877283,
-0.04687027,
0.06566496,
0.058750976,
-0.050496,
0.055720143,
-0.040577173,
0.055665523,
0.025019526,
-0.001681203,
-0.031047702,
0.022228474,
0.028109053,
0.03163934,
-0.025502652,
0.020898303,
-0.023064507,
0.013436037,
0.07504084,
0.022279648,
0.028908938,
-0.014271217,
0.025474275,
-0.051414162,
-0.014502164,
0.014646399,
-0.028023712,
0.08406334,
-0.07755092,
0.038713943,
-0.0043370826,
0.025676368,
0.12571524,
0.06996381,
0.0059321956,
-0.10410214,
-0.041439336,
0.016119901,
-0.040744506,
0.017772397,
-0.09114363,
-0.026066387,
0.055598073,
0.016705057,
0.016444646,
-0.11935461,
0.02789905,
0.0151745565,
0.042357437,
0.06817164,
0.05782822,
0.063278705,
0.06748475,
0.059781626,
0.06468886,
-0.06749451,
-0.035589237,
0.0640055,
0.008595763,
0.003157698,
0.009343837,
-0.08392565
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_files_on_creation[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.028407024,
0.08176727,
-0.07856116,
0.027924549,
0.05008439,
-0.035268802,
-0.0040619136,
0.029315198,
-0.05775003,
0.013769637,
0.14610882,
-0.012019041,
-0.024392882,
-0.05509032,
-0.02661779,
-0.013253934,
-0.109151706,
-0.037233494,
-0.0036058167,
0.04766495,
0.06212885,
0.0070259646,
-0.015513743,
-0.008010851,
0.037648663,
0.01587603,
-0.041856695,
0.09732178,
-0.025641596,
-0.11368298,
0.03550726,
0.07043342,
0.016779423,
0.02220752,
0.123395406,
0.0077137193,
0.12550895,
0.008077936,
-0.026158499,
0.0028612812,
0.018155744,
-0.04666325,
0.041025575,
0.0013476727,
0.0019516364,
0.008663665,
0.016689047,
0.02200178,
0.0020768014,
-0.032861207,
-0.086455174,
0.008047145,
-0.07434091,
-0.016292974,
0.06051878,
0.005966867,
0.0160179,
0.021412006,
0.009540338,
0.03177335,
0.023032434,
0.03437097,
-0.04224765,
0.024748176,
0.116213955,
-0.024936162,
-0.03895259,
-0.024991278,
-0.020854436,
-0.08835937,
-0.15073228,
0.020921277,
-0.022518696,
0.0023868105,
0.0057663955,
-0.0015790414,
-0.11985628,
-0.0029912454,
0.0550998,
-0.11830636,
-0.058846988,
-0.15046737,
0.018624697,
-0.0093440395,
-0.028901154,
0.08400474,
0.0437436,
-0.0006745939,
-0.052540295,
0.00024754918,
0.040431518,
0.0066545215,
0.02609114,
0.051891107,
0.012606882,
0.061448827,
0.013889043,
0.038454182,
0.048222367,
0.104106456,
-0.026478294,
-0.021488149,
-0.020865437,
0.05061779,
-0.05171592,
-0.07573864,
0.057483904,
-0.049993664,
0.06528295,
-0.02875688,
0.038766492,
-0.062760465,
-0.0144796055,
-0.063462086,
0.06642258,
-0.014848135,
-0.03523116,
0.0774014,
-0.039893247,
0.032182425,
0.10171478,
-0.022525396,
-0.059299074,
0.00038746602,
-0.05779858,
-0.07034273,
0.06375495,
-4.088634e-33,
-0.021801252,
-0.07985834,
-0.013881648,
0.14923096,
0.02520313,
-0.042283125,
-0.0067697223,
0.054634638,
-0.09223034,
0.0081036305,
-0.03861765,
-0.117698364,
0.012977803,
0.034548674,
-0.01703291,
0.011910173,
0.012945288,
0.04277919,
-0.017591223,
-0.0184066,
0.06513148,
0.04050013,
-0.02252127,
-0.060939074,
-0.018603502,
0.011679816,
0.01410369,
-0.06763908,
0.08543174,
0.030138582,
0.010859261,
-0.054844614,
-0.024129191,
0.048327282,
0.00750549,
0.013356204,
0.024558878,
-0.005942624,
-0.045620095,
-0.00484637,
0.004418298,
-0.0023806267,
0.013590539,
-0.016870445,
0.06959721,
-0.07736302,
0.02058481,
0.0048155314,
0.055696823,
0.0131223425,
-0.011748222,
0.040935397,
0.007458848,
0.042072233,
0.010358565,
0.019406458,
0.011092792,
0.017259602,
0.018278012,
0.077335365,
0.019612921,
0.05268688,
-0.05863009,
0.039751627,
-0.050250556,
-0.048913844,
-0.05265637,
-0.09227304,
0.0755598,
0.08097828,
-0.022257954,
-0.042141132,
0.056546185,
0.023585746,
0.0015263582,
-0.049815144,
0.002336895,
0.028626408,
-0.06897293,
-0.04780049,
-0.048637427,
-0.076585636,
-0.03285766,
-0.046012525,
-0.0573021,
-0.080889866,
-0.008056378,
-0.0936112,
0.051229417,
-0.058302302,
-0.0005942833,
0.02222621,
-0.046907477,
-0.08964737,
0.1195762,
2.0452953e-33,
0.012159685,
0.086426094,
-0.023217503,
0.002771192,
-0.0010614472,
0.03487195,
0.07328719,
-0.049876485,
-0.041938163,
0.13486409,
-0.00690217,
0.006254477,
0.059122436,
-0.028893106,
0.09141587,
-0.018487127,
0.0077112317,
-0.044207573,
-0.0251735,
-0.014999972,
-0.035417248,
0.12413253,
0.13118097,
0.081015825,
-0.03327241,
0.003976432,
0.026454262,
0.026598025,
0.017349144,
-0.0036153824,
0.035460044,
0.05956128,
-0.124593176,
0.021954069,
0.025635097,
-0.11063109,
0.096061416,
-0.06731725,
-0.011819293,
0.042329434,
0.03790837,
0.10582649,
0.0073426333,
0.06629678,
0.022922922,
0.0494007,
0.14639522,
-0.0067070075,
0.004380622,
-0.029196544,
-0.009010303,
-0.08637028,
0.03588363,
0.0029887543,
-0.029351206,
0.07019312,
0.014898416,
0.028345235,
-0.040354595,
0.01916304,
0.015590835,
0.028637327,
-0.019529723,
-0.018309733,
-0.0054176697,
-0.093132764,
-0.06116049,
0.038816936,
0.02793884,
0.034137025,
-0.027511358,
0.010699668,
-0.05521562,
-0.07380209,
0.021521263,
-0.015450832,
-0.024988633,
-0.004755674,
0.030465573,
-0.024057997,
0.0341225,
-0.0103128245,
-0.012666524,
0.03628323,
-0.0044518244,
-0.014977736,
0.02790076,
0.0978009,
-0.026436698,
-0.005187212,
-0.019124882,
0.06205225,
0.052137945,
0.037870288,
0.012578256,
-1.705626e-08,
-0.05000592,
-0.08913878,
-0.0035273295,
-0.01577607,
-0.021846429,
0.07184407,
-0.050185654,
-0.010643527,
-0.030602882,
-0.01577121,
0.013220822,
-0.0025653532,
-0.04210823,
0.009286525,
-0.041129403,
-0.029615805,
0.002200794,
-0.032989334,
-0.05041253,
-0.021504797,
-0.0068345494,
0.0084738685,
0.03568697,
0.0252117,
-0.016504692,
0.04915123,
0.018349955,
0.049084183,
-0.058165494,
-0.015055481,
0.045743454,
0.049920842,
0.020444298,
-0.052004594,
-0.033592116,
0.061816722,
0.111411005,
0.07770497,
0.022457859,
0.0025742552,
-0.043929543,
0.008576763,
-0.036182683,
0.029673496,
-0.017278075,
-0.09458994,
-0.057882637,
-0.06579892,
-0.06124832,
-0.10455079,
-0.02925637,
0.0013624659,
0.0060532107,
0.04077331,
-0.036694046,
0.016800206,
0.005279432,
0.030968234,
-0.05446385,
0.0048696757,
0.070877954,
0.06684445,
0.017715273,
-0.029237686
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 2"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.028407024,
0.08176727,
-0.07856116,
0.027924549,
0.05008439,
-0.035268802,
-0.0040619136,
0.029315198,
-0.05775003,
0.013769637,
0.14610882,
-0.012019041,
-0.024392882,
-0.05509032,
-0.02661779,
-0.013253934,
-0.109151706,
-0.037233494,
-0.0036058167,
0.04766495,
0.06212885,
0.0070259646,
-0.015513743,
-0.008010851,
0.037648663,
0.01587603,
-0.041856695,
0.09732178,
-0.025641596,
-0.11368298,
0.03550726,
0.07043342,
0.016779423,
0.02220752,
0.123395406,
0.0077137193,
0.12550895,
0.008077936,
-0.026158499,
0.0028612812,
0.018155744,
-0.04666325,
0.041025575,
0.0013476727,
0.0019516364,
0.008663665,
0.016689047,
0.02200178,
0.0020768014,
-0.032861207,
-0.086455174,
0.008047145,
-0.07434091,
-0.016292974,
0.06051878,
0.005966867,
0.0160179,
0.021412006,
0.009540338,
0.03177335,
0.023032434,
0.03437097,
-0.04224765,
0.024748176,
0.116213955,
-0.024936162,
-0.03895259,
-0.024991278,
-0.020854436,
-0.08835937,
-0.15073228,
0.020921277,
-0.022518696,
0.0023868105,
0.0057663955,
-0.0015790414,
-0.11985628,
-0.0029912454,
0.0550998,
-0.11830636,
-0.058846988,
-0.15046737,
0.018624697,
-0.0093440395,
-0.028901154,
0.08400474,
0.0437436,
-0.0006745939,
-0.052540295,
0.00024754918,
0.040431518,
0.0066545215,
0.02609114,
0.051891107,
0.012606882,
0.061448827,
0.013889043,
0.038454182,
0.048222367,
0.104106456,
-0.026478294,
-0.021488149,
-0.020865437,
0.05061779,
-0.05171592,
-0.07573864,
0.057483904,
-0.049993664,
0.06528295,
-0.02875688,
0.038766492,
-0.062760465,
-0.0144796055,
-0.063462086,
0.06642258,
-0.014848135,
-0.03523116,
0.0774014,
-0.039893247,
0.032182425,
0.10171478,
-0.022525396,
-0.059299074,
0.00038746602,
-0.05779858,
-0.07034273,
0.06375495,
-4.088634e-33,
-0.021801252,
-0.07985834,
-0.013881648,
0.14923096,
0.02520313,
-0.042283125,
-0.0067697223,
0.054634638,
-0.09223034,
0.0081036305,
-0.03861765,
-0.117698364,
0.012977803,
0.034548674,
-0.01703291,
0.011910173,
0.012945288,
0.04277919,
-0.017591223,
-0.0184066,
0.06513148,
0.04050013,
-0.02252127,
-0.060939074,
-0.018603502,
0.011679816,
0.01410369,
-0.06763908,
0.08543174,
0.030138582,
0.010859261,
-0.054844614,
-0.024129191,
0.048327282,
0.00750549,
0.013356204,
0.024558878,
-0.005942624,
-0.045620095,
-0.00484637,
0.004418298,
-0.0023806267,
0.013590539,
-0.016870445,
0.06959721,
-0.07736302,
0.02058481,
0.0048155314,
0.055696823,
0.0131223425,
-0.011748222,
0.040935397,
0.007458848,
0.042072233,
0.010358565,
0.019406458,
0.011092792,
0.017259602,
0.018278012,
0.077335365,
0.019612921,
0.05268688,
-0.05863009,
0.039751627,
-0.050250556,
-0.048913844,
-0.05265637,
-0.09227304,
0.0755598,
0.08097828,
-0.022257954,
-0.042141132,
0.056546185,
0.023585746,
0.0015263582,
-0.049815144,
0.002336895,
0.028626408,
-0.06897293,
-0.04780049,
-0.048637427,
-0.076585636,
-0.03285766,
-0.046012525,
-0.0573021,
-0.080889866,
-0.008056378,
-0.0936112,
0.051229417,
-0.058302302,
-0.0005942833,
0.02222621,
-0.046907477,
-0.08964737,
0.1195762,
2.0452953e-33,
0.012159685,
0.086426094,
-0.023217503,
0.002771192,
-0.0010614472,
0.03487195,
0.07328719,
-0.049876485,
-0.041938163,
0.13486409,
-0.00690217,
0.006254477,
0.059122436,
-0.028893106,
0.09141587,
-0.018487127,
0.0077112317,
-0.044207573,
-0.0251735,
-0.014999972,
-0.035417248,
0.12413253,
0.13118097,
0.081015825,
-0.03327241,
0.003976432,
0.026454262,
0.026598025,
0.017349144,
-0.0036153824,
0.035460044,
0.05956128,
-0.124593176,
0.021954069,
0.025635097,
-0.11063109,
0.096061416,
-0.06731725,
-0.011819293,
0.042329434,
0.03790837,
0.10582649,
0.0073426333,
0.06629678,
0.022922922,
0.0494007,
0.14639522,
-0.0067070075,
0.004380622,
-0.029196544,
-0.009010303,
-0.08637028,
0.03588363,
0.0029887543,
-0.029351206,
0.07019312,
0.014898416,
0.028345235,
-0.040354595,
0.01916304,
0.015590835,
0.028637327,
-0.019529723,
-0.018309733,
-0.0054176697,
-0.093132764,
-0.06116049,
0.038816936,
0.02793884,
0.034137025,
-0.027511358,
0.010699668,
-0.05521562,
-0.07380209,
0.021521263,
-0.015450832,
-0.024988633,
-0.004755674,
0.030465573,
-0.024057997,
0.0341225,
-0.0103128245,
-0.012666524,
0.03628323,
-0.0044518244,
-0.014977736,
0.02790076,
0.0978009,
-0.026436698,
-0.005187212,
-0.019124882,
0.06205225,
0.052137945,
0.037870288,
0.012578256,
-1.705626e-08,
-0.05000592,
-0.08913878,
-0.0035273295,
-0.01577607,
-0.021846429,
0.07184407,
-0.050185654,
-0.010643527,
-0.030602882,
-0.01577121,
0.013220822,
-0.0025653532,
-0.04210823,
0.009286525,
-0.041129403,
-0.029615805,
0.002200794,
-0.032989334,
-0.05041253,
-0.021504797,
-0.0068345494,
0.0084738685,
0.03568697,
0.0252117,
-0.016504692,
0.04915123,
0.018349955,
0.049084183,
-0.058165494,
-0.015055481,
0.045743454,
0.049920842,
0.020444298,
-0.052004594,
-0.033592116,
0.061816722,
0.111411005,
0.07770497,
0.022457859,
0.0025742552,
-0.043929543,
0.008576763,
-0.036182683,
0.029673496,
-0.017278075,
-0.09458994,
-0.057882637,
-0.06579892,
-0.06124832,
-0.10455079,
-0.02925637,
0.0013624659,
0.0060532107,
0.04077331,
-0.036694046,
0.016800206,
0.005279432,
0.030968234,
-0.05446385,
0.0048696757,
0.070877954,
0.06684445,
0.017715273,
-0.029237686
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_list_files[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_with_chunks[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.024330618,
0.016706783,
0.037677176,
-0.00915746,
-0.030534461,
-0.017140884,
0.074272,
0.0456916,
-0.009377196,
0.009883053,
-0.0056895507,
0.007668296,
0.039537333,
0.015226257,
-0.083189555,
0.019439526,
-0.022046678,
-0.033254813,
-0.18105465,
-0.13025087,
-0.0022671346,
0.013451522,
-0.024325468,
-0.0370128,
0.0020083552,
0.08566712,
0.0047639925,
-0.0033431018,
-0.006082307,
-0.11575565,
0.06682902,
-0.018777572,
0.08786827,
-0.0074177794,
-0.093573004,
0.06146399,
-0.08110609,
0.012222862,
0.03971064,
-0.0026197461,
-0.04657111,
-0.08183902,
0.03959615,
0.015451151,
0.04370617,
0.103643835,
-0.058421485,
0.036699355,
-0.052699573,
0.040590122,
-0.12578927,
0.006500531,
-0.03583627,
-0.010050973,
-0.023851713,
0.045972254,
0.014605586,
0.019414552,
0.028465148,
-0.055030964,
0.024210233,
-0.052867457,
0.015230711,
-0.0043921247,
0.092372045,
0.033849865,
-0.04737281,
0.03204496,
0.001322036,
-0.051211488,
0.025862284,
0.08155327,
0.04092595,
0.019154705,
0.056453932,
-0.052758913,
0.030533386,
-0.01663434,
0.07877244,
-0.054262977,
-0.042149354,
-0.045443602,
-0.052689902,
0.11225497,
0.01989102,
-0.042375352,
-0.01168115,
0.024315914,
0.01915792,
-0.016550383,
-0.01030883,
-0.08545277,
0.023834355,
-0.042181373,
-0.02503509,
0.062114798,
-0.0045557353,
-0.15369569,
0.001106691,
0.19423288,
-0.0338511,
0.026152972,
-0.02032091,
0.0012884078,
-0.0010269672,
-0.02411262,
0.017495485,
-0.009808713,
0.07037937,
-0.13769862,
-0.11118059,
-0.01736481,
0.06603106,
-0.05188892,
0.0019610007,
0.014606686,
0.060775463,
0.096280165,
0.013551965,
0.019343173,
-0.00010512453,
-0.026652312,
-0.009341819,
0.07083247,
-0.0034617546,
-0.062412772,
-0.044611085,
-8.796679e-34,
-0.111884,
-0.04256611,
0.027425196,
0.06574074,
0.002830377,
-0.044104468,
0.005238822,
-0.036899913,
-0.015583552,
0.0206543,
-0.059225976,
0.007236511,
-0.028716031,
0.040467348,
0.13387093,
0.006795838,
-0.01636956,
0.082198486,
-0.02261007,
-0.03641293,
0.06524453,
0.021011814,
-0.005472363,
-0.038433436,
0.001462021,
0.0073671984,
0.016773427,
-0.062663026,
0.035388503,
-0.014395795,
0.027888605,
0.0837546,
-0.027772024,
-0.0036210797,
0.03903557,
-0.026879627,
-0.018737236,
0.019059159,
0.06522148,
0.0070414003,
0.004749159,
-0.0030224407,
0.040062208,
0.028016094,
-0.004660955,
0.012264517,
0.08708117,
-0.0070171114,
-0.03749808,
0.011326775,
0.015419708,
0.013775354,
0.017958472,
-0.009817919,
0.09011542,
0.05170552,
-0.034259036,
0.0043903207,
-0.01884889,
-0.031481344,
0.08216297,
0.016875258,
-0.022163702,
0.06844141,
0.01581623,
0.020322658,
0.0063856863,
0.016461994,
0.12718283,
0.014996434,
-0.010813858,
0.0017669421,
0.03166716,
-0.044353984,
-0.05225622,
0.022843942,
0.050988898,
-0.018916955,
0.0027930918,
-0.033645593,
-0.13571611,
-0.027015164,
-0.035672266,
-0.033537813,
0.047864296,
-0.0054381513,
0.021346755,
-0.040034927,
0.019374551,
0.012011466,
-0.04336231,
0.00054701004,
0.034879614,
0.017960642,
-0.062501945,
8.224154e-34,
-0.09450138,
0.013776636,
-0.025351105,
0.098992504,
0.045503527,
-0.02053458,
-0.029694881,
-0.059200566,
0.042453792,
0.0844487,
-0.043211546,
-0.0077362363,
0.049354795,
0.04203366,
-0.036539596,
0.014424774,
0.040357023,
-0.058971472,
0.010022987,
0.059877146,
-0.02790864,
0.034927685,
-0.087597504,
-0.060616262,
-0.0048867166,
0.08776906,
-0.0053599468,
-0.021816833,
-0.048162397,
0.046919785,
0.0083988905,
-0.0517289,
-0.020422187,
0.08581073,
-0.022597926,
0.034425046,
-0.014506674,
0.0031332907,
-0.04651877,
0.030281488,
0.039713897,
0.02969227,
-0.09310218,
0.051527865,
0.007809,
-0.05700871,
-0.041792583,
0.08987064,
-0.00813404,
-0.04082285,
-0.053487595,
-0.034378976,
-0.045253906,
-0.09715307,
-0.058194414,
0.06093547,
-0.009079956,
0.006918499,
0.012345728,
0.062036473,
-0.0060238577,
-0.0864295,
0.05872831,
0.053304974,
-0.05352623,
0.039521407,
-0.04498403,
0.0727911,
-0.039616212,
-0.05134442,
0.10334881,
0.02176773,
0.00016648973,
0.009423309,
0.022016358,
-0.006902813,
-0.128883,
-0.009864072,
-0.036396757,
-0.042481646,
0.004420737,
-0.047660243,
0.0065179355,
0.102602735,
-0.053166825,
0.07328581,
0.015810944,
-0.029149039,
0.025130944,
-0.063055776,
-0.043462534,
0.06719971,
0.014921177,
-0.0010985207,
-0.09869465,
-1.4682753e-08,
0.004611013,
-0.06715223,
0.07644809,
-0.019802453,
0.06737909,
0.044783685,
-0.050963327,
-0.0077186874,
-0.029319718,
0.028867716,
0.018877175,
-0.024279349,
0.04412064,
0.04416273,
0.03432814,
0.046517964,
0.02158077,
-0.001748483,
-0.0029956794,
0.014355785,
0.12525895,
0.03431845,
-0.014617591,
0.039184693,
-0.0023036227,
-0.014352919,
0.01010173,
0.02430961,
-0.041730728,
0.08832413,
-0.031459343,
0.030073628,
-0.0029376182,
0.0049478672,
0.09588392,
0.09396655,
0.01412568,
-0.077148266,
-0.039246846,
-0.01064901,
-0.008556093,
0.06409403,
-0.033037152,
-0.03049978,
0.0945846,
-0.008954658,
-0.029921891,
-0.132985,
0.059934624,
-0.011668423,
0.0071737366,
0.035627652,
0.0041028745,
0.056198087,
0.07656151,
-0.010067092,
0.05678312,
0.023536043,
-0.063770495,
0.08934554,
0.043756966,
0.04337246,
0.046287052,
-0.07039028
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 2,
"total_tokens": 2
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_list_files[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What is the secret string?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07473014,
0.08137506,
-0.06463602,
0.011821943,
-0.07454815,
0.021821007,
0.077573344,
0.012804661,
0.05853777,
-0.014141324,
0.053993534,
-0.026554074,
-0.018055506,
-0.060447972,
-0.019253474,
-0.006501444,
-0.047272332,
-0.048944764,
-0.090516366,
-0.06656194,
0.09287066,
0.02129739,
-0.013401809,
-0.006629013,
0.0079892,
0.016818035,
0.03971694,
0.021875564,
0.014873574,
-0.039426163,
0.025255844,
-0.036836684,
0.016627828,
0.008789532,
-0.053503897,
0.03616121,
-0.034633957,
-0.009877797,
0.064843215,
-0.01517806,
0.020897496,
-0.07135096,
-0.008519908,
0.05118655,
-0.062102985,
0.059486073,
-0.047937352,
0.07045817,
-0.024867272,
-0.010756205,
0.06538509,
-0.03693754,
-0.08240387,
0.08169191,
0.017090658,
0.012944557,
-0.047139525,
0.0025796075,
0.008701712,
0.099866174,
0.04969699,
-0.025922626,
-0.017354922,
0.03395182,
0.038391408,
-0.054247838,
0.008610521,
-0.04077977,
0.0265637,
-0.07186012,
-0.019953186,
-0.041191205,
-0.07246228,
0.00041248833,
0.018758524,
0.023036895,
0.01662864,
-0.06335885,
0.03495032,
0.050063577,
0.00043262896,
-0.06176693,
0.0062733325,
0.11142063,
0.0040838965,
0.085737824,
0.023284689,
0.05699812,
-0.03149832,
-0.013344509,
-0.045138564,
-0.117300816,
0.016063986,
-0.016894838,
-0.028934335,
0.03575864,
-0.05156192,
0.032958068,
-0.11266628,
0.06640015,
0.037839692,
0.022948038,
0.058071073,
-0.039643735,
-0.03247236,
0.017690921,
-0.005001274,
0.019046135,
0.07745316,
-0.020402163,
-0.020310633,
-0.009519755,
0.0031459313,
-0.0045639877,
-0.029116316,
0.033835515,
0.00050839526,
0.06419946,
0.010721198,
0.124151744,
-0.0053820186,
0.00491648,
-0.059696514,
0.029483523,
-0.13409872,
0.016187217,
-0.048092023,
-6.6084764e-33,
0.012305612,
0.060384244,
0.036461998,
-0.035974216,
-0.04197416,
0.012333701,
-0.084805995,
0.012502633,
0.02794982,
0.0861082,
-0.030791838,
-0.061355945,
-0.0009604986,
-0.0252044,
0.045444816,
-0.027590565,
-0.009594973,
0.006712001,
0.043692384,
-0.021483036,
0.003300438,
0.11860881,
0.047044385,
-0.1348901,
0.025469579,
-0.01029819,
0.0022393467,
-0.061863262,
0.10386513,
0.018658707,
-0.0017492755,
-0.051914047,
0.046442248,
0.03761067,
0.033752125,
0.006650237,
0.022015076,
-0.07834835,
-0.008209136,
0.027432231,
0.017393896,
-0.07524756,
0.006497012,
0.027272953,
0.0005804994,
-0.010941825,
-0.020050043,
-0.00012092298,
0.013705002,
0.004699541,
0.022770848,
0.015477994,
-0.0142482165,
-0.013953546,
0.015865315,
-0.023075614,
0.03379947,
-0.039221376,
-0.043229815,
0.02998769,
-0.01652291,
0.06981088,
0.04606923,
0.05332633,
-0.055300076,
0.02511626,
0.014049543,
-0.09398743,
0.03590562,
0.029452223,
-0.13200304,
-0.005059034,
-0.03784268,
-0.03180819,
-0.095502876,
-0.027853556,
0.0024331037,
-0.007881495,
0.058296,
-0.031999517,
-0.06077097,
-0.023381822,
-0.00048603877,
0.13765746,
-0.060579,
-0.008109843,
-0.034873307,
-0.1024547,
-0.009072849,
-0.018931676,
-0.0016711762,
-0.07710289,
-0.043332253,
-0.03619527,
0.03958017,
3.0217083e-33,
0.0050329794,
0.00016030145,
-0.063078895,
0.012225751,
0.10637338,
0.015972024,
0.006653195,
0.01880781,
-0.04708357,
0.045863643,
0.0076015075,
0.03243478,
0.032097474,
-0.020893326,
0.10697852,
0.0075498912,
0.036074348,
0.1462344,
0.03779065,
-0.043190572,
-0.02176097,
-0.009340132,
-0.06983617,
0.015578788,
0.021121953,
0.030661412,
0.08434581,
-0.09288574,
0.008169474,
0.078080945,
-0.081626564,
0.011895231,
0.017099649,
0.0040119104,
-0.14145434,
0.0040375097,
0.046316408,
0.008959473,
-0.0056506568,
-0.055587813,
0.028007837,
0.055937108,
0.062269785,
0.08602392,
-0.12157818,
0.021943888,
-0.0050934856,
0.029819332,
-0.012127162,
0.048801802,
0.06409215,
-0.041438665,
0.01809265,
-0.028214281,
-0.0213588,
0.05564267,
-0.1547868,
0.027465124,
0.018855799,
0.04327939,
0.011500479,
0.017364705,
-0.023216385,
0.051007293,
0.02946264,
0.012533944,
-0.04542834,
-0.002238765,
-0.05611544,
-0.0789272,
0.07960444,
-0.020431034,
-0.0762138,
0.011588508,
-0.035614885,
-0.04803985,
-0.06607436,
-0.057365946,
-0.040188126,
0.07176218,
0.03135825,
0.02303279,
-0.023997622,
0.023614945,
0.09607302,
-0.06843066,
0.014260722,
0.08802569,
-0.037736766,
0.029445928,
-0.028643936,
0.10217973,
-0.0660917,
0.022864237,
0.042151757,
-1.4814046e-08,
0.030838449,
0.043877687,
-0.0245681,
-0.09818859,
0.056659035,
0.0929652,
-0.010337853,
-0.0983916,
0.018008571,
-0.0131424805,
0.026400762,
0.008793538,
-0.05285605,
-0.042175982,
0.030133193,
0.01710666,
-0.06242493,
-0.018753909,
-0.015986755,
-0.018400662,
-0.026477808,
0.010281372,
-0.030476814,
-0.084556945,
-0.05402664,
0.010030052,
0.029531356,
0.13555466,
0.033426728,
0.12098221,
0.040777553,
0.008206964,
-0.018235989,
-0.0568263,
-0.1289943,
0.12416113,
-0.053454727,
-0.038151894,
0.030221034,
0.019807614,
0.047819767,
0.029434063,
0.0015704447,
0.0611775,
-0.05557245,
-0.030236417,
0.10799873,
-0.07073352,
-0.08215229,
0.004518122,
-0.015573616,
-0.013696145,
-0.0023438279,
0.026377691,
-0.015769389,
0.016251203,
-0.04062322,
-0.013962793,
-0.08309221,
0.031991288,
0.049991824,
-0.0038595141,
0.07031122,
0.0049263495
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[openai_client-emb=ollama/all-minilm:l6-v2:dim=384-test_case2]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Why are data structures important?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.003961408,
0.051414188,
-0.00058039324,
-0.03805786,
0.00026862609,
-0.07164569,
-0.032947958,
0.029143414,
0.0895043,
0.027018296,
0.022992423,
0.029479899,
0.013462918,
0.021877697,
0.024697151,
0.023186686,
-0.06790505,
0.042193525,
-0.0668863,
-0.04484601,
-0.019504927,
-0.017638002,
-0.047011577,
0.010105266,
-0.035193082,
0.12793653,
-0.03992006,
-0.03702981,
0.021819357,
-0.06665871,
0.020533124,
0.03142357,
0.121719204,
0.037876442,
-0.075640336,
0.0359664,
0.11100785,
-0.02567441,
-0.07788109,
0.016981006,
-0.08081605,
0.042523988,
0.008232587,
0.0731737,
0.011123085,
0.016207846,
0.01944517,
-0.057269264,
-0.026940528,
0.027561199,
-0.103662655,
0.06181235,
-0.028062372,
0.04553612,
0.038513146,
0.10225101,
0.010200513,
0.003872203,
-0.074381135,
-0.0097752875,
-0.014599097,
0.0054576746,
-0.04897588,
0.024681844,
0.08043012,
-0.0014103616,
0.0008604012,
0.0016741438,
0.016251745,
0.00360708,
0.058014695,
-0.010049014,
-0.0084027,
0.06814959,
0.033971835,
-0.011656133,
-0.04935883,
-0.03459291,
0.022477727,
0.01610207,
0.025287844,
0.03501659,
-0.018194117,
0.06807382,
0.059983365,
-0.025374522,
0.04583719,
-0.04297365,
-0.104865946,
-0.028109012,
0.079001896,
-0.017114554,
0.012419278,
0.04061318,
-0.020101532,
0.026956845,
0.041828763,
-0.044170532,
0.08095696,
0.021788325,
0.081747636,
0.033276387,
0.021741632,
0.092068955,
-0.05207143,
-0.13620017,
0.013549487,
-0.019821124,
-0.036206715,
-0.050286006,
-0.032959178,
0.04662646,
-0.062424622,
-0.056837536,
-0.027646665,
-0.15120761,
-0.093959294,
-0.010999317,
-0.02427833,
-0.046769585,
-0.002897303,
-0.06647176,
-0.025597623,
0.018255977,
0.0020313214,
-0.06226326,
-0.117481604,
-4.4295206e-33,
-0.009129055,
-0.037181977,
-0.02604801,
0.052037112,
0.00087297254,
0.0065994835,
-0.0045263134,
-0.040167294,
0.0041152886,
0.042845216,
-0.049708433,
0.045345027,
0.04285296,
0.044911012,
0.11100636,
0.021593297,
-0.03125754,
0.072277226,
-0.01916381,
-0.03471753,
0.06770263,
-0.016145714,
0.05970865,
-0.02298266,
0.028831182,
0.015415605,
-0.00031274176,
-0.012733097,
-0.03328956,
-0.00013622487,
-0.024770694,
-0.042212497,
-0.0024302523,
0.04124051,
0.09191475,
0.06856497,
-0.015284932,
-0.12650564,
0.017038988,
-0.086213395,
0.05503028,
0.030287316,
0.0043085497,
0.03199775,
-0.032243066,
0.004920853,
0.009013211,
-0.023148343,
-0.04070659,
-0.091041416,
0.036388315,
0.024427423,
0.013590955,
0.032416057,
0.040976506,
0.037508775,
-0.041537814,
-0.0790035,
-0.05377612,
0.06448428,
-0.080218546,
0.021294411,
0.062302276,
0.045776673,
0.032483075,
0.08931608,
-0.04060625,
-0.031852096,
0.09785858,
0.01842136,
0.005539284,
0.033401128,
-0.069316946,
0.0050071795,
-0.01113226,
0.04040353,
-0.018702384,
-0.061634906,
-0.019955046,
0.055725593,
-0.0339558,
-0.03284888,
0.039789777,
0.032518264,
-0.014831044,
-0.040828414,
0.09042645,
-0.07117855,
-0.0452999,
0.004429679,
-0.011286574,
0.010456636,
-0.005107356,
-0.03228427,
-0.014561991,
1.973978e-33,
-0.014741807,
-0.011373571,
-0.018968971,
-0.030024195,
-0.032379575,
0.00021643718,
-0.012567692,
-0.121494584,
0.0020773544,
0.03192013,
-0.004760303,
0.0094626825,
0.070903994,
-0.10057645,
0.025073227,
0.0619163,
-0.0040503214,
-0.099229865,
-0.011797051,
-0.04770035,
-0.030485118,
0.06268395,
-0.073855996,
-0.0061467164,
-0.01423362,
0.0073681897,
-0.12381955,
-0.12358002,
0.049814835,
0.013639601,
-0.04231122,
-0.057728436,
0.008867639,
-0.03936158,
-0.010378862,
0.01995126,
0.06864242,
-0.0034683226,
0.034935873,
0.01691657,
-0.041248,
0.12756771,
-0.0109369,
-0.038407195,
0.03351686,
0.024284633,
-0.009186648,
0.089450404,
-0.037300985,
-0.033677705,
0.083595864,
0.024388704,
0.013052032,
-0.082466476,
0.08174954,
0.025851287,
-0.0407412,
0.011634866,
0.045149248,
0.057999264,
-0.043137826,
-0.0218611,
0.007614091,
0.075013876,
-0.037117332,
-0.040271968,
-0.044543337,
-0.10995435,
-0.024011672,
-0.08962033,
0.020206504,
0.030622963,
-0.021175418,
0.046819735,
-0.08388905,
-0.04419095,
-0.041822553,
0.031128531,
0.010744972,
0.06392119,
-0.0031621107,
-0.012324199,
0.039583333,
0.03872388,
0.04003792,
0.012126796,
0.060538515,
-0.046224117,
0.009284271,
-0.051235553,
-0.049639463,
-0.015559349,
-0.08584357,
0.07390804,
-0.029281551,
-1.4552155e-08,
-0.060234137,
-0.05653537,
-0.003924483,
-0.030553697,
0.033688337,
-0.051516354,
0.011325061,
0.14125879,
0.0239569,
0.01933575,
0.066012196,
0.030753234,
-0.10696803,
0.0034088665,
0.073148385,
0.02414587,
0.080867074,
-0.07877004,
-0.032145467,
0.07524812,
0.0542984,
0.009829384,
-0.1270656,
0.06314169,
0.09003407,
-0.0016169662,
0.058391552,
0.059590362,
-0.0047688517,
0.022996303,
0.035714924,
-0.034012605,
0.07277301,
0.0797266,
0.0912049,
0.022215161,
0.045965668,
0.04404474,
-0.083592154,
-0.10004596,
0.020836696,
0.023092525,
-0.047950342,
0.08443384,
0.0771323,
0.009310225,
-0.080956854,
0.09289323,
-0.020150434,
-0.00083508895,
-0.038630493,
0.01606296,
0.007031474,
-0.01770303,
-0.0022343053,
-0.021911092,
0.03337036,
-0.032134622,
-0.012314019,
-0.0021285508,
0.021125747,
0.016543584,
0.01756058,
-0.0771557
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_create_vector_store_files_duplicate_vector_store_name[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[openai_client-emb=ollama/all-minilm:l6-v2:dim=384-test_case3]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"What inspires neural networks?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.08566708,
-0.09559047,
0.044014607,
-0.015974598,
0.029406257,
0.07229597,
-0.010901963,
-0.023829829,
0.07381301,
-0.05698464,
-0.033780586,
0.051200844,
0.0050912783,
0.014317088,
-0.07878143,
-0.012908666,
-0.041628323,
0.06881713,
-0.10783476,
-0.04042705,
0.026262026,
-0.0019893218,
-0.011008084,
-0.0019646112,
0.004033132,
0.08881656,
0.014049165,
-0.018416086,
0.032621212,
-0.034692146,
0.07614942,
-0.014122101,
-0.024901746,
0.03755059,
-0.10197354,
0.054705318,
-0.022539826,
0.024209768,
0.011698194,
-0.008956377,
-0.050146304,
0.0026327297,
0.055942897,
0.009974366,
0.12796965,
-0.025006283,
0.024338534,
-0.024487961,
-0.0022703854,
-0.024687177,
-0.10482094,
-0.05994297,
-0.055200897,
0.0152664175,
0.03496896,
0.052624088,
-0.0006445885,
0.06637695,
-0.031790398,
-0.007308742,
-0.0050764186,
-0.042508755,
-0.04089097,
0.020062948,
0.038683955,
0.022463562,
-0.02866933,
0.053370677,
0.022435635,
0.01934692,
0.12264713,
0.023911418,
-0.037264284,
0.0059156846,
0.05235448,
0.054004095,
0.08022169,
-0.010992806,
0.029295033,
-0.0672064,
-0.00021147476,
-0.050584126,
-0.0095251575,
0.04616498,
0.078677796,
0.01416309,
-0.033226117,
0.0018380182,
-0.06667651,
-0.020977372,
-0.017116925,
-0.04396714,
-0.05969979,
-0.07344942,
-0.03985366,
-0.030863814,
-0.019918729,
-0.1075161,
-0.026654154,
0.0689854,
-0.0049292273,
0.026645623,
0.018879393,
0.022113768,
0.064208575,
-0.053153764,
0.06160797,
0.014026719,
0.11772326,
-0.051769163,
-0.07634968,
0.03090975,
-0.038558383,
-0.025260162,
0.039262023,
-0.061449137,
0.008389126,
0.016175874,
0.032293033,
0.06679397,
-0.06503257,
0.014676881,
-0.038542666,
0.018718671,
-0.030111106,
-0.028481327,
-0.14707623,
-3.455443e-33,
-0.048577547,
-0.024983348,
0.071679614,
0.035652317,
0.07931413,
-0.07811974,
0.023085583,
-0.047467884,
0.08872273,
-0.0010074769,
-0.11320135,
0.091322996,
0.023978539,
0.11368158,
0.042203873,
-0.05773289,
-0.074543044,
-0.0021036167,
-0.051522236,
-0.050925426,
-0.0016557347,
0.030671587,
0.045119714,
-0.03974729,
-0.05871358,
-0.030611658,
0.0017253247,
0.009114429,
-0.013763352,
0.023424039,
0.0017495834,
0.046633217,
-0.07230643,
-0.027882291,
0.016182518,
0.044456217,
-0.004326421,
-0.061798126,
0.0697968,
0.031249145,
-0.013697079,
-0.007417679,
0.031665757,
-0.02367961,
0.07153089,
0.023938214,
0.009729952,
0.0071919435,
-0.03235391,
-0.04955071,
-0.050248373,
0.02151118,
0.015327139,
-0.0674203,
0.06544387,
-0.025547959,
0.03207046,
0.02038825,
0.0112230005,
0.00019493286,
-0.023462659,
-0.004949742,
-0.014066955,
0.0014178518,
0.059315395,
0.039931085,
-0.032498423,
-0.023698896,
0.05445033,
0.064231694,
-0.034013335,
0.08745776,
-0.080473825,
-0.090545714,
-0.065398656,
-8.2386265e-05,
-0.021441188,
-0.0684535,
-0.029121745,
0.034134887,
-0.07799698,
-0.05388711,
-0.035591345,
0.044826802,
-0.040090464,
0.07972004,
0.026058797,
-0.08184859,
0.0018106091,
-0.027676936,
-0.04312832,
-0.042090744,
0.08336437,
-0.049453646,
-0.0902778,
2.6716498e-33,
-0.091911495,
0.02641473,
-0.07022486,
0.075562105,
0.03900905,
0.027913846,
-0.05444872,
-0.036666486,
-0.048225258,
0.07551892,
0.046452336,
0.025874302,
0.052248206,
-0.00018527219,
0.010575236,
-0.040591337,
-0.028484622,
-0.020559357,
0.08882296,
-0.06755767,
0.04941752,
0.13231009,
-0.06998129,
-0.040112328,
0.044030365,
0.034218542,
-0.08650528,
0.05746921,
-0.0075130556,
0.049070083,
-0.0148686,
-0.018103259,
-0.020280316,
0.038828347,
0.022253176,
0.13486238,
0.06899369,
-0.002589861,
-0.016430879,
0.0033818923,
0.017275693,
0.013614936,
0.044220798,
0.049155377,
-0.008259856,
-0.046575654,
-0.043921605,
0.04156687,
-0.035468902,
0.042837795,
0.03131579,
0.017961076,
-0.026213305,
-0.05458616,
-0.04259084,
-0.004110002,
0.029035388,
0.0010451805,
0.09044077,
0.014110149,
-0.068820216,
-0.07098938,
0.020328037,
0.00433692,
-0.046977337,
0.016492791,
-0.028396707,
0.104340956,
0.002814702,
-0.08339559,
0.037326302,
0.058929898,
0.0376423,
0.09580634,
-0.12376848,
-0.054060236,
-0.014485116,
0.0013106487,
-0.04537336,
-0.0899294,
0.001730278,
-0.05520831,
0.000568523,
0.00053380145,
0.07856981,
0.104590714,
0.00355283,
0.008365939,
0.04291482,
0.010064388,
0.025177509,
0.05732803,
-0.023061136,
0.054399785,
-0.049828697,
-1.3290186e-08,
-0.0539168,
0.08074109,
0.03397028,
0.024365881,
0.0906225,
-0.07162824,
0.07550329,
0.017278913,
-0.061226364,
-0.03298407,
0.07829606,
0.03967995,
-0.036696997,
0.02665964,
0.1000655,
-0.014426734,
0.020708792,
-0.039230846,
0.0085029,
-0.0012509917,
0.06740856,
0.013992665,
-0.054007422,
-0.016785627,
0.07651403,
-0.035508703,
-0.050085396,
0.08382383,
-0.009957674,
0.08140875,
0.019287178,
0.049911316,
0.0022236605,
-0.07807412,
0.019454133,
0.111560374,
-0.01269702,
-0.06466137,
-0.09346588,
-0.050038446,
-0.042178612,
0.0599713,
0.034831088,
-0.014957726,
0.014484159,
-0.022619838,
0.06916277,
-0.088544875,
0.021478733,
0.01378541,
-0.0075770007,
0.027888266,
0.015526889,
0.0052174823,
0.010616002,
-0.022908956,
-0.02535865,
-0.04139556,
-0.08375561,
0.092626974,
0.051755503,
0.09296614,
0.011223383,
-0.016759252
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a 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.055990793,
0.076004684,
-0.09247725,
0.014340361,
0.058780864,
-0.032434482,
0.020954052,
0.028818125,
-0.06591213,
0.013541593,
0.12999941,
0.004603084,
-0.0069239275,
-0.055457443,
-0.047553156,
-0.029139794,
-0.12236376,
-0.05360872,
-0.014706594,
0.05984688,
0.034442738,
0.02076038,
-0.048697792,
0.0135388365,
0.058592733,
-0.003076384,
-0.031565297,
0.082541116,
-0.031259205,
-0.12057633,
0.038319625,
0.06574785,
0.06415721,
0.038382582,
0.12570712,
0.03108174,
0.10821103,
-0.0019794356,
-0.024704305,
0.028765837,
0.01268161,
-0.039844505,
0.043253522,
-0.015898596,
-0.0135526005,
-0.0050831717,
-0.007911988,
0.039783813,
0.0036548872,
-0.033632487,
-0.058547974,
0.0048877494,
-0.089586094,
-0.010457663,
0.059202507,
-0.020414542,
0.014278556,
0.013986488,
-0.0046022516,
0.0383391,
0.0048145773,
0.029772853,
-0.020863408,
0.018640704,
0.12422993,
-0.023236223,
-0.040323637,
-0.023598222,
-0.007448043,
-0.09083128,
-0.16859712,
0.01012451,
-0.035808884,
0.010595173,
-0.02050494,
0.0020821376,
-0.10925222,
0.00793264,
0.048889533,
-0.11391199,
-0.06072707,
-0.13435508,
0.0063265716,
-0.008838073,
-0.03153269,
0.099169336,
0.055310693,
0.0068571265,
-0.023463152,
-0.0031599961,
0.036782328,
0.014336826,
0.022220163,
0.047114056,
0.007079763,
0.06806425,
0.01851431,
0.040882625,
0.055058856,
0.09488346,
-0.015833577,
-7.924328e-05,
0.010821554,
0.09177704,
-0.07464829,
-0.06471165,
0.07013805,
-0.04499751,
0.057702336,
-0.0260911,
0.006323043,
-0.09500501,
-0.010549514,
-0.07887475,
0.039744847,
-0.04154404,
-0.055268157,
0.07540271,
-0.04667509,
0.036143072,
0.080297194,
-0.036381353,
-0.03477274,
0.01701203,
-0.047007203,
-0.06519774,
0.062141683,
-4.222482e-33,
-0.0017580023,
-0.09383388,
-0.02982657,
0.1257841,
0.03802007,
-0.03654342,
0.0060920226,
0.05906885,
-0.11074452,
0.005664566,
-0.0259852,
-0.074819505,
0.008342821,
0.027451068,
-0.05248069,
0.02401768,
-0.004380289,
0.039321493,
-0.04213744,
-0.027290314,
0.054677974,
0.02707243,
-0.03329442,
-0.060589895,
-0.050737355,
0.017969057,
-0.0035060972,
-0.04666249,
0.073946096,
0.01333894,
-0.0033873583,
-0.046544433,
-0.060105033,
0.03406923,
0.001542676,
0.039177947,
0.03989323,
-0.012346489,
-0.030511485,
-0.0019157606,
-0.014608986,
-0.012997742,
0.019522104,
-0.022349002,
0.074362256,
-0.053366993,
-0.023993475,
0.029225096,
0.027534606,
0.015111057,
-0.020442221,
0.043327376,
0.019660354,
0.017330697,
-0.0035011724,
0.019482937,
-0.0003428041,
0.0004143988,
-0.005117252,
0.06624799,
0.027922852,
0.041020587,
-0.067166425,
0.028737254,
-0.03478325,
-0.055551115,
-0.032713737,
-0.08099247,
0.09216284,
0.06395264,
-0.049168136,
-0.039908994,
0.036915958,
-0.001602359,
0.00033041168,
-0.026015632,
-0.005999889,
0.05474541,
-0.09568287,
-0.05186289,
-0.048838183,
-0.08639551,
-0.034023147,
-0.033257127,
-0.05651867,
-0.051131375,
0.00809173,
-0.08581851,
0.06507323,
-0.085427366,
0.027997404,
0.029847065,
-0.031673994,
-0.08560956,
0.1017672,
2.1855676e-33,
0.01160785,
0.077607885,
-0.017380483,
0.005239329,
0.0009684126,
0.06543702,
0.07256893,
-0.044318836,
-0.04749324,
0.14031002,
-0.025741624,
0.0057860985,
0.040946104,
-0.054880083,
0.074413285,
-0.023610368,
0.018364722,
-0.060585637,
-0.044149306,
0.0027854694,
-0.04580664,
0.1172219,
0.10268574,
0.07907412,
-0.0466143,
0.018618405,
0.029834948,
0.037265483,
0.02273822,
-0.0026589038,
0.041726097,
0.06439532,
-0.089163445,
0.018188318,
0.024064727,
-0.096389584,
0.08642254,
-0.05389359,
0.01923105,
0.045092683,
0.045125954,
0.09655961,
0.014908797,
0.059611585,
0.03066662,
0.05882299,
0.111484826,
0.016632542,
0.011590394,
-0.023702666,
-0.008617484,
-0.055030316,
0.047606383,
-0.014632687,
-0.014156344,
0.069926,
0.032047603,
0.042642817,
-0.053942375,
0.031047028,
0.009216673,
0.033024028,
-0.019033706,
0.005568194,
-0.014985451,
-0.09193244,
-0.03210824,
0.015367608,
0.029150328,
0.01250386,
-0.004827391,
0.023345906,
-0.028271332,
-0.08454125,
0.051068563,
-0.0133641455,
-0.029022738,
-0.02258452,
0.010884119,
-0.009810021,
0.049751773,
-0.0032637494,
-0.038813565,
0.027924104,
0.017925078,
0.005337612,
0.058691237,
0.09577674,
-0.014308608,
0.006972794,
-0.02733344,
0.06912433,
0.05727631,
0.03206042,
0.0042422824,
-1.6766318e-08,
-0.036354303,
-0.09146416,
-0.026319364,
-0.007941995,
-0.024127059,
0.09896698,
-0.04723083,
-0.03767135,
-0.029419973,
-0.022513283,
0.04125822,
-0.0011487947,
-0.05570366,
0.020679709,
-0.038118906,
-0.0524994,
-0.02624128,
-0.05336954,
-0.040593866,
-0.0073642326,
-0.0014442836,
0.02714257,
0.027141048,
0.00932513,
-0.00026505854,
0.038233075,
0.037096914,
0.08405413,
-0.06340637,
-0.014856458,
0.05038612,
0.06703033,
0.027668556,
-0.04360097,
-0.012041474,
0.08500689,
0.111594744,
0.1046117,
0.019726463,
-0.0003025109,
-0.04110389,
0.009575226,
-0.05285304,
-0.0026365265,
-0.031144748,
-0.08860188,
-0.06762232,
-0.07451522,
-0.053012833,
-0.09560941,
-0.05273455,
0.013032144,
0.0029190276,
0.041905046,
-0.04522114,
0.016730292,
0.017214278,
0.021578068,
-0.03718778,
0.02353425,
0.052041385,
0.06444499,
0.02387539,
-0.025236009
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_create_and_retrieve[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"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 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.02063715,
0.048547715,
-0.12516363,
0.01991117,
-0.006535771,
-0.017178606,
0.027727984,
0.032170583,
-0.07302973,
0.008939048,
0.114936434,
0.0058907126,
0.0058539566,
-0.07717129,
-0.068831325,
0.0039749155,
-0.046849754,
-0.07290243,
-0.01089044,
-0.0019311873,
-0.011614766,
0.0036894802,
-0.03695606,
-0.009029009,
0.017461019,
-0.004713499,
-0.010254671,
-0.026636742,
-0.026125748,
-0.046913672,
0.017024238,
0.07134772,
0.07881177,
0.037890494,
0.2171628,
-0.0077837715,
0.046868894,
0.020414695,
7.3086514e-05,
0.010313401,
0.059848398,
-0.0432168,
-0.011937483,
-0.021149106,
0.021315353,
-0.00072827964,
-0.046116192,
-0.0046820757,
0.016943675,
-0.032491386,
-0.05518414,
4.1569507e-05,
-0.034172166,
-0.023247518,
0.020267943,
0.012827861,
0.06503616,
0.07180023,
-0.013490697,
0.06376408,
-0.017730093,
-0.018066013,
-0.034191083,
0.008955711,
0.09844678,
-0.0061266236,
-0.0681583,
-0.039525922,
0.06058805,
-0.094874755,
-0.11774931,
0.019538423,
-0.0146975,
0.047737166,
-0.061298378,
0.030337417,
-0.0022185082,
0.019007789,
0.024370799,
-0.0706336,
-0.07582951,
-0.10816812,
0.031845964,
-0.057830177,
-0.041695576,
0.075280555,
0.019289374,
0.028845886,
0.00770108,
0.013930852,
-0.06798737,
0.012679845,
-0.07907264,
0.014371907,
-0.02143343,
0.118807815,
-0.01625846,
0.07099565,
0.035778835,
0.028776478,
0.013304272,
-0.051922992,
0.026758311,
0.10282424,
-0.0033062787,
-0.0323962,
0.083044,
-0.041269112,
0.043435287,
-0.043423522,
-0.013239602,
-0.0029038147,
0.03836518,
-0.104016714,
0.012744254,
-0.122984074,
-0.008942784,
0.061622,
-0.120285526,
0.04300526,
0.04814875,
-0.03635219,
-0.003885531,
-0.018503323,
-0.08818648,
-0.0031517474,
0.09290918,
-1.1695078e-33,
-0.015589711,
-0.13189553,
0.008088725,
0.068995014,
0.07353928,
-0.030646417,
0.051103447,
0.030816244,
-0.078504995,
-0.021147503,
0.00017821972,
-0.10502705,
0.030078873,
0.025725247,
-0.06815898,
-0.025015578,
0.021830607,
0.04974834,
0.015209369,
-0.08015317,
0.06796625,
0.02186572,
-0.034017548,
-0.030821094,
-0.048006684,
0.00056150067,
-0.013788404,
-0.045005843,
0.015368281,
-0.0043664067,
0.03770649,
0.004908971,
-0.062165655,
0.030607738,
0.030548673,
0.029262528,
0.020701148,
0.005651629,
0.010610431,
0.019530766,
-0.056641333,
-0.022654055,
-0.0010107221,
-0.020805685,
-0.0122423675,
-0.055917308,
-0.049421716,
0.024721075,
0.058033403,
0.010474151,
-0.008790613,
0.025362866,
0.02025841,
0.0043685543,
-0.010180032,
0.012385952,
-0.037656777,
-0.056426413,
0.020923333,
0.022813123,
-0.005735464,
0.015326377,
-0.10870787,
0.048076276,
0.02325656,
-0.10311629,
0.06198023,
-0.07340407,
0.05158309,
0.073600024,
-0.029443115,
-0.0145644555,
0.04204335,
-0.020252205,
0.014780819,
-0.028580619,
0.07891857,
0.05684925,
-0.10630835,
0.01978742,
0.0269322,
-0.047497477,
-0.06668162,
-0.10474515,
0.012599415,
-0.056163482,
-0.049010143,
-0.04571028,
0.097044826,
-0.10589975,
0.0443032,
-0.02012556,
-0.03687091,
-0.015417932,
0.042297293,
-8.2901475e-35,
0.07415767,
0.109983,
-0.0169958,
0.010662599,
-0.0012326972,
0.028000224,
0.071431674,
-0.023200685,
-0.077782035,
0.11864236,
-0.01655977,
0.037961833,
0.029300237,
-0.008237682,
0.059777696,
0.008086391,
0.020752057,
0.025284613,
-0.055471033,
0.007357643,
-0.013398125,
0.11896545,
-0.014610998,
0.07691819,
-0.019711634,
-0.019209187,
-0.0047448683,
0.081730515,
0.01966574,
-0.013193487,
0.06215852,
0.07420408,
-0.0732121,
0.03605206,
0.07328615,
-0.05737339,
0.083464235,
0.018834433,
0.03309732,
0.041197054,
0.033917993,
0.09151444,
-0.051731665,
0.04961509,
0.011240185,
0.06661861,
0.072683774,
-0.013245803,
-0.0396739,
-0.012173285,
0.0017787422,
-0.057462867,
-0.013884758,
0.020205019,
-0.029692406,
-0.031010685,
0.01495571,
0.026381273,
-0.025382595,
0.007433676,
-0.009499173,
0.015655138,
-0.0012397076,
-0.0032508606,
-0.04663257,
-0.0030316259,
-0.0072732684,
0.064231075,
-0.034431923,
-0.06433184,
0.04542132,
-0.010773531,
-0.01788198,
0.010312547,
-0.024369288,
-0.008478452,
-0.024573771,
-0.026353512,
-0.02726359,
0.047060307,
0.08128728,
0.0045517655,
-0.010821626,
0.02652666,
0.018961025,
0.059243117,
0.0015618321,
0.098381564,
0.008220826,
0.0087965485,
-0.0060577076,
0.028892092,
0.08253292,
0.04956004,
0.023363136,
-1.4982712e-08,
-0.036891174,
-0.106298305,
0.03045296,
0.04926877,
-0.0030453708,
0.07413959,
-0.07043822,
-0.034285672,
-0.00967993,
-0.046219345,
0.013510023,
-0.018686531,
-0.04857027,
0.0028313817,
-0.061907243,
-0.05320195,
0.006096719,
-0.04346736,
0.042226154,
0.03455831,
-0.037525684,
0.023590392,
0.05489669,
0.029878648,
0.019286603,
0.026097765,
0.06938143,
0.06272364,
-0.09566523,
-0.074811466,
0.025204806,
0.03939605,
0.036375158,
-0.011044449,
-0.028223066,
0.1118786,
0.13400711,
0.06680113,
-0.011737624,
-0.035854086,
-0.07978784,
0.032793798,
-0.0021075937,
-0.028365161,
-0.042218152,
-0.08132239,
-0.0753423,
-0.043771405,
-0.015633272,
-0.14193879,
-0.055949368,
0.025526581,
-0.023186596,
0.061106272,
-0.056208838,
0.00838827,
0.014720366,
-0.014650179,
-0.012830794,
0.08434062,
0.0246604,
0.053669322,
0.00578281,
-0.10599061
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_update_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.03427073,
0.090051405,
-0.11458989,
0.0021456745,
0.059038658,
-0.027524853,
-0.020602634,
0.03373726,
-0.038729247,
0.026002944,
0.11481002,
0.027119067,
-0.015927644,
-0.021832926,
-0.046713773,
-0.0463825,
-0.074167565,
-0.0528447,
-0.028117927,
0.06325688,
0.029135453,
0.047131006,
-0.052675154,
-0.005349263,
0.030659368,
0.017706472,
-0.01687267,
0.08681507,
-0.014155131,
-0.0838676,
0.020020565,
0.07115838,
0.08365558,
0.030919788,
0.11829893,
0.028751066,
0.069536895,
-0.017295403,
-0.005784813,
0.005809313,
0.0012009157,
-0.0653044,
0.0373506,
0.018565746,
-0.0034945607,
-0.0011305016,
-0.029752811,
-0.021266408,
0.0058016903,
-0.035597492,
-0.03722647,
0.012373253,
-0.066935256,
-0.023148224,
0.056864377,
0.0014741909,
0.014408296,
-0.017165763,
0.009236472,
0.06087921,
0.024628488,
0.03699286,
-0.050610077,
0.05173448,
0.10159555,
0.008507267,
-0.04803921,
-0.013024803,
0.03110457,
-0.16593884,
-0.1410075,
0.009813814,
-0.025974236,
0.05233053,
-0.0078903325,
0.00788491,
-0.08471812,
-0.044507448,
0.054161046,
-0.0704361,
-0.05769206,
-0.100796975,
0.02182441,
0.022125391,
0.0071617346,
0.13063926,
0.080232956,
-0.004421626,
-0.018768508,
0.0076132733,
-0.03163366,
0.031986494,
-0.022168567,
0.03073627,
-0.023798423,
0.06954045,
0.016659362,
0.009536805,
0.027459558,
0.102133445,
0.021457382,
-0.021377807,
0.015131543,
0.039423607,
-0.09434147,
-0.11544392,
0.09468138,
-0.011155598,
0.07266597,
-0.03601087,
-0.011743829,
-0.06654009,
-0.03470551,
-0.10300434,
0.03020924,
-0.06319472,
-0.0908424,
0.04116676,
-0.033686537,
0.045706224,
0.07134009,
-0.031778418,
-0.059655976,
-0.017215038,
-0.03229557,
-0.058579948,
0.06733934,
-5.023814e-33,
-0.0058283503,
-0.0719842,
-0.009296622,
0.09659216,
0.03709538,
-0.03478395,
-0.004713233,
0.016686605,
-0.09859812,
0.00547005,
-0.014113569,
-0.0840751,
0.0027168505,
0.04445616,
-0.012728728,
0.034566686,
-0.0006014651,
0.06319148,
-0.026799418,
-0.013500979,
0.024169419,
0.015417236,
-0.04135526,
-0.055208974,
-0.06455241,
0.03148543,
-0.0073052812,
-0.03945437,
0.059831504,
0.026674163,
0.01396753,
-0.038841277,
-0.048514687,
0.01756627,
0.020964677,
0.035239976,
0.0115498835,
-0.00846713,
-0.044673763,
0.014640657,
5.2045852e-05,
-0.04694704,
0.02703366,
0.006635295,
0.064396136,
-0.044757996,
-0.026173549,
-0.016282372,
0.05521396,
0.014104745,
-0.008479494,
0.04204778,
0.05049772,
0.021629427,
0.011260506,
0.04858872,
0.017662494,
-0.005005865,
0.0019118759,
0.06333162,
0.035875723,
0.03504778,
-0.06642375,
0.008791644,
-0.027326671,
-0.05987137,
-0.0272001,
-0.08728625,
0.112434424,
0.05879801,
-0.041698616,
-0.06924583,
0.06434144,
0.01583225,
-0.027750073,
-0.037574448,
-0.011715211,
0.0694801,
-0.07104981,
-0.039085716,
-0.043068763,
-0.11208956,
-0.030723054,
-0.063793585,
-0.03527373,
-0.06119042,
-0.01526633,
-0.10094421,
0.047486804,
-0.08320468,
-0.0029513796,
0.0131224785,
-0.056690685,
-0.057956036,
0.06140136,
2.7669969e-33,
0.0036719525,
0.06695694,
-0.05591421,
0.025166295,
0.014735592,
0.03381445,
0.09345791,
-0.01053347,
-0.046693947,
0.14254177,
-0.015430197,
0.0066938214,
0.07679359,
-0.045779705,
0.07989786,
0.0036165903,
0.023604553,
-0.06533708,
-0.04253485,
-0.025912313,
-0.0748119,
0.10020777,
0.12578633,
0.06409652,
-0.016682886,
0.01406972,
0.025274348,
0.0017218525,
-0.013340701,
0.01172295,
0.03772902,
0.040607873,
-0.120578945,
0.024344057,
0.03439985,
-0.10167353,
0.11863072,
-0.03571693,
-0.0126576,
0.022622129,
0.039235484,
0.10625315,
0.0106492825,
0.076503076,
0.02088746,
0.06468519,
0.08582322,
-0.032148413,
0.04359905,
0.011070053,
0.023209164,
-0.06709916,
0.055355705,
-0.008128262,
-0.026921155,
0.076995976,
-0.011614669,
0.044967294,
-0.02459807,
0.020910041,
-0.0016746842,
0.02905443,
-0.03898753,
-0.01360213,
-0.019878393,
-0.057056017,
-0.014543598,
0.010161744,
0.016893594,
0.011981163,
0.019902436,
0.019194229,
-0.06551642,
-0.050247267,
0.050837662,
-0.075614415,
-0.018767305,
-0.012229684,
0.0019464786,
-0.0035209567,
0.0699799,
-0.02925182,
-0.008455151,
0.04742619,
-0.0004527954,
-0.014011262,
-0.0035493495,
0.08439228,
-0.001586065,
0.0016962147,
-0.023180604,
0.059889086,
0.019616995,
0.05435093,
0.012301163,
-1.5289881e-08,
-0.038103975,
-0.084179275,
-0.013605872,
-0.03277629,
-0.020995136,
0.08924277,
0.005438667,
-0.07047066,
-0.03966912,
-0.018226335,
0.05716885,
-0.026391266,
-0.09881308,
0.017511,
-0.01952465,
-0.06237397,
-0.019553065,
-0.0112019945,
-0.030052405,
0.010624359,
-0.005598304,
0.05326868,
0.044162616,
0.025812192,
0.0059228353,
0.059632093,
0.06885661,
0.08894283,
-0.06225795,
-0.038893122,
0.028817136,
0.08772772,
0.017759481,
-0.050048865,
-0.0009810333,
0.1297453,
0.083138496,
0.08161095,
0.011747931,
0.006871316,
-0.07277484,
-0.0020051182,
-0.018357608,
0.008882652,
-0.03823878,
-0.09057624,
-0.06433315,
-0.04256367,
-0.030856675,
-0.09314087,
-0.043470908,
0.012043298,
-9.8401986e-05,
0.040246293,
-0.04912119,
0.014575804,
0.017479645,
-0.00515073,
-0.033331197,
0.0075505474,
0.07488009,
0.06460031,
0.044803377,
-0.028485151
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_delete_file[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.021802,
0.088129535,
-0.10867403,
0.0027561262,
0.04917365,
-0.030165128,
-0.0155558735,
0.027549915,
-0.025064131,
0.016137881,
0.124836035,
0.0027821937,
-0.033310093,
-0.0071708336,
-0.07004796,
-0.027996853,
-0.09748515,
-0.091607764,
0.013367206,
0.08752305,
0.013990884,
0.03663788,
-0.036330026,
-0.019752761,
0.04456914,
-0.009629443,
-0.01832647,
0.048832405,
-0.015315298,
-0.07147843,
0.04094573,
0.082709365,
0.063961774,
0.01448001,
0.13194442,
0.0303949,
0.101027474,
-0.030359762,
-0.047630757,
0.044637363,
0.027034018,
-0.029368822,
0.038537122,
0.0053882804,
0.01478374,
0.025617138,
0.0041860593,
0.0034900715,
0.029765956,
-0.036669906,
-0.04589116,
0.031120853,
-0.07786974,
-0.019517597,
0.053876307,
-0.0152282175,
-0.0016955235,
0.016938528,
0.019939963,
0.07106882,
0.009938938,
0.03114348,
-0.010335175,
0.029952966,
0.115054145,
0.025746102,
-0.052842245,
-0.042447682,
0.0053093657,
-0.09987591,
-0.12741813,
-0.012022532,
-0.013787561,
0.05265948,
-0.01723935,
0.009638554,
-0.0775266,
0.0014047497,
0.06974368,
-0.08465856,
-0.061480872,
-0.14244927,
0.0096944375,
-0.008611519,
-0.0318523,
0.12823504,
0.053257603,
0.021978743,
0.0026468195,
0.015444479,
-0.042528655,
0.031551417,
-0.06209267,
0.044017885,
-0.0060390937,
0.06959196,
0.0050514904,
0.059341036,
0.00658094,
0.08397857,
-0.0067914296,
-0.041901726,
0.027081704,
0.106456675,
-0.039408114,
-0.053899165,
0.09689717,
-0.0084604705,
0.03398384,
-0.033843804,
0.002225838,
-0.08180734,
-0.008216738,
-0.11271415,
0.0058824755,
-0.095151186,
-0.07958445,
0.052868627,
-0.08120183,
0.034291897,
0.07903789,
-0.02675632,
-0.04391073,
0.0067707864,
-0.05438546,
-0.021719433,
0.080597855,
-3.9388086e-33,
-0.0072714644,
-0.079664536,
0.024838887,
0.115598045,
0.03591746,
-0.07254434,
0.012642099,
0.050809097,
-0.100082524,
0.019521356,
0.0035883472,
-0.07001022,
0.007977421,
0.029305879,
-0.017785804,
0.02702277,
0.016827941,
0.035956737,
-0.0209356,
-0.032321777,
0.056705642,
-0.009747762,
-0.059722506,
-0.053817417,
-0.055837773,
0.06526892,
-0.024752634,
-0.07778206,
0.038636208,
0.008998632,
0.009699391,
-0.02798574,
-0.024878206,
-0.0017547129,
0.025541965,
0.034623418,
-8.975541e-06,
0.0034556785,
-0.04525613,
0.03461154,
-0.025307115,
-0.02981576,
-0.019071916,
-0.023184983,
0.049324982,
-0.061433185,
0.00038017757,
0.0028894164,
0.027610173,
0.0069347974,
-0.020659719,
0.060771395,
0.015200205,
0.038918514,
-0.025353896,
-0.0017897633,
-0.019378036,
-0.0056970986,
-0.017806012,
0.038060427,
0.0320353,
0.03998783,
-0.09612384,
0.0006942505,
-0.018478483,
-0.06866618,
-0.0077035497,
-0.083554305,
0.10223985,
0.05141575,
-0.033018276,
-0.05033401,
0.043923385,
0.017748218,
-0.006601344,
-0.018691983,
0.012763011,
0.016694913,
-0.095070764,
-0.023533016,
0.006879241,
-0.07225332,
-0.0029991802,
-0.06930797,
-0.027289826,
-0.0672911,
-0.006683099,
-0.06801406,
0.04452207,
-0.09788058,
0.050909285,
0.010051549,
-0.04617998,
-0.067622505,
0.04447288,
2.5643933e-33,
0.014783131,
0.071710624,
-0.05237768,
0.011041238,
-0.013921518,
0.07072471,
0.091977395,
-0.01916791,
-0.015780058,
0.14812021,
0.031904023,
0.022344623,
0.07071857,
-0.037060503,
0.08806883,
-0.018145561,
-0.013254877,
-0.041782882,
-0.052317847,
-0.00279131,
-0.024807084,
0.13974102,
0.074973755,
0.056424167,
-0.029412953,
0.017093861,
0.03373144,
0.06874087,
0.020454561,
-0.018965451,
0.081238694,
0.06527906,
-0.09342225,
0.0037720343,
0.06347132,
-0.08775714,
0.09286548,
-0.024266576,
0.029101077,
0.0034162905,
0.05528427,
0.102037616,
-0.023588225,
0.065829135,
0.01520327,
0.034344077,
0.10559419,
0.011605323,
0.0409873,
-0.056635953,
0.037730522,
-0.04976337,
0.047961522,
0.0042118295,
-0.014172872,
0.07564937,
-0.009671058,
0.05520304,
-0.031121492,
0.019924358,
-0.024975697,
0.031822197,
-0.019536836,
-0.009870229,
-0.020225972,
-0.03319855,
-0.026266782,
0.038882248,
0.012940086,
-0.041266225,
0.012833021,
0.028703777,
-0.054075323,
-0.07628176,
0.021953572,
-0.023357453,
-0.026714878,
-0.029401133,
0.005280363,
0.012325193,
0.05232579,
0.0054451786,
-0.0063759633,
0.04604998,
0.042399842,
-0.018433316,
0.01260558,
0.09300185,
-0.005949781,
-0.015193224,
-0.011673769,
0.048114438,
0.02588804,
0.050943956,
0.005536351,
-1.5059804e-08,
-0.03100338,
-0.07003323,
-0.032613333,
-0.008732137,
-0.0045523546,
0.0759239,
-0.032725554,
-0.08790561,
-0.032228027,
-0.02459868,
0.051224917,
-0.034561895,
-0.08266327,
0.013319846,
-0.020541467,
-0.056271035,
-0.009450659,
-0.015903467,
-0.036625408,
0.010096497,
-0.03440534,
0.0315293,
-0.00013937108,
0.010463861,
0.017065981,
0.015492903,
0.074808784,
0.07079003,
-0.050000764,
-0.047017526,
0.01375958,
0.060757488,
-0.009361379,
-0.01570009,
-0.01836736,
0.12301148,
0.1185397,
0.12366319,
0.022782512,
-0.020027133,
-0.07401259,
-0.0047104736,
-0.024872223,
0.006070436,
-0.06660639,
-0.08130306,
-0.0873992,
-0.0634906,
-0.039198957,
-0.11274462,
-0.030654918,
0.026607778,
-0.063220546,
0.042023618,
-0.039010853,
-0.009214424,
0.005044682,
0.0015641748,
-0.058640927,
0.043107104,
0.06682025,
0.062172387,
0.021147223,
-0.041068073
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_relevance[openai_client-emb=ollama/all-minilm:l6-v2:dim=384-test_case1]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"How do systems learn automatically?"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.042460807,
-0.06189971,
-0.0784711,
0.0064329687,
0.03129365,
0.00807445,
0.05801836,
0.025447326,
0.016402787,
0.045995634,
-0.028924342,
0.04451832,
0.05686613,
-0.015340794,
-0.07020505,
-0.057178136,
-0.07683263,
0.006748679,
0.0043323045,
-0.123651944,
0.0031534543,
-0.03258051,
-0.02936216,
0.024140852,
-0.028559243,
0.10224467,
0.0021632623,
-0.006975691,
0.025292527,
-0.055500276,
0.031231727,
-0.0070274337,
0.08430815,
-0.028431177,
-0.083029,
0.009555893,
-0.020029299,
-0.00243229,
-0.00768719,
-0.023077851,
-0.09293533,
-0.042625993,
-0.020000124,
0.008240663,
0.060970567,
0.050315727,
-0.0510085,
-0.008543903,
-0.030227834,
-0.03582846,
-0.17836656,
-0.047279052,
0.033892106,
0.031623542,
-0.008832113,
0.10480918,
0.033559043,
0.090348184,
-0.015757555,
-0.0125672715,
-0.084686965,
-0.114781834,
-0.13755985,
0.021652374,
0.047834594,
0.043243896,
0.008659893,
0.038724966,
0.046716973,
-0.077413626,
-0.04887495,
0.031287406,
0.022356613,
0.00043283988,
0.052321073,
-0.012254071,
-0.035172574,
-0.00825216,
-0.008866574,
-0.034267236,
-0.04576201,
0.002467568,
-0.040877618,
0.08047682,
0.09472728,
0.0413438,
0.0057974122,
0.044982508,
0.025369909,
0.006618073,
0.010467276,
-0.07960384,
-0.03108485,
-0.03528749,
0.01831391,
0.053473305,
0.06568304,
-0.07259002,
0.02523736,
0.10520362,
0.035732146,
0.028157586,
0.011687256,
0.044207197,
0.012604437,
0.0018819098,
0.03926183,
0.043135095,
0.09784739,
-0.08801336,
-0.06060836,
0.02681984,
0.0041358666,
0.033492945,
0.011799116,
0.009551661,
-0.0095491735,
-0.021212189,
-0.008917248,
0.029352615,
-0.012693442,
-0.019269384,
0.009901157,
-0.00812101,
0.018603146,
-0.0007501193,
-0.056115113,
-3.8018077e-33,
0.020848714,
0.0047160466,
0.019726405,
0.06024251,
-0.0685974,
-0.07497267,
0.007997452,
-0.047339544,
0.057801835,
0.049544968,
0.01878086,
0.03274472,
0.017663997,
0.07483022,
0.02496901,
-0.011843339,
-0.11212756,
0.0070379525,
0.028099466,
-0.01746246,
0.08173482,
-0.007920462,
0.032095373,
-0.12300146,
0.033773854,
0.025873141,
-0.0045020077,
0.079493225,
0.0040725255,
0.03305898,
0.008061117,
0.0134422695,
-0.03292251,
0.031554114,
0.04013794,
0.0014983519,
0.030762345,
0.029481992,
0.041350223,
-0.047438618,
0.03944708,
-0.07526981,
0.037927423,
-0.026016014,
0.016933467,
0.0136799775,
0.0071263947,
-0.05386736,
-0.07443268,
-0.006070775,
0.024427462,
-0.039844982,
-0.020661902,
-0.033354662,
0.009005565,
0.12111172,
-0.028260944,
-0.036192853,
-0.021332363,
0.05333571,
0.05161245,
-0.01204843,
0.035563566,
0.05408247,
0.060722187,
0.07159865,
0.04299143,
0.008544481,
0.07421879,
0.00841512,
-0.036342908,
-0.008549791,
-0.08816386,
-0.049075164,
0.00029373015,
-0.05127952,
0.03586739,
-0.030380003,
-0.012642127,
0.018771531,
0.01711824,
-0.06644723,
0.023793438,
0.0010271219,
-0.01939443,
-0.053452212,
-0.017060323,
-0.062207118,
-0.05962535,
-0.012172617,
-0.013190802,
-0.037036054,
0.00082622556,
0.098088354,
0.024690514,
2.1767905e-33,
-0.010088812,
-0.016811697,
-0.042140447,
0.08837209,
-0.028899776,
-0.0048947735,
-0.082139015,
0.029238816,
-0.043079354,
-0.014153092,
-0.028387645,
0.025998218,
-0.017625,
0.046511114,
-0.005768211,
0.030010609,
0.011375536,
0.017426634,
0.055062976,
0.032230247,
-0.07995765,
0.032486655,
-0.060016844,
-0.011561194,
0.010211269,
0.046528235,
0.001191399,
0.0786961,
-0.0446158,
0.032789085,
0.0023115936,
-0.03886269,
-0.017663589,
0.07913024,
-0.004583343,
0.043521065,
-0.031589273,
0.008867868,
-0.05013296,
0.068929516,
0.043675046,
0.019968731,
-0.08471742,
-0.046864275,
-0.0068198936,
-0.026138468,
-0.05107216,
0.054374695,
0.03069186,
-0.010925094,
0.04721093,
-0.017387696,
-0.020754937,
-0.081763394,
-0.027709637,
0.035980806,
0.05396534,
0.044874854,
0.059699643,
0.041227758,
-0.06664364,
-0.09201654,
0.008915574,
0.025849758,
-0.038651932,
-0.0044070315,
-0.052066546,
0.027435115,
0.012089562,
0.048306923,
0.059854515,
0.097325735,
-0.053612895,
-0.07639326,
0.015773866,
-0.0444848,
-0.13214406,
-0.0702488,
-0.10134438,
-0.11905995,
-0.027714504,
0.006891868,
-0.0053650527,
0.054135524,
-0.111159205,
0.07835098,
0.03506018,
0.016036613,
0.021490784,
-0.061526407,
0.007425222,
0.04833579,
-0.01361202,
0.012450488,
-0.12729599,
-1.4009424e-08,
-0.040908325,
-0.01596458,
0.060048707,
0.03804525,
0.0663794,
0.04727275,
-0.016112225,
0.09687414,
-0.04424251,
-0.028799534,
-0.01294642,
0.013026413,
0.022404836,
0.04713173,
0.06402557,
0.12130648,
0.06062839,
0.10218965,
-0.0757528,
-0.023806982,
0.12489501,
-0.045460615,
0.09545599,
0.021262301,
0.03731495,
-0.075220875,
-0.0026194793,
0.0472452,
0.048499025,
0.12358729,
0.017998053,
0.013811017,
-0.035893846,
-0.051789004,
0.06182457,
0.05160056,
0.008895317,
-0.12500942,
0.016453298,
-0.08590811,
-0.071096726,
0.06987216,
-0.036072273,
-0.0053715096,
-0.048762616,
0.00081640907,
-0.021502526,
-0.061078615,
0.002485032,
-0.032720752,
0.045743283,
0.038934175,
-0.024666062,
0.025897244,
0.10301431,
-0.013001504,
0.04783332,
-0.07114252,
0.046031926,
0.080549754,
-0.10302451,
0.08449227,
0.028010191,
-0.03697792
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_create_and_retrieve[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"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 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
0.02063715,
0.048547715,
-0.12516363,
0.01991117,
-0.006535771,
-0.017178606,
0.027727984,
0.032170583,
-0.07302973,
0.008939048,
0.114936434,
0.0058907126,
0.0058539566,
-0.07717129,
-0.068831325,
0.0039749155,
-0.046849754,
-0.07290243,
-0.01089044,
-0.0019311873,
-0.011614766,
0.0036894802,
-0.03695606,
-0.009029009,
0.017461019,
-0.004713499,
-0.010254671,
-0.026636742,
-0.026125748,
-0.046913672,
0.017024238,
0.07134772,
0.07881177,
0.037890494,
0.2171628,
-0.0077837715,
0.046868894,
0.020414695,
7.3086514e-05,
0.010313401,
0.059848398,
-0.0432168,
-0.011937483,
-0.021149106,
0.021315353,
-0.00072827964,
-0.046116192,
-0.0046820757,
0.016943675,
-0.032491386,
-0.05518414,
4.1569507e-05,
-0.034172166,
-0.023247518,
0.020267943,
0.012827861,
0.06503616,
0.07180023,
-0.013490697,
0.06376408,
-0.017730093,
-0.018066013,
-0.034191083,
0.008955711,
0.09844678,
-0.0061266236,
-0.0681583,
-0.039525922,
0.06058805,
-0.094874755,
-0.11774931,
0.019538423,
-0.0146975,
0.047737166,
-0.061298378,
0.030337417,
-0.0022185082,
0.019007789,
0.024370799,
-0.0706336,
-0.07582951,
-0.10816812,
0.031845964,
-0.057830177,
-0.041695576,
0.075280555,
0.019289374,
0.028845886,
0.00770108,
0.013930852,
-0.06798737,
0.012679845,
-0.07907264,
0.014371907,
-0.02143343,
0.118807815,
-0.01625846,
0.07099565,
0.035778835,
0.028776478,
0.013304272,
-0.051922992,
0.026758311,
0.10282424,
-0.0033062787,
-0.0323962,
0.083044,
-0.041269112,
0.043435287,
-0.043423522,
-0.013239602,
-0.0029038147,
0.03836518,
-0.104016714,
0.012744254,
-0.122984074,
-0.008942784,
0.061622,
-0.120285526,
0.04300526,
0.04814875,
-0.03635219,
-0.003885531,
-0.018503323,
-0.08818648,
-0.0031517474,
0.09290918,
-1.1695078e-33,
-0.015589711,
-0.13189553,
0.008088725,
0.068995014,
0.07353928,
-0.030646417,
0.051103447,
0.030816244,
-0.078504995,
-0.021147503,
0.00017821972,
-0.10502705,
0.030078873,
0.025725247,
-0.06815898,
-0.025015578,
0.021830607,
0.04974834,
0.015209369,
-0.08015317,
0.06796625,
0.02186572,
-0.034017548,
-0.030821094,
-0.048006684,
0.00056150067,
-0.013788404,
-0.045005843,
0.015368281,
-0.0043664067,
0.03770649,
0.004908971,
-0.062165655,
0.030607738,
0.030548673,
0.029262528,
0.020701148,
0.005651629,
0.010610431,
0.019530766,
-0.056641333,
-0.022654055,
-0.0010107221,
-0.020805685,
-0.0122423675,
-0.055917308,
-0.049421716,
0.024721075,
0.058033403,
0.010474151,
-0.008790613,
0.025362866,
0.02025841,
0.0043685543,
-0.010180032,
0.012385952,
-0.037656777,
-0.056426413,
0.020923333,
0.022813123,
-0.005735464,
0.015326377,
-0.10870787,
0.048076276,
0.02325656,
-0.10311629,
0.06198023,
-0.07340407,
0.05158309,
0.073600024,
-0.029443115,
-0.0145644555,
0.04204335,
-0.020252205,
0.014780819,
-0.028580619,
0.07891857,
0.05684925,
-0.10630835,
0.01978742,
0.0269322,
-0.047497477,
-0.06668162,
-0.10474515,
0.012599415,
-0.056163482,
-0.049010143,
-0.04571028,
0.097044826,
-0.10589975,
0.0443032,
-0.02012556,
-0.03687091,
-0.015417932,
0.042297293,
-8.2901475e-35,
0.07415767,
0.109983,
-0.0169958,
0.010662599,
-0.0012326972,
0.028000224,
0.071431674,
-0.023200685,
-0.077782035,
0.11864236,
-0.01655977,
0.037961833,
0.029300237,
-0.008237682,
0.059777696,
0.008086391,
0.020752057,
0.025284613,
-0.055471033,
0.007357643,
-0.013398125,
0.11896545,
-0.014610998,
0.07691819,
-0.019711634,
-0.019209187,
-0.0047448683,
0.081730515,
0.01966574,
-0.013193487,
0.06215852,
0.07420408,
-0.0732121,
0.03605206,
0.07328615,
-0.05737339,
0.083464235,
0.018834433,
0.03309732,
0.041197054,
0.033917993,
0.09151444,
-0.051731665,
0.04961509,
0.011240185,
0.06661861,
0.072683774,
-0.013245803,
-0.0396739,
-0.012173285,
0.0017787422,
-0.057462867,
-0.013884758,
0.020205019,
-0.029692406,
-0.031010685,
0.01495571,
0.026381273,
-0.025382595,
0.007433676,
-0.009499173,
0.015655138,
-0.0012397076,
-0.0032508606,
-0.04663257,
-0.0030316259,
-0.0072732684,
0.064231075,
-0.034431923,
-0.06433184,
0.04542132,
-0.010773531,
-0.01788198,
0.010312547,
-0.024369288,
-0.008478452,
-0.024573771,
-0.026353512,
-0.02726359,
0.047060307,
0.08128728,
0.0045517655,
-0.010821626,
0.02652666,
0.018961025,
0.059243117,
0.0015618321,
0.098381564,
0.008220826,
0.0087965485,
-0.0060577076,
0.028892092,
0.08253292,
0.04956004,
0.023363136,
-1.4982712e-08,
-0.036891174,
-0.106298305,
0.03045296,
0.04926877,
-0.0030453708,
0.07413959,
-0.07043822,
-0.034285672,
-0.00967993,
-0.046219345,
0.013510023,
-0.018686531,
-0.04857027,
0.0028313817,
-0.061907243,
-0.05320195,
0.006096719,
-0.04346736,
0.042226154,
0.03455831,
-0.037525684,
0.023590392,
0.05489669,
0.029878648,
0.019286603,
0.026097765,
0.06938143,
0.06272364,
-0.09566523,
-0.074811466,
0.025204806,
0.03939605,
0.036375158,
-0.011044449,
-0.028223066,
0.1118786,
0.13400711,
0.06680113,
-0.011737624,
-0.035854086,
-0.07978784,
0.032793798,
-0.0021075937,
-0.028365161,
-0.042218152,
-0.08132239,
-0.0753423,
-0.043771405,
-0.015633272,
-0.14193879,
-0.055949368,
0.025526581,
-0.023186596,
0.061106272,
-0.056208838,
0.00838827,
0.014720366,
-0.014650179,
-0.012830794,
0.08434062,
0.0246604,
0.053669322,
0.00578281,
-0.10599061
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 6,
"total_tokens": 6
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_list_files[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch list test file 0"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.0036465183,
0.039924216,
-0.12941182,
0.037590887,
0.010976234,
0.0051913885,
0.050194982,
0.04712549,
-0.110254765,
0.015371635,
0.10012847,
0.0086210305,
-0.00401681,
-0.07506743,
-0.07134991,
0.0026189892,
-0.042793002,
-0.043490924,
0.024093278,
-0.059902564,
0.0057522473,
0.041752275,
-0.0518659,
0.0041615097,
0.0145003805,
0.009214976,
-0.0040959273,
-0.05989768,
-0.066200614,
-0.06039945,
-0.008130723,
0.049457688,
0.09335371,
0.040228266,
0.23237613,
-0.031075992,
0.066336684,
0.031554125,
-0.018242544,
0.018741237,
0.04798815,
-0.027992837,
-0.030888785,
-0.026447287,
-0.005291827,
0.0026244177,
-0.029284751,
-0.039187636,
0.025298318,
-0.03554318,
-0.08725903,
0.0051248395,
-0.034592275,
-0.032171108,
-0.004462186,
0.015781265,
0.06675842,
0.06411844,
-0.026831465,
0.040966112,
-0.025728298,
-0.04688795,
-0.030973477,
0.0108745955,
0.0722766,
-0.024154983,
-0.05418077,
-0.000112870955,
0.06427881,
-0.10798278,
-0.094993085,
0.031746376,
-0.03553208,
0.011721068,
-0.040610477,
0.0252638,
0.032354478,
0.0044251755,
-0.011238418,
-0.068738,
-0.08214709,
-0.09680521,
0.037895776,
-0.06387282,
-0.050618686,
0.047263417,
0.018891728,
0.0412337,
-0.00036982878,
0.01646717,
-0.068015374,
-0.024197156,
-0.06515257,
0.010283863,
-0.0011034796,
0.12800129,
0.0046132635,
0.04948645,
0.0066414373,
0.0038719445,
0.011649022,
-0.05141349,
0.020765351,
0.10356703,
-0.021878071,
-0.04683769,
0.08752736,
-0.082844995,
0.030899115,
-0.06978503,
-0.022572583,
0.031471837,
0.020657966,
-0.1110287,
0.008903277,
-0.14674239,
-0.008688162,
0.06673007,
-0.1264913,
0.07123954,
0.04898091,
-0.05575026,
-0.0021988999,
-0.027179684,
-0.06655918,
-0.0017623958,
0.029062115,
-9.678609e-34,
-0.0040430804,
-0.1445171,
0.027866993,
0.056585513,
0.051756255,
-0.033553254,
0.03485847,
0.015262136,
-0.055595256,
-0.017982436,
0.029664941,
-0.091648795,
0.030431122,
0.038217068,
-0.080033876,
-0.001278928,
0.008315687,
0.06286121,
0.0021489516,
-0.095392406,
0.056737788,
0.02301,
-0.03430761,
-0.041193787,
-0.03171937,
0.0022807133,
-0.0032209419,
-0.034821205,
0.011649089,
0.008981317,
0.0254853,
0.007002123,
-0.04010535,
0.029323202,
0.022673734,
0.068820246,
-0.00014395108,
-0.010711781,
0.024299825,
0.012537121,
-0.0481291,
-0.015601043,
-0.0069175945,
0.004603007,
-0.0052467184,
-0.05961089,
-0.059626818,
0.031623863,
0.092408285,
0.04708552,
0.00075549266,
0.019177787,
-0.035067532,
-0.001123708,
-0.017206883,
-0.0036923788,
-0.03970438,
-0.047295928,
0.036669154,
0.068081565,
-0.029749148,
0.020204429,
-0.107095204,
0.042345714,
0.022392623,
-0.09487722,
0.057932172,
-0.056190446,
0.046567976,
0.08047286,
-0.016240422,
-0.011581611,
0.07382179,
0.0020555314,
0.0025288807,
-0.021367662,
0.081748515,
0.007078425,
-0.09470811,
0.0030566726,
0.053787757,
-0.074042186,
-0.083328,
-0.057415612,
0.008429428,
-0.053765427,
-0.015226777,
-0.027527997,
0.10367792,
-0.10190198,
0.0054718414,
0.015465243,
-0.016845582,
-0.0016768618,
0.012372419,
-1.2111097e-33,
0.11383396,
0.12203165,
0.0062433938,
-0.011379958,
0.02088539,
0.007189597,
0.054203767,
-0.018699061,
-0.052370373,
0.10751054,
-0.021465823,
0.04084957,
-7.4275136e-05,
-0.025531521,
0.044114646,
0.005272512,
0.0062982296,
0.021161184,
-0.06669754,
-0.018744836,
-0.03190448,
0.10949183,
-0.008740601,
0.0689648,
-0.021337925,
-0.053446896,
-0.02771705,
0.048302785,
0.05164785,
-0.014181841,
0.086858906,
0.07332701,
-0.05071209,
0.06767104,
0.073746495,
-0.043644488,
0.09263983,
0.054621045,
0.025011554,
0.055775028,
0.02436886,
0.09215541,
-0.034988236,
0.0030215532,
-0.006717577,
0.03289223,
0.059916247,
0.009774813,
-0.015418337,
0.034162316,
0.008471469,
-0.045472328,
-0.04667333,
0.00731922,
-0.013213432,
-0.024659151,
0.009905776,
0.02377535,
-0.003152262,
-0.01130403,
-0.030932695,
0.029342141,
0.013968052,
-0.0046377,
-0.005656476,
-0.013187236,
-0.03282219,
0.03882881,
-0.050185896,
-0.06398926,
0.010382671,
-0.022127153,
-0.030189876,
-0.009426351,
-0.03064495,
-0.03634641,
-0.0349218,
-0.035668623,
-0.021144494,
0.059650354,
0.065509655,
0.0044521615,
0.013206919,
-0.002061999,
0.026685787,
0.06515911,
0.006900156,
0.09558864,
0.050668344,
0.023799876,
-0.017750489,
-0.011246626,
0.11730665,
0.07201313,
0.041874938,
-1.5963826e-08,
-0.07315261,
-0.12011152,
0.033495143,
0.05738324,
0.0005284734,
0.050519086,
-0.09675792,
-0.008407969,
0.0107015055,
-0.020977397,
0.0144274095,
-0.024443854,
-0.0429767,
0.0043172077,
-0.007172003,
-0.013036474,
0.02008991,
-0.018716406,
0.058911163,
0.07260904,
-0.053028338,
-0.0014296019,
0.051438745,
0.025465284,
0.0024763653,
0.024762444,
0.033506636,
0.046712905,
-0.07720086,
-0.043867115,
0.04290285,
0.020185705,
0.060160834,
-0.0538641,
-0.00598599,
0.08269462,
0.102695964,
0.044464804,
-0.018108651,
-0.0076020714,
-0.09503401,
0.024033083,
0.017758038,
0.00809999,
-0.030638821,
-0.094934754,
-0.098738804,
-0.0314479,
-0.0046123876,
-0.1324908,
-0.061987024,
0.029954871,
-0.0017423966,
0.03009696,
-0.030504663,
0.039349448,
0.012448695,
-0.013150999,
0.006029242,
0.060209665,
0.04083634,
0.05273217,
-0.008709646,
-0.052867472
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 7,
"total_tokens": 7
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_cancel[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch cancel test file 1 with substantial content"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.024848176,
0.10927083,
-0.05450533,
0.038470518,
0.04655687,
-0.03441165,
0.048787825,
-0.0143186,
-0.04601516,
0.04459769,
0.0962906,
0.058968313,
-0.007982045,
-0.101408914,
-0.103890516,
-0.019553995,
-0.07593763,
0.025729692,
-0.029175807,
-0.02637173,
-0.050457817,
0.0667999,
0.022711072,
0.06541894,
0.04160067,
0.030976225,
-0.056684654,
-0.0035003305,
-0.050632622,
-0.089319296,
0.040150084,
0.06798157,
0.085415095,
-0.010784824,
0.15392523,
0.009335901,
0.010962341,
0.029146822,
0.04782331,
-0.026440188,
0.04159767,
-0.010160578,
-0.05779412,
-0.039702356,
-0.0044949534,
-0.0046174363,
-0.08862508,
-0.034483507,
0.024042487,
0.005115569,
-0.031705588,
-0.016992172,
-0.053024616,
0.01563677,
0.035571545,
-0.039650038,
0.08190299,
0.061763544,
-0.055020135,
0.063571274,
-0.030193882,
-0.012515673,
-0.12543206,
0.012063704,
0.124487974,
0.040869407,
-0.077530906,
-0.0214754,
0.04500842,
-0.05687168,
-0.09496845,
-0.011800428,
-0.0017254931,
0.08008634,
-0.04771338,
0.08782803,
-0.020042695,
0.03326895,
-0.01620716,
-0.010731487,
-0.06380569,
-0.1430268,
0.05751869,
-0.069042474,
-0.037962854,
0.018233657,
0.04288621,
0.010391057,
0.044122636,
-0.0020460251,
-0.014757459,
0.0011373068,
0.079990335,
0.018020412,
-0.018433822,
0.07817241,
0.012330999,
0.0070785824,
0.037312597,
0.03993664,
0.03911765,
0.00773542,
-0.009170429,
-0.018691378,
-0.028763017,
-0.019665316,
0.06214063,
-0.020356778,
0.038877334,
-0.083055645,
0.00014203995,
-0.057001658,
0.021387478,
-0.054998484,
0.035385884,
-0.02310555,
0.08962162,
0.09418152,
-0.083902866,
0.009763576,
0.04367676,
-0.0022283448,
0.00070642383,
-0.03374212,
-0.07274796,
-0.034256153,
0.092287354,
1.2329448e-33,
-0.06229735,
-0.10348468,
-0.059390135,
0.07817325,
0.1285685,
0.0325305,
0.037062295,
0.03843278,
-0.06781765,
0.027851807,
-0.03286518,
-0.073059306,
0.01149629,
0.016992293,
-0.108593404,
-0.08927498,
0.020538993,
0.07540009,
-0.030434893,
-0.057486072,
0.102837116,
-0.011332778,
-0.04027731,
-0.02262728,
-0.029583002,
-0.042487722,
-0.017104331,
-0.028936997,
0.034644127,
-0.01513141,
-0.0054026116,
0.011182337,
-0.02432337,
0.06114496,
-0.0068504075,
0.045505546,
0.017341312,
-0.06301065,
0.033939216,
0.029030036,
-0.070751145,
0.0076140207,
-0.05603326,
-0.018391693,
0.0064440384,
-0.10148906,
-0.024238802,
-0.045753878,
0.029873302,
0.0373203,
0.0534206,
0.024428852,
0.032006055,
-0.045322936,
-0.009412459,
0.018952832,
0.026068611,
-0.043451782,
0.017836524,
0.060751986,
0.07706482,
0.03752047,
-0.09484434,
0.018022675,
-0.028010726,
-0.05970305,
0.004247022,
-0.085376516,
0.0025366922,
0.005975393,
-0.04067026,
-0.008420718,
0.07010126,
-0.05581287,
0.009997175,
-0.0532697,
0.030278767,
0.034753077,
-0.0069992444,
-0.0018294604,
0.052869122,
-0.047554906,
-0.07009096,
-0.12028548,
-0.01641165,
-0.05581959,
-0.026485125,
-0.07406601,
0.05233604,
-0.07966719,
-0.009600524,
-0.016012808,
-0.046704344,
0.0040856325,
0.13087924,
-1.9130184e-33,
0.049519937,
0.041445203,
-0.030660216,
0.029669106,
-0.0019053833,
0.038034655,
0.05359863,
-0.03873594,
-0.050682288,
0.016321613,
-0.018117735,
0.02705119,
0.014957703,
-0.029251508,
0.010732433,
0.011500395,
0.08527363,
0.00066678313,
-0.09031947,
0.007236515,
-0.03941242,
0.0326478,
0.029387569,
0.06963172,
-0.028400507,
-0.019728389,
-0.085803926,
0.050916575,
0.07555233,
0.0013333542,
0.03640585,
0.034854952,
-0.03589197,
-0.035184126,
0.0842271,
-0.07100644,
0.0665123,
0.056684427,
0.0052547413,
0.026210083,
0.06271423,
0.0771575,
-0.042685833,
0.029498853,
0.04869459,
0.06829995,
0.05471946,
-0.014717776,
-0.008437673,
-0.0078005274,
-0.033968452,
-0.035792124,
-0.016803639,
0.056615643,
-0.008940458,
-0.044396695,
0.033141147,
-0.020710792,
-0.052891906,
-0.012946554,
0.013425274,
0.045468997,
0.026553735,
-7.113393e-06,
0.03338338,
0.012771907,
0.005078096,
0.057394106,
-0.052927356,
-0.009027592,
0.019719232,
-0.004620606,
-0.0129213305,
0.021115603,
0.06351015,
0.006540351,
0.008657994,
-0.04417282,
-0.0010352699,
0.025917215,
0.073577404,
0.012915749,
-0.010160011,
0.058620453,
0.0032137136,
0.08368075,
-0.06552959,
0.062941395,
0.0049634166,
0.08497221,
-0.030302253,
0.028541503,
0.10346475,
0.03432184,
0.03994747,
-1.7571923e-08,
-0.02016325,
-0.12507844,
0.015846074,
0.038265362,
-0.0031526545,
0.018049568,
-0.08175526,
0.030486215,
-0.020732675,
-0.06911896,
0.025200618,
-0.016496347,
-0.018694997,
-0.00634927,
-0.084483825,
-0.054746486,
0.008191303,
-0.046995115,
0.03820692,
0.019186934,
-0.006977519,
-0.00029345907,
0.030278185,
-0.009153814,
0.030300286,
0.047370534,
0.060269605,
0.097653,
-0.055295017,
-0.09553827,
0.060082816,
-0.025960613,
0.034287654,
-0.012333056,
-0.07106288,
0.051412404,
0.14179601,
0.047098264,
-0.049292535,
0.014455177,
-0.047851678,
0.011403921,
0.014072506,
0.010494681,
-0.0009859418,
-0.060892187,
-0.072939225,
-0.079616,
-0.034049254,
-0.100867115,
-0.03133193,
0.0042823046,
-0.0045380834,
0.09583961,
-0.044172354,
-0.034359973,
0.023726566,
0.021676537,
-0.06509325,
0.09268319,
0.055370014,
0.003980938,
-0.005382609,
-0.07774324
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 10,
"total_tokens": 10
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_max_num_results[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"machine learning and artificial intelligence"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.04308226,
0.008707138,
0.06876158,
0.018115537,
0.04603657,
0.0026118131,
-0.0032358477,
-0.041284926,
-0.09074888,
-0.033087812,
-0.026611822,
0.0077352105,
0.020191023,
-0.03254043,
-0.035847843,
0.031108031,
-0.039247137,
-0.011286401,
-0.109710276,
-0.12942196,
0.018077252,
0.011446383,
-0.07231236,
-0.013655743,
0.035438832,
0.024783252,
0.03387316,
0.0726014,
-0.012643238,
-0.058606703,
0.057943814,
-0.08163548,
0.064962864,
0.0013675748,
-0.06751009,
0.03504323,
-0.044962864,
-0.004789603,
0.039971247,
-0.010461211,
0.019703588,
-0.09856083,
-0.01284534,
0.018876119,
0.09569305,
0.11571406,
-0.040684983,
-0.026837468,
-0.046950106,
0.022655226,
-0.0884734,
-0.023497678,
-0.022986038,
-0.031128721,
-0.052087843,
0.04241795,
0.011578454,
0.06702011,
0.027121129,
-0.0021518404,
0.04675332,
-0.082024105,
-0.038331598,
0.05215799,
0.097757615,
-0.0006708623,
-0.051935766,
0.09100271,
-0.016111707,
-0.06877312,
0.00767068,
0.076737314,
-0.0017499238,
0.014369293,
0.038031887,
-0.0044654603,
0.011287075,
0.0006178959,
0.08834809,
-0.05933476,
-0.042706404,
-0.048178285,
-0.053068914,
0.033110976,
0.008051986,
-0.042581946,
-0.038104057,
-0.007202849,
0.010891519,
-0.05466173,
0.03903238,
-0.06774145,
-0.02356764,
-0.03883483,
0.03464186,
0.015297014,
0.0073803077,
-0.12351391,
0.036168184,
0.13193323,
-0.06441449,
0.033508655,
-0.01435515,
0.0014314495,
0.031048443,
-0.03981852,
0.0236718,
-0.0028333638,
0.096959464,
-0.13331193,
-0.054209094,
0.019610135,
0.06984815,
-0.05347757,
0.0018131314,
0.02127606,
0.01981612,
0.036502477,
0.008825069,
0.018954003,
-0.07161326,
-0.018733062,
0.031044634,
0.09102944,
0.016508427,
-0.08625295,
-0.08300717,
-1.4044197e-34,
-0.072007515,
-0.045496386,
-0.027986562,
0.05823018,
-0.010462877,
-0.06121516,
0.026053715,
-0.06574638,
0.029178392,
0.012307141,
-0.06338016,
0.040593755,
0.03648161,
0.01977942,
0.08755496,
0.028216325,
0.044194777,
0.076237544,
0.02949726,
-0.0022650051,
0.04304541,
0.025918182,
1.2261046e-05,
-0.038463842,
-0.0161955,
0.03338553,
0.02112944,
-0.023382189,
0.009846733,
0.033575017,
0.030112585,
0.060389582,
-0.06522927,
-0.016030189,
0.019156763,
-0.002600835,
-0.04663393,
0.02794595,
0.021004112,
0.0074595963,
-0.048745092,
-0.0070450655,
0.019834043,
0.016411202,
-0.06381404,
0.031237993,
0.091976196,
-0.0313931,
0.022238847,
-0.015018542,
0.0025784613,
-0.031382624,
-0.0152902305,
-0.025491757,
0.08233924,
0.14333151,
-0.0255008,
-0.005104579,
-0.02309693,
-0.03117742,
0.06995927,
0.030787794,
0.04810884,
0.037135385,
0.0068392092,
0.06759879,
0.049763102,
0.008472162,
0.07170584,
0.0076969583,
-0.005139827,
-0.0031728086,
0.024646448,
-0.06879641,
0.05249289,
-0.009404918,
0.10184627,
-0.013639711,
-0.022681188,
0.021382388,
-0.09593746,
0.024071718,
-0.072101034,
-0.04462981,
0.033456877,
-0.03942254,
0.020099705,
-0.07495305,
-0.008311987,
0.013811793,
-0.09847922,
0.0336409,
0.08235891,
-0.0034134828,
-0.05005179,
-2.0283256e-33,
-0.13664234,
0.06463093,
0.05221015,
0.10102781,
0.016344123,
-0.01269384,
-0.09024102,
-0.023596523,
0.0057664234,
0.10294541,
-0.025930807,
-0.040247634,
0.034446176,
0.019228913,
-0.056902077,
0.019905953,
0.018969242,
-0.039362065,
0.011287794,
0.056024995,
-0.016000811,
0.058928564,
-0.038211577,
-0.030445429,
-0.02130076,
0.031401403,
-0.021228284,
-0.01400283,
-0.051042903,
0.048970606,
0.018451849,
-0.015488385,
-0.05033241,
0.053844187,
-0.050984643,
0.016940817,
-0.032773405,
-0.02502497,
0.000826887,
0.10213942,
0.04724571,
0.010156266,
-0.11653258,
0.012165439,
-0.029735534,
-0.09959623,
-0.052066926,
0.06851813,
0.054645896,
-0.066007115,
0.025503889,
0.013539478,
0.008429433,
-0.10756056,
-0.08184448,
0.07179834,
0.007978949,
-0.013011469,
0.020322459,
0.07827889,
-0.07320297,
-0.1153648,
0.04087073,
0.04355079,
-0.0012279376,
0.045840748,
-0.004366462,
0.074786335,
-0.017625354,
-0.046014115,
0.022716347,
0.057738,
-0.015408269,
0.007771719,
-0.04381374,
-0.05289107,
-0.08783473,
0.016243288,
-0.018398289,
-0.05679973,
0.036058675,
-0.040418148,
0.039242174,
0.083593465,
-0.019223504,
0.05582025,
0.04756948,
-0.07378718,
0.03371102,
-0.08680738,
-0.010659349,
0.0524085,
0.009771544,
0.023841262,
-0.086208895,
-1.7164519e-08,
0.021028979,
-0.051292755,
0.11877283,
-0.04687027,
0.06566496,
0.058750976,
-0.050496,
0.055720143,
-0.040577173,
0.055665523,
0.025019526,
-0.001681203,
-0.031047702,
0.022228474,
0.028109053,
0.03163934,
-0.025502652,
0.020898303,
-0.023064507,
0.013436037,
0.07504084,
0.022279648,
0.028908938,
-0.014271217,
0.025474275,
-0.051414162,
-0.014502164,
0.014646399,
-0.028023712,
0.08406334,
-0.07755092,
0.038713943,
-0.0043370826,
0.025676368,
0.12571524,
0.06996381,
0.0059321956,
-0.10410214,
-0.041439336,
0.016119901,
-0.040744506,
0.017772397,
-0.09114363,
-0.026066387,
0.055598073,
0.016705057,
0.016444646,
-0.11935461,
0.02789905,
0.0151745565,
0.042357437,
0.06817164,
0.05782822,
0.063278705,
0.06748475,
0.059781626,
0.06468886,
-0.06749451,
-0.035589237,
0.0640055,
0.008595763,
0.003157698,
0.009343837,
-0.08392565
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_search_with_high_score_filter[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"Python is a high-level programming language with code readability and fewer lines than C++ or Java"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.07642644,
0.0213101,
-0.03612849,
-0.0012144424,
-0.048599217,
-0.13194773,
-0.084226094,
0.059389386,
-0.0617182,
-0.009323243,
-0.08099486,
0.055514984,
0.052610602,
0.026061919,
0.063071534,
-0.062316332,
-0.065115415,
-0.022351492,
0.017378356,
-0.11605584,
-0.036349725,
0.0404155,
-0.0325302,
-0.01770141,
0.05722761,
0.012393438,
-0.018529164,
-0.030017126,
0.002365914,
0.0066701965,
-0.08862459,
0.0779319,
0.03702611,
0.029523117,
-0.01977821,
0.05424799,
-0.00074063655,
-0.08949148,
-0.05312112,
-0.012703181,
-0.08622611,
0.07689996,
-0.038602136,
-0.011616902,
-0.03234132,
-0.0073969415,
-0.024779495,
-0.067999884,
-0.03039565,
-0.025974417,
-0.09690519,
0.009931951,
-0.05362519,
-0.09107193,
-0.009222061,
-0.008804084,
0.048185978,
-0.003329437,
-0.0058579347,
-0.13306528,
-0.09721703,
0.013474277,
0.047286008,
0.06279936,
-0.01582815,
-0.03771013,
-0.01651892,
0.029905442,
0.09326656,
-0.06746783,
-0.13385954,
-0.020873511,
-0.02586237,
0.11623731,
0.030632136,
-0.10494776,
0.03905967,
-0.010701787,
-0.0014734551,
0.020711906,
0.0017687598,
0.027797814,
-0.078500465,
0.10791581,
0.02910256,
-0.05398749,
0.030513834,
0.07001416,
-0.034323946,
0.00986597,
0.034644563,
-0.04232179,
0.065106474,
0.026648693,
-0.032122962,
0.07616709,
0.020026332,
-0.030642457,
-0.07188906,
0.027189687,
-0.018678213,
-0.05416582,
0.07488992,
0.017753933,
0.03386007,
0.02414506,
0.09077034,
-0.052096054,
0.040722203,
-0.018450806,
-0.012474094,
-0.06403705,
-0.023205942,
-0.061878704,
0.053436812,
0.047876816,
-0.010608645,
0.07852118,
0.03579911,
0.027097313,
0.022424318,
-0.004912598,
-0.02455264,
0.003700777,
0.00039888592,
-0.008842094,
0.009365857,
2.05052e-34,
-0.03236592,
-0.024301885,
0.027186498,
0.021633558,
0.06519107,
-0.019539308,
0.05306087,
0.007985293,
-0.03927361,
-0.020062907,
0.008070545,
0.02382429,
0.015006528,
0.1128094,
0.06113956,
-0.011911169,
0.016901307,
0.045509744,
0.0013988831,
0.00907712,
0.01314859,
-0.012022324,
0.027043821,
0.0071581583,
0.022573117,
-0.013721936,
-0.004378743,
-0.0007087661,
0.033585846,
0.011227843,
-0.05136015,
-0.0739591,
-0.03094639,
0.01957863,
-0.010360539,
-0.0029881562,
-0.00480912,
-0.10446798,
0.034694213,
-0.02424012,
-0.047155295,
0.035451673,
0.037169226,
-0.016986743,
0.0056092087,
0.05057555,
-0.008601115,
0.0060349177,
-0.12273999,
0.036871877,
-0.022267655,
-0.009739047,
0.075974636,
0.08902226,
0.01647873,
0.044345584,
0.06792565,
0.06456903,
-0.050189856,
-0.0016995457,
-0.00090498856,
0.09925942,
0.09253569,
-0.011321612,
0.050309792,
0.07697773,
0.0100068,
0.101032645,
0.03268899,
0.06433435,
-0.044524822,
0.03860177,
-0.019314477,
0.037440598,
-0.0017394378,
0.011816814,
0.011359969,
-0.1040215,
0.06984421,
0.01910163,
-0.028409261,
-0.013704911,
0.048502754,
-0.015429918,
-0.03423058,
-0.055616368,
0.005001686,
0.026054256,
-0.0007700968,
-0.0041726283,
-0.0640977,
-0.05985385,
0.0813829,
0.014288322,
-0.038147252,
-2.1576616e-33,
-0.027279941,
-0.034765568,
-0.02465107,
0.026859807,
-0.090699576,
-0.045698144,
0.013666582,
0.002109106,
0.054007426,
0.032838397,
-0.029939773,
-0.058843046,
0.09825693,
0.03251322,
0.109977886,
0.020682266,
-0.0958973,
0.0005566991,
0.0018037638,
0.017544486,
-0.06843023,
0.06435102,
-0.050149646,
-0.048880838,
-0.027535524,
-0.014993001,
-0.1210176,
-0.04412877,
-0.011025324,
0.058610573,
-0.007498303,
0.038722932,
-0.07025986,
0.030281536,
0.055707317,
-0.001162887,
0.01707519,
-0.042081844,
-0.016578361,
-0.025714336,
0.117893435,
0.04196084,
0.064787276,
0.046081997,
0.014950138,
0.030026693,
-0.039077066,
0.087156676,
-0.012328571,
-0.035646956,
-0.048145168,
0.041394625,
0.038984135,
-0.025188481,
-0.028836856,
-0.02917782,
0.029690607,
0.051454436,
-0.08629761,
-0.06921346,
-0.07273269,
-0.05952071,
0.0050034616,
0.025693603,
-0.022103382,
0.024972659,
-0.09724792,
0.0062089814,
-0.04963219,
-0.13054384,
0.124669954,
-0.01361085,
-0.022798477,
0.039057832,
-0.07550591,
0.049364913,
0.0007779102,
0.004692535,
-0.040757872,
0.06355995,
0.110190175,
0.02015945,
-0.048807338,
0.05842704,
-0.066375315,
0.026938869,
-0.062775925,
-0.014049011,
0.023343485,
0.02358394,
-0.002172394,
0.07766165,
0.031056313,
0.020171564,
-0.020073414,
-2.4317085e-08,
0.020261949,
-0.008623839,
0.0621209,
-0.008334477,
0.02526615,
0.08902315,
-0.007958188,
-0.018911751,
-0.035572145,
0.06189234,
-0.017249323,
-0.030186126,
-0.10225455,
-0.06522741,
-0.004033112,
0.10897627,
-0.02168822,
-0.053784374,
0.011841631,
0.052263785,
0.058334205,
0.0052479547,
-0.06017166,
0.08723854,
-0.08275336,
-0.040676847,
0.065786876,
0.028317772,
-0.012168614,
-0.07196286,
0.014588226,
-0.03231537,
0.0028357722,
0.03868031,
0.055439528,
-0.015238348,
0.05482384,
-0.025080629,
-0.033771332,
0.0030752022,
-0.037511814,
0.015122315,
0.02292684,
0.012024873,
0.03559873,
0.006865039,
-0.04049267,
-0.049685854,
-0.05455341,
-0.073071465,
-0.024902396,
-0.002133957,
-0.013212662,
-0.06657236,
0.023245512,
0.046919,
-0.13278763,
-0.011092663,
-0.023939205,
0.043182902,
0.024406029,
0.06922961,
0.15658055,
0.017658537
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 21,
"total_tokens": 21
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_retrieve_file_contents[openai_client-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is a test file"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.03427073,
0.090051405,
-0.11458989,
0.0021456745,
0.059038658,
-0.027524853,
-0.020602634,
0.03373726,
-0.038729247,
0.026002944,
0.11481002,
0.027119067,
-0.015927644,
-0.021832926,
-0.046713773,
-0.0463825,
-0.074167565,
-0.0528447,
-0.028117927,
0.06325688,
0.029135453,
0.047131006,
-0.052675154,
-0.005349263,
0.030659368,
0.017706472,
-0.01687267,
0.08681507,
-0.014155131,
-0.0838676,
0.020020565,
0.07115838,
0.08365558,
0.030919788,
0.11829893,
0.028751066,
0.069536895,
-0.017295403,
-0.005784813,
0.005809313,
0.0012009157,
-0.0653044,
0.0373506,
0.018565746,
-0.0034945607,
-0.0011305016,
-0.029752811,
-0.021266408,
0.0058016903,
-0.035597492,
-0.03722647,
0.012373253,
-0.066935256,
-0.023148224,
0.056864377,
0.0014741909,
0.014408296,
-0.017165763,
0.009236472,
0.06087921,
0.024628488,
0.03699286,
-0.050610077,
0.05173448,
0.10159555,
0.008507267,
-0.04803921,
-0.013024803,
0.03110457,
-0.16593884,
-0.1410075,
0.009813814,
-0.025974236,
0.05233053,
-0.0078903325,
0.00788491,
-0.08471812,
-0.044507448,
0.054161046,
-0.0704361,
-0.05769206,
-0.100796975,
0.02182441,
0.022125391,
0.0071617346,
0.13063926,
0.080232956,
-0.004421626,
-0.018768508,
0.0076132733,
-0.03163366,
0.031986494,
-0.022168567,
0.03073627,
-0.023798423,
0.06954045,
0.016659362,
0.009536805,
0.027459558,
0.102133445,
0.021457382,
-0.021377807,
0.015131543,
0.039423607,
-0.09434147,
-0.11544392,
0.09468138,
-0.011155598,
0.07266597,
-0.03601087,
-0.011743829,
-0.06654009,
-0.03470551,
-0.10300434,
0.03020924,
-0.06319472,
-0.0908424,
0.04116676,
-0.033686537,
0.045706224,
0.07134009,
-0.031778418,
-0.059655976,
-0.017215038,
-0.03229557,
-0.058579948,
0.06733934,
-5.023814e-33,
-0.0058283503,
-0.0719842,
-0.009296622,
0.09659216,
0.03709538,
-0.03478395,
-0.004713233,
0.016686605,
-0.09859812,
0.00547005,
-0.014113569,
-0.0840751,
0.0027168505,
0.04445616,
-0.012728728,
0.034566686,
-0.0006014651,
0.06319148,
-0.026799418,
-0.013500979,
0.024169419,
0.015417236,
-0.04135526,
-0.055208974,
-0.06455241,
0.03148543,
-0.0073052812,
-0.03945437,
0.059831504,
0.026674163,
0.01396753,
-0.038841277,
-0.048514687,
0.01756627,
0.020964677,
0.035239976,
0.0115498835,
-0.00846713,
-0.044673763,
0.014640657,
5.2045852e-05,
-0.04694704,
0.02703366,
0.006635295,
0.064396136,
-0.044757996,
-0.026173549,
-0.016282372,
0.05521396,
0.014104745,
-0.008479494,
0.04204778,
0.05049772,
0.021629427,
0.011260506,
0.04858872,
0.017662494,
-0.005005865,
0.0019118759,
0.06333162,
0.035875723,
0.03504778,
-0.06642375,
0.008791644,
-0.027326671,
-0.05987137,
-0.0272001,
-0.08728625,
0.112434424,
0.05879801,
-0.041698616,
-0.06924583,
0.06434144,
0.01583225,
-0.027750073,
-0.037574448,
-0.011715211,
0.0694801,
-0.07104981,
-0.039085716,
-0.043068763,
-0.11208956,
-0.030723054,
-0.063793585,
-0.03527373,
-0.06119042,
-0.01526633,
-0.10094421,
0.047486804,
-0.08320468,
-0.0029513796,
0.0131224785,
-0.056690685,
-0.057956036,
0.06140136,
2.7669969e-33,
0.0036719525,
0.06695694,
-0.05591421,
0.025166295,
0.014735592,
0.03381445,
0.09345791,
-0.01053347,
-0.046693947,
0.14254177,
-0.015430197,
0.0066938214,
0.07679359,
-0.045779705,
0.07989786,
0.0036165903,
0.023604553,
-0.06533708,
-0.04253485,
-0.025912313,
-0.0748119,
0.10020777,
0.12578633,
0.06409652,
-0.016682886,
0.01406972,
0.025274348,
0.0017218525,
-0.013340701,
0.01172295,
0.03772902,
0.040607873,
-0.120578945,
0.024344057,
0.03439985,
-0.10167353,
0.11863072,
-0.03571693,
-0.0126576,
0.022622129,
0.039235484,
0.10625315,
0.0106492825,
0.076503076,
0.02088746,
0.06468519,
0.08582322,
-0.032148413,
0.04359905,
0.011070053,
0.023209164,
-0.06709916,
0.055355705,
-0.008128262,
-0.026921155,
0.076995976,
-0.011614669,
0.044967294,
-0.02459807,
0.020910041,
-0.0016746842,
0.02905443,
-0.03898753,
-0.01360213,
-0.019878393,
-0.057056017,
-0.014543598,
0.010161744,
0.016893594,
0.011981163,
0.019902436,
0.019194229,
-0.06551642,
-0.050247267,
0.050837662,
-0.075614415,
-0.018767305,
-0.012229684,
0.0019464786,
-0.0035209567,
0.0699799,
-0.02925182,
-0.008455151,
0.04742619,
-0.0004527954,
-0.014011262,
-0.0035493495,
0.08439228,
-0.001586065,
0.0016962147,
-0.023180604,
0.059889086,
0.019616995,
0.05435093,
0.012301163,
-1.5289881e-08,
-0.038103975,
-0.084179275,
-0.013605872,
-0.03277629,
-0.020995136,
0.08924277,
0.005438667,
-0.07047066,
-0.03966912,
-0.018226335,
0.05716885,
-0.026391266,
-0.09881308,
0.017511,
-0.01952465,
-0.06237397,
-0.019553065,
-0.0112019945,
-0.030052405,
0.010624359,
-0.005598304,
0.05326868,
0.044162616,
0.025812192,
0.0059228353,
0.059632093,
0.06885661,
0.08894283,
-0.06225795,
-0.038893122,
0.028817136,
0.08772772,
0.017759481,
-0.050048865,
-0.0009810333,
0.1297453,
0.083138496,
0.08161095,
0.011747931,
0.006871316,
-0.07277484,
-0.0020051182,
-0.018357608,
0.008882652,
-0.03823878,
-0.09057624,
-0.06433315,
-0.04256367,
-0.030856675,
-0.09314087,
-0.043470908,
0.012043298,
-9.8401986e-05,
0.040246293,
-0.04912119,
0.014575804,
0.017479645,
-0.00515073,
-0.033331197,
0.0075505474,
0.07488009,
0.06460031,
0.044803377,
-0.028485151
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 5,
"total_tokens": 5
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_file_batch_cancel[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"This is batch cancel test file 0 with substantial content"
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.010706459,
0.11740307,
-0.07039693,
0.036590256,
0.03445546,
-0.037278093,
0.03379443,
-0.013823729,
-0.032249693,
0.03938118,
0.09738967,
0.043944366,
-0.015195948,
-0.08339151,
-0.12092183,
-0.014471645,
-0.06525943,
0.008907259,
-0.01650673,
-0.011929039,
-0.05199422,
0.07381635,
0.028294133,
0.056386005,
0.028838586,
0.028601484,
-0.04681384,
-0.01832989,
-0.03762036,
-0.06344129,
0.037448276,
0.08074441,
0.08218738,
-0.018610502,
0.16465284,
0.006478124,
0.009051977,
0.02408177,
0.04604125,
-0.016105251,
0.05008821,
-0.014189305,
-0.05520893,
-0.024689494,
0.009216029,
0.0032953387,
-0.08004143,
-0.05089831,
0.030319115,
0.0038869085,
-0.032422457,
-0.008002048,
-0.054050166,
0.0034951395,
0.026613116,
-0.03749801,
0.07438347,
0.059471514,
-0.03757129,
0.07424358,
-0.031258617,
-0.010979136,
-0.115162514,
0.016076958,
0.1232383,
0.057677373,
-0.088722095,
-0.028623613,
0.05342225,
-0.060159564,
-0.07479104,
-0.017942393,
-0.0049816403,
0.08948417,
-0.042007487,
0.09255517,
-0.016678171,
0.013261491,
-0.006896819,
0.0007887814,
-0.07065271,
-0.14053898,
0.05461791,
-0.06493796,
-0.036082767,
0.043646213,
0.039190974,
0.009325785,
0.055350147,
0.007441806,
-0.04520714,
0.00706859,
0.029522285,
0.016590053,
-0.020568663,
0.083674796,
0.0076218154,
0.0068813344,
0.013654878,
0.036975045,
0.045041762,
-0.012595894,
-0.006368643,
-0.0061889216,
-0.023474505,
-0.014876908,
0.07330539,
-0.008524313,
0.030800035,
-0.07918423,
-0.0021687879,
-0.04496153,
0.023536708,
-0.061784197,
0.01902701,
-0.034334116,
0.078239396,
0.086644776,
-0.100164026,
0.009799769,
0.04313244,
-0.00027734894,
-0.007950987,
-0.03439145,
-0.07176782,
-0.010847084,
0.10318583,
1.2839817e-33,
-0.05753917,
-0.10064093,
-0.036363184,
0.070467964,
0.122674346,
0.023121672,
0.03652865,
0.043095388,
-0.053614594,
0.034320176,
-0.015772302,
-0.07880763,
0.019716257,
0.017762596,
-0.09445866,
-0.08139039,
0.02723353,
0.07888664,
-0.024265176,
-0.054107357,
0.110211216,
-0.016241828,
-0.054173037,
-0.028439837,
-0.027373036,
-0.016680904,
-0.031238398,
-0.03203348,
0.017995331,
-0.011522749,
-0.0029258302,
0.022844799,
-0.019639377,
0.051114235,
-0.0015511642,
0.04084379,
0.0043716645,
-0.057892665,
0.024110107,
0.03920256,
-0.081518926,
-0.008190868,
-0.06454961,
-0.014420568,
0.0001627619,
-0.104661725,
-0.015631681,
-0.054435764,
0.033904925,
0.04208333,
0.041493602,
0.03355258,
0.027098972,
-0.035584487,
-0.025616093,
0.015369326,
0.025080195,
-0.04762298,
0.0076926854,
0.048611075,
0.07658852,
0.030115645,
-0.101926394,
0.009031792,
-0.02690588,
-0.07093244,
0.009540478,
-0.09677317,
0.0069073187,
0.008907573,
-0.036709666,
-0.007432621,
0.06927972,
-0.044891477,
-0.0022573525,
-0.05632575,
0.037448447,
0.026788728,
-0.009165719,
0.008179495,
0.08744598,
-0.046512403,
-0.061149377,
-0.13555247,
0.0010608517,
-0.06323012,
-0.039003633,
-0.070155844,
0.039167948,
-0.07763432,
-0.00032963915,
-0.026286555,
-0.053487353,
0.009920838,
0.10411915,
-1.947199e-33,
0.047725905,
0.04490678,
-0.042626992,
0.035240166,
-0.0039435024,
0.03336516,
0.06762877,
-0.021556368,
-0.04395341,
0.023543458,
0.005500309,
0.037565444,
0.025656419,
-0.014806349,
0.018455487,
0.015662845,
0.06915149,
0.010516812,
-0.089585036,
0.008974703,
-0.03546011,
0.051605362,
0.017639367,
0.06784119,
-0.025227197,
-0.02218049,
-0.08571222,
0.061407767,
0.07101854,
-0.0015687044,
0.0552812,
0.041261755,
-0.04599905,
-0.037977435,
0.09936557,
-0.06434841,
0.07501731,
0.066902496,
0.012648426,
0.011582255,
0.06661294,
0.083571374,
-0.055283356,
0.03757587,
0.043382276,
0.059041478,
0.05697601,
-0.027656026,
-0.00018056732,
-0.010140095,
-0.023275472,
-0.040977217,
-0.005133792,
0.06462846,
-0.015096942,
-0.04108324,
0.013807046,
-0.0132436985,
-0.0409684,
-0.021471,
0.0037039323,
0.046062514,
0.02737808,
-0.00920106,
0.024913019,
0.027817331,
0.011912643,
0.07246419,
-0.04599433,
-0.033524312,
0.031872146,
-0.0017134913,
-0.030329252,
0.021338653,
0.05012564,
-0.006607668,
0.005844455,
-0.049508616,
2.2928853e-05,
0.033044565,
0.07586274,
0.009486847,
-0.0023229297,
0.06325722,
0.00738681,
0.067748666,
-0.08857338,
0.06831014,
0.004754484,
0.080638014,
-0.02170178,
0.02064579,
0.082571104,
0.03911663,
0.039066754,
-1.7561364e-08,
-0.019284483,
-0.12392779,
0.018866375,
0.03889621,
0.003943188,
0.017261673,
-0.07242176,
0.010595698,
-0.032426864,
-0.07068107,
0.027171722,
-0.03246599,
-0.03428291,
0.00012699052,
-0.07441138,
-0.061249536,
0.0033102953,
-0.030616652,
0.03753816,
0.01306021,
-0.028998207,
0.0026073754,
0.023053057,
-0.008261539,
0.027366739,
0.041916993,
0.07509517,
0.09308863,
-0.056609552,
-0.102597944,
0.04124349,
-0.025973717,
0.013900997,
0.0023358366,
-0.07526654,
0.07490994,
0.14500658,
0.046976004,
-0.038609706,
0.009254456,
-0.06991555,
0.011762833,
0.021508927,
0.010407092,
-0.016874917,
-0.05774139,
-0.075218946,
-0.07250317,
-0.03090425,
-0.11079973,
-0.024827244,
0.006594173,
-0.027638564,
0.08827356,
-0.04458921,
-0.041934635,
0.021976575,
0.015851213,
-0.07105452,
0.10627529,
0.058465157,
0.0026831552,
-0.006616891,
-0.08650754
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 10,
"total_tokens": 10
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

View file

@ -0,0 +1,424 @@
{
"test_id": "tests/integration/vector_io/test_openai_vector_stores.py::test_openai_vector_store_attach_file[client_with_models-emb=ollama/all-minilm:l6-v2:dim=384]",
"request": {
"method": "POST",
"url": "http://0.0.0.0:11434/v1/v1/embeddings",
"headers": {},
"body": {
"model": "all-minilm:l6-v2",
"input": [
"The secret string is foobazbar."
],
"encoding_format": "float"
},
"endpoint": "/v1/embeddings",
"model": "all-minilm:l6-v2"
},
"response": {
"body": {
"__type__": "openai.types.create_embedding_response.CreateEmbeddingResponse",
"__data__": {
"data": [
{
"embedding": [
-0.060630284,
0.06372823,
-0.059383437,
-0.010313639,
-0.11985778,
0.033409074,
0.056847293,
-0.0064553,
0.029896382,
-0.05037607,
0.015193001,
-0.0634204,
0.015119892,
-0.08354324,
0.0092577925,
0.044272587,
-0.024397198,
-0.05100177,
-0.028086444,
-0.07390362,
0.07088186,
0.08101153,
0.006050408,
-0.043090094,
0.010714593,
-0.01581376,
0.0351736,
0.06538307,
0.03639655,
-0.05625738,
0.073681176,
0.04730274,
0.067169026,
-0.01207242,
-0.018193275,
0.0042488067,
0.029168725,
0.0067459582,
0.037927665,
0.0024767139,
0.014044963,
0.022671249,
-0.090508185,
0.041952047,
-0.07933115,
0.031992197,
-0.038355146,
0.037013844,
-0.0036946274,
-0.016986867,
0.03696087,
-0.07697335,
-0.020080294,
0.07733012,
0.04521822,
-0.007816803,
-0.0058926586,
0.009962128,
0.033492323,
0.09000152,
0.016161384,
0.036999356,
-0.039193578,
-0.010969346,
0.023929566,
-0.03698458,
-0.008227196,
0.018780757,
-0.0006967325,
-0.062018193,
-0.030388007,
-0.037649162,
-0.04654288,
0.038450293,
-0.010377299,
-0.032971557,
0.013547814,
-0.059036925,
0.0630603,
0.0159564,
-0.04845087,
-0.069917254,
-0.022502322,
0.04408022,
0.03618941,
0.060470726,
-0.04313285,
0.028797466,
0.0062393937,
0.01027349,
-0.078714885,
-0.091531575,
0.04391341,
0.013202597,
-0.0037814155,
0.0102497,
0.020225797,
0.05634384,
-0.09700619,
0.06577961,
0.047118917,
0.01876648,
0.12445029,
-0.06447121,
-0.012632697,
0.016056264,
0.08604982,
0.024878234,
0.10627678,
-0.043176394,
-0.046339765,
-0.03149599,
-0.001784808,
-0.023469802,
-0.05079461,
0.0046657966,
0.043237828,
0.057146583,
-0.065833576,
0.032975562,
-0.028763266,
0.037831448,
0.00017829033,
0.043322463,
-0.13265091,
0.0263673,
-0.04247752,
-3.3340873e-33,
-0.0022191573,
0.050657377,
0.028066125,
-0.033898965,
-0.0045730886,
-0.034653578,
-0.08628417,
0.043108672,
0.01022734,
0.044009056,
-0.03020062,
-0.0936044,
-0.06522928,
-0.059762992,
0.037560984,
-0.025942331,
-0.06655938,
0.0043691625,
0.018846871,
-0.035582166,
0.02240012,
0.08943218,
0.033568345,
-0.11379316,
0.03822112,
-0.044403847,
0.10261262,
-0.07330182,
0.089390896,
0.056668896,
-0.009407597,
-0.0646505,
0.016652016,
0.007326742,
0.005187682,
0.0051324354,
-0.013595071,
-0.04918112,
-0.06672084,
0.010838405,
0.04638185,
-0.11490209,
-0.055054087,
0.040443793,
-0.032746885,
0.03498173,
-0.023567867,
-0.012213799,
0.048050664,
0.01159698,
0.007860181,
0.03801084,
-0.027765153,
0.003296162,
-0.0033349432,
0.006083357,
0.03200884,
0.048306234,
0.013800832,
0.036165927,
-0.022672432,
0.09197581,
0.029846204,
0.08112345,
-0.08677228,
-0.028041098,
0.0556574,
-0.030357547,
-0.016538681,
0.031826265,
-0.07586954,
-0.009915978,
0.028101236,
0.002207158,
-0.10496646,
-0.023673821,
-0.024204832,
-0.0003132271,
0.0016462951,
-0.037603874,
0.025533162,
-0.05221861,
0.021656586,
0.099111386,
-0.06896361,
-0.018568028,
0.07245527,
-0.10582686,
-0.08505038,
-0.029969748,
-0.015717981,
-0.056855034,
-0.02698479,
-0.06410572,
0.0057078917,
1.2902391e-33,
0.05490771,
-0.036417797,
-0.0023541928,
-0.03591478,
0.106852315,
-0.04931468,
0.037884213,
0.050633065,
-0.083874516,
-0.018756155,
0.0036251817,
0.028974183,
-0.0027879397,
-0.036439158,
0.11148004,
0.051007163,
0.040258586,
0.09245398,
-0.01367112,
-0.070999645,
-0.043213032,
-0.060117763,
-0.03019449,
0.009107182,
-0.044254936,
0.04843456,
0.117205575,
-0.009833911,
0.0023962231,
0.09339494,
-0.059902366,
0.0101377955,
-0.03777244,
-0.04344207,
-0.14677393,
-0.022666233,
-0.008934328,
-0.02157697,
-0.021902358,
-0.06611372,
0.016243221,
0.062620856,
0.01056146,
0.04721975,
-0.087221384,
0.009420561,
-0.017691165,
-0.03847053,
0.010398396,
0.022942957,
0.099518456,
-0.021421565,
0.0016765085,
-0.039359514,
0.01641369,
0.039669517,
-0.119695365,
0.009885617,
0.003855461,
0.018273395,
-0.0454586,
0.0020496584,
0.024263415,
0.016978405,
0.06884217,
-0.027432522,
-0.01813802,
0.053840507,
-0.028815664,
-0.045221787,
0.11472852,
0.019796453,
-0.05785514,
0.016556906,
-0.07362942,
0.04025756,
-0.01510899,
0.0067040483,
-0.049666926,
0.045941774,
0.077951804,
-0.042951427,
0.021852365,
0.063826546,
0.08110754,
-0.070652775,
-0.03245094,
0.09259784,
-0.020451743,
0.0701599,
-0.020740295,
0.09339449,
-0.051164806,
0.039440546,
0.02560772,
-1.6767814e-08,
0.001529873,
0.0080792755,
-0.017666567,
-0.034070052,
0.06805411,
0.07387949,
-0.07592055,
-0.11369049,
-0.022008128,
0.009088418,
0.03108134,
-0.0056734695,
-0.0462051,
0.0037219985,
0.013269294,
-0.03213892,
-0.05557376,
-0.010602884,
0.006751397,
-0.025462827,
-0.0836812,
0.08886153,
0.005159859,
-0.051621262,
-0.051873572,
0.039706588,
-0.042155124,
0.057125967,
0.088910565,
0.049736783,
0.04144574,
0.094677895,
-0.037107926,
-0.06845684,
-0.061673928,
0.09891817,
-0.05952751,
-0.0331722,
-0.026014913,
0.077612035,
0.056150436,
0.010709955,
0.018974187,
0.056079865,
-0.041700333,
-0.02731697,
0.10184176,
-0.036189064,
-0.029914921,
-0.043333948,
0.043660097,
0.018800316,
-0.0042763646,
0.055898346,
-0.0034344571,
0.060258396,
-0.1337251,
0.008184424,
-0.031549457,
0.022398692,
0.037932154,
0.024529235,
0.068037644,
0.07021777
],
"index": 0,
"object": "embedding"
}
],
"model": "all-minilm:l6-v2",
"object": "list",
"usage": {
"prompt_tokens": 9,
"total_tokens": 9
}
}
},
"is_streaming": false
},
"id_normalization_mapping": {}
}

Some files were not shown because too many files have changed in this diff Show more