model

package
v0.0.0-...-f4df796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AddModelDeploymentInput

type AddModelDeploymentInput struct {
	ID     string `json:"id"`
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

type AddModelInput

type AddModelInput struct {
	Type        ModelType         `json:"type"`
	HuggingFace *HuggingFaceInput `json:"huggingFace,omitempty"`
}

type AddPipelineDeploymentInput

type AddPipelineDeploymentInput struct {
	ID      string `json:"id"`
	Enabled bool   `json:"enabled"`
}

type AddPipelineInput

type AddPipelineInput struct {
	Type                 PipelineType                  `json:"type"`
	Name                 string                        `json:"name"`
	RepositoryEmbeddings *AddRepositoryEmbeddingsInput `json:"repositoryEmbeddings,omitempty"`
}

type AddRepositoryEmbeddingsInput

type AddRepositoryEmbeddingsInput struct {
	RepositoryID string `json:"repositoryID"`
	ModelID      string `json:"modelID"`
	StorageID    string `json:"storageID"`
}

type AddRepositoryInput

type AddRepositoryInput struct {
	URL    *string         `json:"url,omitempty"`
	Token  *string         `json:"token,omitempty"`
	Type   *RepositoryType `json:"type,omitempty"`
	Owner  *string         `json:"owner,omitempty"`
	Name   *string         `json:"name,omitempty"`
	Branch *string         `json:"branch,omitempty"`
}

type AddStorageDeploymentInput

type AddStorageDeploymentInput struct {
	ID     string `json:"id"`
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

type AddStorageInput

type AddStorageInput struct {
	Type     StorageType    `json:"type"`
	Name     string         `json:"name"`
	Postgres *PostgresInput `json:"postgres,omitempty"`
}

type HuggingFace

type HuggingFace struct {
	Organization      string `json:"organization"`
	Name              string `json:"name"`
	MaxSequenceLength int    `json:"maxSequenceLength"`
}

type HuggingFaceInput

type HuggingFaceInput struct {
	Organization      string `json:"organization"`
	Name              string `json:"name"`
	MaxSequenceLength int    `json:"maxSequenceLength"`
}

type Model

type Model struct {
	ID          string           `json:"id"`
	Type        ModelType        `json:"type"`
	DisplayName string           `json:"displayName"`
	Status      ModelStatus      `json:"status"`
	HuggingFace *HuggingFace     `json:"huggingFace,omitempty"`
	Deployment  *ModelDeployment `json:"deployment,omitempty"`
}

type ModelDeployment

type ModelDeployment struct {
	Enabled bool   `json:"enabled"`
	CPU     string `json:"cpu"`
	Memory  string `json:"memory"`
}

type ModelStatus

type ModelStatus string
const (
	ModelStatusNotDeployed ModelStatus = "NOT_DEPLOYED"
	ModelStatusDeploying   ModelStatus = "DEPLOYING"
	ModelStatusReady       ModelStatus = "READY"
	ModelStatusError       ModelStatus = "ERROR"
)

func (ModelStatus) IsValid

func (e ModelStatus) IsValid() bool

func (ModelStatus) MarshalGQL

func (e ModelStatus) MarshalGQL(w io.Writer)

func (ModelStatus) String

func (e ModelStatus) String() string

func (*ModelStatus) UnmarshalGQL

func (e *ModelStatus) UnmarshalGQL(v interface{}) error

type ModelType

type ModelType string
const (
	ModelTypeHuggingface ModelType = "HUGGINGFACE"
	ModelTypeOpenai      ModelType = "OPENAI"
	ModelTypeExternal    ModelType = "EXTERNAL"
)

func (ModelType) IsValid

func (e ModelType) IsValid() bool

func (ModelType) MarshalGQL

func (e ModelType) MarshalGQL(w io.Writer)

func (ModelType) String

func (e ModelType) String() string

func (*ModelType) UnmarshalGQL

func (e *ModelType) UnmarshalGQL(v interface{}) error

type Mutation

type Mutation struct {
}

type Pipeline

type Pipeline struct {
	ID                   string                `json:"id"`
	Name                 string                `json:"name"`
	Type                 PipelineType          `json:"type"`
	Enabled              bool                  `json:"enabled"`
	Status               PipelineStatus        `json:"status"`
	RepositoryEmbeddings *RepositoryEmbeddings `json:"repositoryEmbeddings,omitempty"`
}

type PipelineExecution

type PipelineExecution struct {
	ID     string                  `json:"id"`
	Status PipelineExecutionStatus `json:"status"`
}

type PipelineExecutionStatus

type PipelineExecutionStatus string
const (
	PipelineExecutionStatusActive    PipelineExecutionStatus = "ACTIVE"
	PipelineExecutionStatusSucceeded PipelineExecutionStatus = "SUCCEEDED"
	PipelineExecutionStatusFailed    PipelineExecutionStatus = "FAILED"
	PipelineExecutionStatusPending   PipelineExecutionStatus = "PENDING"
)

func (PipelineExecutionStatus) IsValid

func (e PipelineExecutionStatus) IsValid() bool

func (PipelineExecutionStatus) MarshalGQL

func (e PipelineExecutionStatus) MarshalGQL(w io.Writer)

func (PipelineExecutionStatus) String

func (e PipelineExecutionStatus) String() string

func (*PipelineExecutionStatus) UnmarshalGQL

func (e *PipelineExecutionStatus) UnmarshalGQL(v interface{}) error

type PipelineStatus

type PipelineStatus string
const (
	PipelineStatusReady   PipelineStatus = "READY"
	PipelineStatusRunning PipelineStatus = "RUNNING"
	PipelineStatusError   PipelineStatus = "ERROR"
)

func (PipelineStatus) IsValid

func (e PipelineStatus) IsValid() bool

func (PipelineStatus) MarshalGQL

func (e PipelineStatus) MarshalGQL(w io.Writer)

func (PipelineStatus) String

func (e PipelineStatus) String() string

func (*PipelineStatus) UnmarshalGQL

func (e *PipelineStatus) UnmarshalGQL(v interface{}) error

type PipelineType

type PipelineType string
const (
	PipelineTypeRepositoryEmbeddings PipelineType = "REPOSITORY_EMBEDDINGS"
)

func (PipelineType) IsValid

func (e PipelineType) IsValid() bool

func (PipelineType) MarshalGQL

func (e PipelineType) MarshalGQL(w io.Writer)

func (PipelineType) String

func (e PipelineType) String() string

func (*PipelineType) UnmarshalGQL

func (e *PipelineType) UnmarshalGQL(v interface{}) error

type PostgresInput

type PostgresInput struct {
	External bool   `json:"external"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
	Database string `json:"database"`
	SSLMode  string `json:"SSLMode"`
	Timezone string `json:"timezone"`
}

type Query

type Query struct {
}

type QueryInput

type QueryInput struct {
	Query string `json:"query"`
	Page  *int   `json:"page,omitempty"`
	Limit *int   `json:"limit,omitempty"`
}

type Repository

type Repository struct {
	ID          string         `json:"id"`
	Type        RepositoryType `json:"type"`
	DisplayName string         `json:"displayName"`
	Owner       string         `json:"owner"`
	Name        string         `json:"name"`
	URL         string         `json:"url"`
}

type RepositoryEmbeddings

type RepositoryEmbeddings struct {
	RepositoryID string `json:"repositoryID"`
	ModelID      string `json:"modelID"`
	StorageID    string `json:"storageID"`
}

type RepositoryType

type RepositoryType string
const (
	RepositoryTypeGithub    RepositoryType = "GITHUB"
	RepositoryTypeGitlab    RepositoryType = "GITLAB"
	RepositoryTypeBitbucket RepositoryType = "BITBUCKET"
)

func (RepositoryType) IsValid

func (e RepositoryType) IsValid() bool

func (RepositoryType) MarshalGQL

func (e RepositoryType) MarshalGQL(w io.Writer)

func (RepositoryType) String

func (e RepositoryType) String() string

func (*RepositoryType) UnmarshalGQL

func (e *RepositoryType) UnmarshalGQL(v interface{}) error

type SearchResult

type SearchResult struct {
	ID         string  `json:"id"`
	ChunkID    int     `json:"chunkID"`
	Content    string  `json:"content"`
	Hash       string  `json:"hash"`
	Path       string  `json:"path"`
	Owner      string  `json:"owner"`
	Repo       string  `json:"repo"`
	StartIndex int     `json:"startIndex"`
	EndIndex   int     `json:"endIndex"`
	StartLine  int     `json:"startLine"`
	Score      float64 `json:"score"`
}

type Storage

type Storage struct {
	ID         string             `json:"id"`
	Name       string             `json:"name"`
	Type       StorageType        `json:"type"`
	Status     StorageStatus      `json:"status"`
	Deployment *StorageDeployment `json:"deployment,omitempty"`
}

type StorageDeployment

type StorageDeployment struct {
	Enabled bool   `json:"enabled"`
	CPU     string `json:"cpu"`
	Memory  string `json:"memory"`
}

type StorageStatus

type StorageStatus string
const (
	StorageStatusNotDeployed StorageStatus = "NOT_DEPLOYED"
	StorageStatusDeploying   StorageStatus = "DEPLOYING"
	StorageStatusReady       StorageStatus = "READY"
	StorageStatusError       StorageStatus = "ERROR"
)

func (StorageStatus) IsValid

func (e StorageStatus) IsValid() bool

func (StorageStatus) MarshalGQL

func (e StorageStatus) MarshalGQL(w io.Writer)

func (StorageStatus) String

func (e StorageStatus) String() string

func (*StorageStatus) UnmarshalGQL

func (e *StorageStatus) UnmarshalGQL(v interface{}) error

type StorageType

type StorageType string
const (
	StorageTypeRedis         StorageType = "REDIS"
	StorageTypePostgres      StorageType = "POSTGRES"
	StorageTypeElasticsearch StorageType = "ELASTICSEARCH"
)

func (StorageType) IsValid

func (e StorageType) IsValid() bool

func (StorageType) MarshalGQL

func (e StorageType) MarshalGQL(w io.Writer)

func (StorageType) String

func (e StorageType) String() string

func (*StorageType) UnmarshalGQL

func (e *StorageType) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL