AiRagControllerPostSearch - метод

Performs search for relevant results within a specified collection.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.3+85077ef6104b2e81389e52f8b825d77905da3c54
C#
[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
)

Параметры

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.

Возвращаемое значение

TaskActionResultListAiRagSearchResult
A collection of AiRagSearchResult objects.

См. также