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 ¶
const ( Group = "retriever.arcadia.kubeagi.k8s.com.cn" Version = "v1alpha1" )
Variables ¶
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 ¶
func (in *CommonRetrieverConfig) DeepCopy() *CommonRetrieverConfig
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 ¶
func (in *KnowledgeBaseRetriever) DeepCopy() *KnowledgeBaseRetriever
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 ¶
func (in *KnowledgeBaseRetrieverList) DeepCopy() *KnowledgeBaseRetrieverList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverList.
func (*KnowledgeBaseRetrieverList) DeepCopyInto ¶
func (in *KnowledgeBaseRetrieverList) DeepCopyInto(out *KnowledgeBaseRetrieverList)
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 ¶
func (in *KnowledgeBaseRetrieverSpec) DeepCopy() *KnowledgeBaseRetrieverSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverSpec.
func (*KnowledgeBaseRetrieverSpec) DeepCopyInto ¶
func (in *KnowledgeBaseRetrieverSpec) DeepCopyInto(out *KnowledgeBaseRetrieverSpec)
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 ¶
func (in *KnowledgeBaseRetrieverStatus) DeepCopy() *KnowledgeBaseRetrieverStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnowledgeBaseRetrieverStatus.
func (*KnowledgeBaseRetrieverStatus) DeepCopyInto ¶
func (in *KnowledgeBaseRetrieverStatus) DeepCopyInto(out *KnowledgeBaseRetrieverStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.