AiRagControllerPostSearch - метод
Performs search for relevant results within a specified collection.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
[HttpPostAttribute("search/{collectionID:guid}")]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<List<AiRagSearchResult>>> PostSearch(
[FromRouteAttribute] Guid collectionID,
[FromBodyAttribute] string textQuery,
[FromQueryAttribute] AiRagSearchMode searchMode = AiRagSearchMode.Hybrid,
[FromQueryAttribute] int maxResultSize = 10,
[FromQueryAttribute] float minVectorSearchScore = 0.2f,
[FromQueryAttribute] float minFullTextSearchScore = 0.2f,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("search/{collectionID:guid}")>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function PostSearch (
<FromRouteAttribute> collectionID As Guid,
<FromBodyAttribute> textQuery As String,
<FromQueryAttribute> Optional searchMode As AiRagSearchMode = AiRagSearchMode.Hybrid,
<FromQueryAttribute> Optional maxResultSize As Integer = 10,
<FromQueryAttribute> Optional minVectorSearchScore As Single = 0.2F,
<FromQueryAttribute> Optional minFullTextSearchScore As Single = 0.2F,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of List(Of AiRagSearchResult)))
public:
[HttpPostAttribute(L"search/{collectionID:guid}")]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<List<AiRagSearchResult^>^>^>^ PostSearch(
[FromRouteAttribute] Guid collectionID,
[FromBodyAttribute] String^ textQuery,
[FromQueryAttribute] AiRagSearchMode searchMode = AiRagSearchMode::Hybrid,
[FromQueryAttribute] int maxResultSize = 10,
[FromQueryAttribute] float minVectorSearchScore = 0.2f,
[FromQueryAttribute] float minFullTextSearchScore = 0.2f,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("search/{collectionID:guid}")>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member PostSearch :
[<FromRouteAttribute>] collectionID : Guid *
[<FromBodyAttribute>] textQuery : string *
[<FromQueryAttribute>] ?searchMode : AiRagSearchMode *
[<FromQueryAttribute>] ?maxResultSize : int *
[<FromQueryAttribute>] ?minVectorSearchScore : float32 *
[<FromQueryAttribute>] ?minFullTextSearchScore : float32 *
?cancellationToken : CancellationToken
(* Defaults:
let _searchMode = defaultArg searchMode AiRagSearchMode.Hybrid
let _maxResultSize = defaultArg maxResultSize 10
let _minVectorSearchScore = defaultArg minVectorSearchScore 0.2f
let _minFullTextSearchScore = defaultArg minFullTextSearchScore 0.2f
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<List<AiRagSearchResult>>>
- collectionID Guid
- The unique identifier of the collection to search within.
- textQuery String
- The text query string to search.
- searchMode AiRagSearchMode (Optional)
- Relevant data search mode.
- maxResultSize Int32 (Optional)
-
The maximum number of results to return.
The value must be a positive integer.
- minVectorSearchScore Single (Optional)
-
The minimum relevance threshold (similarity) for vector search results.
The value must be a positive number in the range [0, 1].
- minFullTextSearchScore Single (Optional)
-
The minimum relevance threshold (similarity) for full-text search results.
The value must be a positive number in the range [0, 1].
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultListAiRagSearchResultA collection of
AiRagSearchResult objects.