QueryDTO Class
POST body schema to query the knowledgebase.
- Inheritance
-
QueryDTO
Constructor
QueryDTO(*, qna_id: Optional[str] = None, question: Optional[str] = None, top: Optional[int] = None, user_id: Optional[str] = None, is_test: Optional[bool] = None, score_threshold: Optional[float] = None, context=None, ranker_type: Optional[str] = None, strict_filters=None, strict_filters_compound_operation_type=None, answer_span_request=None, **kwargs)
Parameters
- qna_id
- str
Required
Exact qnaId to fetch from the knowledgebase, this field takes priority over question.
- strict_filters
- list[MetadataDTO]
Required
Find QnAs that are associated with the given list of metadata.
- strict_filters_compound_operation_type
- str or StrictFiltersCompoundOperationType
Required
Optional field. Set to 'OR' for using OR operation for strict filters. Possible values include: 'AND', 'OR'
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ