appnode

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputLengthAnnotationKey  = v1alpha1.Group + `/input-rules`
	OutputLengthAnnotationKey = v1alpha1.Group + `/output-rules`
)

Variables

View Source
var (
	ChainRef = Ref{
		Group: "chain.arcadia.kubeagi.k8s.com.cn",
	}
	PromptRef = Ref{
		Kind:  "prompt",
		Group: "prompt.arcadia.kubeagi.k8s.com.cn",
	}
	LLMRef = Ref{
		Kind:  "LLM",
		Group: "arcadia.kubeagi.k8s.com.cn",
	}
	RetrieverRef = Ref{
		Group: "retriever.arcadia.kubeagi.k8s.com.cn",
	}
	KnowledgeBaseRef = Ref{
		Kind:  "KnowledgeBase",
		Group: "arcadia.kubeagi.k8s.com.cn",
	}
	InputRef = Ref{
		Kind: "Input",
	}
	OutputRef = Ref{
		Kind: "Output",
	}
	RetrievalQAChainRef = Ref{
		Group: "chain.arcadia.kubeagi.k8s.com.cn",
		Kind:  "RetrievalQAChain",
	}
	CommonRef = Ref{}
)

Functions

func SetRefAnnotations

func SetRefAnnotations(annotations map[string]string, inputRef []Ref, outputRef []Ref) map[string]string

Types

type Node

type Node interface {
	SetRef()
}

type Ref

type Ref struct {
	Kind   string `json:"kind,omitempty"`
	Group  string `json:"group,omitempty"`
	Length int    `json:"length,omitempty"`
}

func (*Ref) Len

func (r *Ref) Len(i int) Ref

Directories

Path Synopsis
agent
v1alpha1
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=arcadia.kubeagi.k8s.com.cn
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=arcadia.kubeagi.k8s.com.cn
chain
v1alpha1
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=chain.arcadia.kubeagi.k8s.com.cn
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=chain.arcadia.kubeagi.k8s.com.cn
documentloader
v1alpha1
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=arcadia.kubeagi.k8s.com.cn
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=arcadia.kubeagi.k8s.com.cn
prompt
v1alpha1
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=prompt.arcadia.kubeagi.k8s.com.cn
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=prompt.arcadia.kubeagi.k8s.com.cn
retriever
v1alpha1
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=retriever.arcadia.kubeagi.k8s.com.cn
Package v1alpha1 contains API Schema definitions for the arcadia v1alpha1 API group +kubebuilder:object:generate=true +groupName=retriever.arcadia.kubeagi.k8s.com.cn

Jump to

Keyboard shortcuts

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