public class KnowledgeQaSearch extends AbstractModel
header, skipSign| Constructor and Description |
|---|
KnowledgeQaSearch() |
KnowledgeQaSearch(KnowledgeQaSearch source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Float |
getConfidence()
Get Retrieval confidence degree, valid for documents and Q&A.
|
Long |
getDocTopN()
Get Maximum number of documents recalls, defaults to 3, limited to 5.
|
Boolean |
getIsEnabled()
Get Knowledge source, whether to select.
|
Long |
getQaTopN()
Get Maximum number of Q&A recalls, defaults to 2, limited to 5.
|
Long |
getReplyFlexibility()
Get Q&A - reply flexibility, 1: directly reply if the answer has been accepted.
|
Long |
getResourceStatus()
Get Resource status, 1: the resource is available; 2: the resource is exhausted.
|
Boolean |
getShowSearchEngine()
Get Whether to display the search engine retrieval status.
|
String |
getType()
Get Knowledge source: doc (document), qa (question & answering), taskflow (business process), search (search enhancement).
|
Boolean |
getUseSearchEngine()
Get Search enhancement - search engine status.
|
void |
setConfidence(Float Confidence)
Set Retrieval confidence degree, valid for documents and Q&A.
|
void |
setDocTopN(Long DocTopN)
Set Maximum number of documents recalls, defaults to 3, limited to 5.
|
void |
setIsEnabled(Boolean IsEnabled)
Set Knowledge source, whether to select.
|
void |
setQaTopN(Long QaTopN)
Set Maximum number of Q&A recalls, defaults to 2, limited to 5.
|
void |
setReplyFlexibility(Long ReplyFlexibility)
Set Q&A - reply flexibility, 1: directly reply if the answer has been accepted.
|
void |
setResourceStatus(Long ResourceStatus)
Set Resource status, 1: the resource is available; 2: the resource is exhausted.
|
void |
setShowSearchEngine(Boolean ShowSearchEngine)
Set Whether to display the search engine retrieval status.
|
void |
setType(String Type)
Set Knowledge source: doc (document), qa (question & answering), taskflow (business process), search (search enhancement).
|
void |
setUseSearchEngine(Boolean UseSearchEngine)
Set Search enhancement - search engine status.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic KnowledgeQaSearch()
public KnowledgeQaSearch(KnowledgeQaSearch source)
public String getType()
public void setType(String Type)
Type - Knowledge source: doc (document), qa (question & answering), taskflow (business process), search (search enhancement).public Long getReplyFlexibility()
public void setReplyFlexibility(Long ReplyFlexibility)
ReplyFlexibility - Q&A - reply flexibility, 1: directly reply if the answer has been accepted. 2: reply after the accepted answer has been polished.public Boolean getUseSearchEngine()
public void setUseSearchEngine(Boolean UseSearchEngine)
UseSearchEngine - Search enhancement - search engine status.public Boolean getShowSearchEngine()
public void setShowSearchEngine(Boolean ShowSearchEngine)
ShowSearchEngine - Whether to display the search engine retrieval status.public Boolean getIsEnabled()
public void setIsEnabled(Boolean IsEnabled)
IsEnabled - Knowledge source, whether to select.public Long getQaTopN()
public void setQaTopN(Long QaTopN)
QaTopN - Maximum number of Q&A recalls, defaults to 2, limited to 5.public Long getDocTopN()
public void setDocTopN(Long DocTopN)
DocTopN - Maximum number of documents recalls, defaults to 3, limited to 5.public Float getConfidence()
public void setConfidence(Float Confidence)
Confidence - Retrieval confidence degree, valid for documents and Q&A. Value range: 0.01 - 0.99.public Long getResourceStatus()
public void setResourceStatus(Long ResourceStatus)
ResourceStatus - Resource status, 1: the resource is available; 2: the resource is exhausted.Copyright © 2025. All rights reserved.