v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	Group   = "retriever.arcadia.kubeagi.k8s.com.cn"
	Version = "v1alpha1"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CommonRetrieverConfig

type CommonRetrieverConfig struct {
	// ScoreThreshold is the cosine distance float score threshold. Lower score represents more similarity.
	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:Maximum=1
	// +kubebuilder:default=0.3
	ScoreThreshold float32 `json:"scoreThreshold,omitempty"`
	// NumDocuments is the max number of documents to return.
	// +kubebuilder:default=5
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=10
	NumDocuments int `json:"numDocuments,omitempty"`
	// DocNullReturn is the return statement when the query result is empty from the retriever.
	// +kubebuilder:default="未找到您询问的内容,请详细描述您的问题"
	DocNullReturn string `json:"docNullReturn,omitempty"`
}

func (*CommonRetrieverConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonRetrieverConfig.

func (*CommonRetrieverConfig) DeepCopyInto

func (in *CommonRetrieverConfig) DeepCopyInto(out *CommonRetrieverConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeBaseRetriever

type KnowledgeBaseRetriever struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KnowledgeBaseRetrieverSpec   `json:"spec,omitempty"`
	Status KnowledgeBaseRetrieverStatus `json:"status,omitempty"`
}

KnowledgeBaseRetriever is the Schema for the KnowledgeBaseRetriever API

func (*KnowledgeBaseRetriever) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetriever.

func (*KnowledgeBaseRetriever) DeepCopyInto

func (in *KnowledgeBaseRetriever) DeepCopyInto(out *KnowledgeBaseRetriever)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnowledgeBaseRetriever) DeepCopyObject

func (in *KnowledgeBaseRetriever) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KnowledgeBaseRetriever) SetRef

func (c *KnowledgeBaseRetriever) SetRef()

type KnowledgeBaseRetrieverList

type KnowledgeBaseRetrieverList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KnowledgeBaseRetriever `json:"items"`
}

KnowledgeBaseRetrieverList contains a list of KnowledgeBaseRetriever

func (*KnowledgeBaseRetrieverList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverList.

func (*KnowledgeBaseRetrieverList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnowledgeBaseRetrieverList) DeepCopyObject

func (in *KnowledgeBaseRetrieverList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KnowledgeBaseRetrieverSpec

type KnowledgeBaseRetrieverSpec struct {
	v1alpha1.CommonSpec   `json:",inline"`
	CommonRetrieverConfig `json:",inline"`
}

KnowledgeBaseRetrieverSpec defines the desired state of KnowledgeBaseRetriever

func (*KnowledgeBaseRetrieverSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverSpec.

func (*KnowledgeBaseRetrieverSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnowledgeBaseRetrieverStatus

type KnowledgeBaseRetrieverStatus struct {
	// ObservedGeneration is the last observed generation.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`

	// ConditionedStatus is the current status
	v1alpha1.ConditionedStatus `json:",inline"`
}

KnowledgeBaseRetrieverStatus defines the observed state of KnowledgeBaseRetriever

func (*KnowledgeBaseRetrieverStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverStatus.

func (*KnowledgeBaseRetrieverStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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