OpenAI has officially deprecated these APIs, but I'll leave them in as long as the endpoints still work The engines api is also deprecated, but I'll get to that when I add model support.
29 lines
567 B
Java
29 lines
567 B
Java
package com.theokanning.openai.search;
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* A search result for a single document.
|
|
*
|
|
* https://beta.openai.com/docs/api-reference/searches
|
|
*/
|
|
@Deprecated
|
|
@Data
|
|
public class SearchResult {
|
|
/**
|
|
* The position of this document in the request list
|
|
*/
|
|
Integer document;
|
|
|
|
/**
|
|
* The type of object returned, should be "search_result"
|
|
*/
|
|
String object;
|
|
|
|
/**
|
|
* A number measuring the document's correlation with the query.
|
|
* A higher score means a stronger relationship.
|
|
*/
|
|
Double score;
|
|
}
|