29 lines
567 B
Java
Raw Normal View History

package com.theokanning.openai.search;
2020-10-04 18:25:40 -05:00
import lombok.Data;
/**
* A search result for a single document.
*
2022-04-28 16:48:33 -05:00
* https://beta.openai.com/docs/api-reference/searches
*/
@Deprecated
2020-10-04 18:25:40 -05:00
@Data
public class SearchResult {
/**
* The position of this document in the request list
*/
2020-10-04 18:25:40 -05:00
Integer document;
/**
* The type of object returned, should be "search_result"
*/
2020-10-04 18:25:40 -05:00
String object;
/**
* A number measuring the document's correlation with the query.
* A higher score means a stronger relationship.
*/
2020-10-04 18:25:40 -05:00
Double score;
}