Sha256: cc2c76ea75a726992153cad14b5cc1ecc51f616375d5c5319ee2eb543654427b

Contents?: true

Size: 751 Bytes

Versions: 1

Compression:

Stored size: 751 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Roseflow
  module OpenAI
    module Operations
      # Embedding operation.
      #
      # Get a vector representation of a given input that can be easily
      # consumed by machine learning models and algorithms.
      #
      # See https://platform.openai.com/docs/api-reference/embeddings
      # for more information.
      #
      # Many of the attributes are actually optional for the API, but we
      # provide defaults to them. This may change in the future.
      class Embedding < Base
        attribute :input, Types::OpenAI::StringOrArray
        attribute? :user, Types::String

        attribute :path, Types::String.default("/v1/embeddings")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roseflow-openai-0.2.0 lib/roseflow/openai/operations/embedding.rb