Class UploadFileData


  • @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 UploadFileData
    extends Object
    UploadFileData
    • Constructor Detail

      • UploadFileData

        public UploadFileData()
    • Method Detail

      • getBase64File

        @Nonnull
        @NotNull
        public @NotNull String getBase64File()
        Base64 encoded file. Convert + to -, / to _, and remove the ending = if present. This is the standard base64url encoding.
        Returns:
        base64File
      • setBase64File

        public void setBase64File​(String base64File)
      • getCreateChunks

        @Nullable
        public Boolean getCreateChunks()
        Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users.
        Returns:
        createChunks
      • setCreateChunks

        public void setCreateChunks​(Boolean createChunks)
      • getDescription

        @Nullable
        public String getDescription()
        Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getFileMimeType

        @Nonnull
        @NotNull
        public @NotNull String getFileMimeType()
        MIME type of the file being uploaded.
        Returns:
        fileMimeType
      • setFileMimeType

        public void setFileMimeType​(String fileMimeType)
      • getFileName

        @Nonnull
        @NotNull
        public @NotNull String getFileName()
        Name of the file being uploaded, including the extension.
        Returns:
        fileName
      • setFileName

        public void setFileName​(String fileName)
      • getLink

        @Nullable
        public String getLink()
        Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.
        Returns:
        link
      • setLink

        public void setLink​(String link)
      • getMetadata

        @Nullable
        public Object getMetadata()
        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. Will be passed down to the file's chunks.
        Returns:
        metadata
      • setMetadata

        public void setMetadata​(Object metadata)
      • getTagSet

        @Nullable
        public List<String> getTagSet()
        Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them.
        Returns:
        tagSet
      • setTagSet

        public void setTagSet​(List<String> tagSet)
      • getTimeStamp

        @Nullable
        public String getTimeStamp()
        Time stamp should be an ISO 8601 combined date and time without timezone. Time_stamp is used for time window filtering and recency-biasing search results. Will be passed down to the file's chunks.
        Returns:
        timeStamp
      • setTimeStamp

        public void setTimeStamp​(String timeStamp)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates 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 UploadFileData
      • fromJson

        public static UploadFileData fromJson​(String jsonString)
                                       throws IOException
        Create an instance of UploadFileData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of UploadFileData
        Throws:
        IOException - if the JSON string is invalid with respect to UploadFileData
      • toJson

        public String toJson()
        Convert an instance of UploadFileData to an JSON string
        Returns:
        JSON string