Exemple #1
0
 /// <summary>
 /// Performs a semantic search over a list of documents. Response includes the list of scored documents (in the same order that they were passed in). The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. <see href="https://beta.openai.com/docs/api-reference/search"/>
 /// </summary>
 /// <param name="mono"></param>
 /// <param name="request"></param>
 /// <param name="onResult"></param>
 /// <returns></returns>
 public Coroutine SearchCoroutine(MonoBehaviour mono, SearchRequestV1 request, Action <ApiResult <SearchListV1> > onResult) => PostCoroutine(mono, request, onResult);
Exemple #2
0
 /// <summary>
 /// Performs a semantic search over a list of documents. Response includes the list of scored documents (in the same order that they were passed in). The similarity score is a positive score that usually ranges from 0 to 300 (but can sometimes go higher), where a score above 200 usually means the document is semantically similar to the query. <see href="https://beta.openai.com/docs/api-reference/search"/>
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public async Task <ApiResult <SearchListV1> > SearchAsync(SearchRequestV1 request) => await PostAsync <SearchRequestV1, SearchListV1>(request);