@@ -4,22 +4,6 @@ import { APIResource } from '../resource';
44import * as Core from '../core' ;
55
66export class Models extends APIResource {
7- /**
8- * This provides access to the parsers that we use for indexing. This endpoint will
9- * not access any collection or search index, and the result will not be saved.
10- * This will use the same parsing method as the `/documents/add-document` endpoint.
11- *
12- * A common use-case for this endpoint, is to use our parser in combination with
13- * your own pre-processing step, before then uploading it to the search index using
14- * the `text-pages` filetype.
15- */
16- parseDocument (
17- body : ModelParseDocumentParams ,
18- options ?: Core . RequestOptions ,
19- ) : Core . APIPromise < ModelParseDocumentResponse > {
20- return this . _client . post ( '/parsers/parse-document' , { body, ...options } ) ;
21- }
22-
237 /**
248 * Reranks the provided documents, according to the provided query.
259 *
@@ -34,13 +18,6 @@ export class Models extends APIResource {
3418 }
3519}
3620
37- export interface ModelParseDocumentResponse {
38- /**
39- * The parsed pages. Each string will contain the full contents of a page.
40- */
41- pages : Array < string > ;
42- }
43-
4421export interface ModelRerankResponse {
4522 /**
4623 * The results, ordered by descending order of relevance to the query.
@@ -66,13 +43,6 @@ export namespace ModelRerankResponse {
6643 }
6744}
6845
69- export interface ModelParseDocumentParams {
70- /**
71- * The document's raw data, as a base64-encoded string
72- */
73- base64_data : string ;
74- }
75-
7646export interface ModelRerankParams {
7747 /**
7848 * The list of documents to rerank. Each document is a string.
@@ -98,10 +68,5 @@ export interface ModelRerankParams {
9868}
9969
10070export declare namespace Models {
101- export {
102- type ModelParseDocumentResponse as ModelParseDocumentResponse ,
103- type ModelRerankResponse as ModelRerankResponse ,
104- type ModelParseDocumentParams as ModelParseDocumentParams ,
105- type ModelRerankParams as ModelRerankParams ,
106- } ;
71+ export { type ModelRerankResponse as ModelRerankResponse , type ModelRerankParams as ModelRerankParams } ;
10772}
0 commit comments