Skip to content

Commit

Permalink
Remove VectorContent
Browse files Browse the repository at this point in the history
  • Loading branch information
PederHP committed Jan 23, 2025
1 parent 3845ece commit 01f091b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
32 changes: 0 additions & 32 deletions schema/draft/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@
},
{
"$ref": "#/definitions/EmbeddedResource"
},
{
"$ref": "#/definitions/VectorContent"
}
]
},
Expand Down Expand Up @@ -246,9 +243,6 @@
},
{
"$ref": "#/definitions/EmbeddedResource"
},
{
"$ref": "#/definitions/VectorContent"
}
],
"description": "The content part of the individual augmented result content."
Expand Down Expand Up @@ -2374,32 +2368,6 @@
"params"
],
"type": "object"
},
"VectorContent": {
"description": "Vector representation of content.",
"properties": {
"dimensions": {
"description": "The dimensions of the vector. For future compatibility with sparse vectors, this should be set to the length of the values array.",
"type": "integer"
},
"type": {
"const": "vector",
"type": "string"
},
"values": {
"description": "The vector values.",
"items": {
"type": "integer"
},
"type": "array"
}
},
"required": [
"dimensions",
"type",
"values"
],
"type": "object"
}
}
}
Expand Down
19 changes: 2 additions & 17 deletions schema/draft/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ export interface AugmentRequest {
/**
* The context to augment. This can include text, images, or other resources.
*/
context: (TextContent | ImageContent | AudioContent | EmbeddedResource | VectorContent)[];
context: (TextContent | ImageContent | AudioContent | EmbeddedResource)[];
/**
* Additional parameters for the augmentation.
* maxResult and minRelevance are common parameters for augmentations that return multiple results, but the exact parameters are server-specific.
Expand All @@ -765,7 +765,7 @@ export interface AugmentedContent {
/**
* The content part of the individual augmented result content.
*/
content: TextContent | ImageContent | AudioContent | EmbeddedResource | VectorContent;
content: TextContent | ImageContent | AudioContent | EmbeddedResource;
/**
* The properties of the individual augmented result content.
*/
Expand Down Expand Up @@ -800,21 +800,6 @@ export interface AugmentResult extends Result {
metadata?: object;
}

/**
* Vector representation of content.
*/
export interface VectorContent {
type: "vector";
/**
* The vector values.
*/
values: number[];
/**
* The dimensions of the vector. For future compatibility with sparse vectors, this should be set to the length of the values array.
*/
dimensions: number;
}

/**
* Describes an augmentation capability offered by the server.
*/
Expand Down

0 comments on commit 01f091b

Please sign in to comment.