Documentation
¶
Index ¶
- Variables
- type AddModelDeploymentInput
- type AddModelInput
- type AddPipelineDeploymentInput
- type AddPipelineInput
- type AddRepositoryEmbeddingsInput
- type AddRepositoryInput
- type AddStorageDeploymentInput
- type AddStorageInput
- type HuggingFace
- type HuggingFaceInput
- type Model
- type ModelDeployment
- type ModelStatus
- type ModelType
- type Mutation
- type Pipeline
- type PipelineExecution
- type PipelineExecutionStatus
- type PipelineStatus
- type PipelineType
- type PostgresInput
- type Query
- type QueryInput
- type Repository
- type RepositoryEmbeddings
- type RepositoryType
- type SearchResult
- type Storage
- type StorageDeployment
- type StorageStatus
- type StorageType
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModelStatus = []ModelStatus{ ModelStatusNotDeployed, ModelStatusDeploying, ModelStatusReady, ModelStatusError, }
View Source
var AllModelType = []ModelType{ ModelTypeHuggingface, ModelTypeOpenai, ModelTypeExternal, }
View Source
var AllPipelineExecutionStatus = []PipelineExecutionStatus{ PipelineExecutionStatusActive, PipelineExecutionStatusSucceeded, PipelineExecutionStatusFailed, PipelineExecutionStatusPending, }
View Source
var AllPipelineStatus = []PipelineStatus{ PipelineStatusReady, PipelineStatusRunning, PipelineStatusError, }
View Source
var AllPipelineType = []PipelineType{ PipelineTypeRepositoryEmbeddings, }
View Source
var AllRepositoryType = []RepositoryType{ RepositoryTypeGithub, RepositoryTypeGitlab, RepositoryTypeBitbucket, }
View Source
var AllStorageStatus = []StorageStatus{ StorageStatusNotDeployed, StorageStatusDeploying, StorageStatusReady, StorageStatusError, }
View Source
var AllStorageType = []StorageType{ StorageTypeRedis, StorageTypePostgres, StorageTypeElasticsearch, }
Functions ¶
This section is empty.
Types ¶
type AddModelDeploymentInput ¶
type AddModelInput ¶
type AddModelInput struct {
Type ModelType `json:"type"`
HuggingFace *HuggingFaceInput `json:"huggingFace,omitempty"`
}
type AddPipelineInput ¶
type AddPipelineInput struct {
Type PipelineType `json:"type"`
Name string `json:"name"`
RepositoryEmbeddings *AddRepositoryEmbeddingsInput `json:"repositoryEmbeddings,omitempty"`
}
type AddRepositoryInput ¶
type AddStorageInput ¶
type AddStorageInput struct {
Type StorageType `json:"type"`
Name string `json:"name"`
Postgres *PostgresInput `json:"postgres,omitempty"`
}
type HuggingFace ¶
type HuggingFaceInput ¶
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 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
func (ModelType) MarshalGQL ¶
func (*ModelType) UnmarshalGQL ¶
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 QueryInput ¶
type Repository ¶
type RepositoryEmbeddings ¶
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 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
Click to show internal directories.
Click to hide internal directories.