Class VectorStoreSearchResponse.Builder
-
- All Implemented Interfaces:
public final class VectorStoreSearchResponse.Builder
A builder for VectorStoreSearchResponse.
-
-
Method Summary
-
-
Method Detail
-
attributes
final VectorStoreSearchResponse.Builder attributes(VectorStoreSearchResponse.Attributes attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
attributes
final VectorStoreSearchResponse.Builder attributes(Optional<VectorStoreSearchResponse.Attributes> attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
attributes
final VectorStoreSearchResponse.Builder attributes(JsonField<VectorStoreSearchResponse.Attributes> attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
content
final VectorStoreSearchResponse.Builder content(List<VectorStoreSearchResponse.Content> content)
Content chunks from the file.
-
content
final VectorStoreSearchResponse.Builder content(JsonField<List<VectorStoreSearchResponse.Content>> content)
Content chunks from the file.
-
addContent
final VectorStoreSearchResponse.Builder addContent(VectorStoreSearchResponse.Content content)
Content chunks from the file.
-
fileId
final VectorStoreSearchResponse.Builder fileId(String fileId)
The ID of the vector store file.
-
fileId
final VectorStoreSearchResponse.Builder fileId(JsonField<String> fileId)
The ID of the vector store file.
-
filename
final VectorStoreSearchResponse.Builder filename(String filename)
The name of the vector store file.
-
filename
final VectorStoreSearchResponse.Builder filename(JsonField<String> filename)
The name of the vector store file.
-
score
final VectorStoreSearchResponse.Builder score(Double score)
The similarity score for the result.
-
score
final VectorStoreSearchResponse.Builder score(JsonField<Double> score)
The similarity score for the result.
-
additionalProperties
final VectorStoreSearchResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStoreSearchResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStoreSearchResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStoreSearchResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStoreSearchResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStoreSearchResponse build()
-
-
-
-