Package org.openapitools.client.model
Class UpdateChunkData
- java.lang.Object
-
- org.openapitools.client.model.UpdateChunkData
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class UpdateChunkData extends Object
UpdateChunkData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateChunkData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CHUNK_HTMLstatic StringSERIALIZED_NAME_CHUNK_IDstatic StringSERIALIZED_NAME_GROUP_IDSstatic StringSERIALIZED_NAME_GROUP_TRACKING_IDSstatic StringSERIALIZED_NAME_LINKstatic StringSERIALIZED_NAME_METADATAstatic StringSERIALIZED_NAME_TIME_STAMPstatic StringSERIALIZED_NAME_TRACKING_IDstatic StringSERIALIZED_NAME_WEIGHT
-
Constructor Summary
Constructors Constructor Description UpdateChunkData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateChunkDataaddGroupIdsItem(UUID groupIdsItem)UpdateChunkDataaddGroupTrackingIdsItem(String groupTrackingIdsItem)UpdateChunkDatachunkHtml(String chunkHtml)UpdateChunkDatachunkId(UUID chunkId)booleanequals(Object o)static UpdateChunkDatafromJson(String jsonString)Create an instance of UpdateChunkData given an JSON stringStringgetChunkHtml()HTML content of the chunk you want to update.@Valid UUIDgetChunkId()Id of the chunk you want to update.@Valid List<UUID>getGroupIds()Group ids are the ids of the groups that the chunk should be placed into.List<String>getGroupTrackingIds()Group tracking_ids are the tracking_ids of the groups that the chunk should be placed into.StringgetLink()Link of the chunk you want to update.ObjectgetMetadata()The metadata is a JSON object which can be used to filter chunks.StringgetTimeStamp()Time_stamp should be an ISO 8601 combined date and time without timezone.StringgetTrackingId()Tracking_id of the chunk you want to update.DoublegetWeight()Weight is a float which can be used to bias search results.UpdateChunkDatagroupIds(List<UUID> groupIds)UpdateChunkDatagroupTrackingIds(List<String> groupTrackingIds)inthashCode()UpdateChunkDatalink(String link)UpdateChunkDatametadata(Object metadata)voidsetChunkHtml(String chunkHtml)voidsetChunkId(UUID chunkId)voidsetGroupIds(List<UUID> groupIds)voidsetGroupTrackingIds(List<String> groupTrackingIds)voidsetLink(String link)voidsetMetadata(Object metadata)voidsetTimeStamp(String timeStamp)voidsetTrackingId(String trackingId)voidsetWeight(Double weight)UpdateChunkDatatimeStamp(String timeStamp)StringtoJson()Convert an instance of UpdateChunkData to an JSON stringStringtoString()UpdateChunkDatatrackingId(String trackingId)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundUpdateChunkDataweight(Double weight)
-
-
-
Field Detail
-
SERIALIZED_NAME_CHUNK_HTML
public static final String SERIALIZED_NAME_CHUNK_HTML
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CHUNK_ID
public static final String SERIALIZED_NAME_CHUNK_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GROUP_IDS
public static final String SERIALIZED_NAME_GROUP_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GROUP_TRACKING_IDS
public static final String SERIALIZED_NAME_GROUP_TRACKING_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINK
public static final String SERIALIZED_NAME_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIME_STAMP
public static final String SERIALIZED_NAME_TIME_STAMP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRACKING_ID
public static final String SERIALIZED_NAME_TRACKING_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WEIGHT
public static final String SERIALIZED_NAME_WEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
chunkHtml
public UpdateChunkData chunkHtml(String chunkHtml)
-
getChunkHtml
@Nullable public String getChunkHtml()
HTML content of the chunk you want to update. This can also be plaintext. The innerText of the HTML will be used to create the embedding vector. The point of using HTML is for convienience, as some users have applications where users submit HTML content. If no chunk_html is provided, the existing chunk_html will be used.- Returns:
- chunkHtml
-
setChunkHtml
public void setChunkHtml(String chunkHtml)
-
chunkId
public UpdateChunkData chunkId(UUID chunkId)
-
getChunkId
@Nullable @Valid public @Valid UUID getChunkId()
Id of the chunk you want to update. You can provide either the chunk_id or the tracking_id. If both are provided, the chunk_id will be used.- Returns:
- chunkId
-
setChunkId
public void setChunkId(UUID chunkId)
-
groupIds
public UpdateChunkData groupIds(List<UUID> groupIds)
-
addGroupIdsItem
public UpdateChunkData addGroupIdsItem(UUID groupIdsItem)
-
getGroupIds
@Nullable @Valid public @Valid List<UUID> getGroupIds()
Group ids are the ids of the groups that the chunk should be placed into. This is useful for when you want to update a chunk and add it to a group or multiple groups in one request.- Returns:
- groupIds
-
groupTrackingIds
public UpdateChunkData groupTrackingIds(List<String> groupTrackingIds)
-
addGroupTrackingIdsItem
public UpdateChunkData addGroupTrackingIdsItem(String groupTrackingIdsItem)
-
getGroupTrackingIds
@Nullable public List<String> getGroupTrackingIds()
Group tracking_ids are the tracking_ids of the groups that the chunk should be placed into. This is useful for when you want to update a chunk and add it to a group or multiple groups in one request.- Returns:
- groupTrackingIds
-
link
public UpdateChunkData link(String link)
-
getLink
@Nullable public String getLink()
Link of the chunk you want to update. This can also be any string. Frequently, this is a link to the source of the chunk. The link value will not affect the embedding creation. If no link is provided, the existing link will be used.- Returns:
- link
-
setLink
public void setLink(String link)
-
metadata
public UpdateChunkData metadata(Object metadata)
-
getMetadata
@Nullable public Object getMetadata()
The metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. If no metadata is provided, the existing metadata will be used.- Returns:
- metadata
-
setMetadata
public void setMetadata(Object metadata)
-
timeStamp
public UpdateChunkData timeStamp(String timeStamp)
-
getTimeStamp
@Nullable public String getTimeStamp()
Time_stamp should be an ISO 8601 combined date and time without timezone. It is used for time window filtering and recency-biasing search results. If no time_stamp is provided, the existing time_stamp will be used.- Returns:
- timeStamp
-
setTimeStamp
public void setTimeStamp(String timeStamp)
-
trackingId
public UpdateChunkData trackingId(String trackingId)
-
getTrackingId
@Nullable public String getTrackingId()
Tracking_id of the chunk you want to update. This is required to match an existing chunk.- Returns:
- trackingId
-
setTrackingId
public void setTrackingId(String trackingId)
-
weight
public UpdateChunkData weight(Double weight)
-
getWeight
@Nullable public Double getWeight()
Weight is a float which can be used to bias search results. This is useful for when you want to bias search results for a chunk. The magnitude only matters relative to other chunks in the chunk's dataset dataset. If no weight is provided, the existing weight will be used.- Returns:
- weight
-
setWeight
public void setWeight(Double weight)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UpdateChunkData
-
fromJson
public static UpdateChunkData fromJson(String jsonString) throws IOException
Create an instance of UpdateChunkData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateChunkData
- Throws:
IOException- if the JSON string is invalid with respect to UpdateChunkData
-
toJson
public String toJson()
Convert an instance of UpdateChunkData to an JSON string- Returns:
- JSON string
-
-