Skip to main content
All docs
V26.1
  • SemanticSearchBehavior.Create(Type, String, String, String, ScoreThresholdFilter, Double, Int32, ControlSearchMode, Boolean, SemanticSearchEvents) Method

    Creates a SemanticSearchBehavior and initializes it with the specified settings.

    Namespace: DevExpress.AIIntegration.WinForms

    Assembly: DevExpress.AIIntegration.WinForms.SemanticSearch.v26.1.dll

    Declaration

    [Browsable(false)]
    [EditorBrowsable(EditorBrowsableState.Never)]
    public static SemanticSearchBehavior Create(
        Type behaviorSourceType,
        string vectorCollectionName = "",
        string embeddingGeneratorName = "",
        string dataSourceKeyField = "",
        ScoreThresholdFilter thresholdFilter = ScoreThresholdFilter.None,
        double scoreThreshold = 0,
        int searchResultCount = 10,
        ControlSearchMode searchMode = ControlSearchMode.Standard,
        bool allowChangeSearchMode = true,
        SemanticSearchEvents events = null
    )

    Parameters

    Name Type Description
    behaviorSourceType Type

    The type of the Semantic Search behavior (for example, SemanticSearchBehavior).

    Optional Parameters

    Name Type Default
    vectorCollectionName String String.Empty
    embeddingGeneratorName String String.Empty
    dataSourceKeyField String String.Empty
    thresholdFilter DevExpress.AIIntegration.SemanticSearch.ScoreThresholdFilter None
    scoreThreshold Double 0
    searchResultCount Int32 10
    searchMode DevExpress.AIIntegration.SemanticSearch.ControlSearchMode Standard
    allowChangeSearchMode Boolean True
    events DevExpress.AIIntegration.WinForms.SemanticSearchEvents null

    Returns

    Type
    SemanticSearchBehavior
    See Also