Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/v2/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export class Client {
}

/**
* Searches for resources matching the given criteria.
* @param search
* Search for resources matching the given criteria.
* @param search Search definition class to use.
* @param searchParameters Search parameters.
* @returns a `Promise` containing the search response.
* @returns a `Promise` containing the search response with the matching resources.
*/
async search<S extends typeof BaseSearch>(
search: S,
Expand Down
4 changes: 2 additions & 2 deletions src/v2/http/mindeeApiV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export class MindeeApiV2 {
}

/**
* Searches for resources matching the given criteria.
* @param search
* Retrieves a list of resources with the given criteria.
* @param search Search definition class to use.
* @param parameters Search parameters.
* @returns a `Promise` containing the search response.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/v2/parsing/inference/field/ragMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StringDict } from "@/parsing/stringDict.js";

/** Metadata produced by RAG-enabled extraction. */
/** Metadata about the RAG operation. */
export class RagMetadata {
/**
* The UUID of the matched document used during the RAG operation.
Expand Down
3 changes: 2 additions & 1 deletion src/v2/parsing/search/baseSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export abstract class BaseSearchResponse extends BaseResponse {
}

/**
* List of strings representing the search response.
* Lines composing the response-specific body (header + items).
* @returns An array of body lines.
*/
protected abstract bodyLines(): string[];

Expand Down
2 changes: 1 addition & 1 deletion src/v2/parsing/search/modelWebhook.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StringDict } from "@/parsing/index.js";

/**
* Model webhook info.
* Information about a model's webhook.
*/
export class ModelWebhook {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/v2/parsing/search/paginationMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StringDict } from "@/parsing/index.js";

/**
* PaginationMetadata data associated with model search.
* Pagination metadata associated with searches.
*/
export class PaginationMetadata {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/v2/parsing/search/searchModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { StringDict } from "@/parsing/index.js";
import { ModelWebhook } from "./modelWebhook.js";

/**
* Models search response.
* Individual model information.
*/
export class SearchModel {
/**
Expand All @@ -21,7 +21,7 @@ export class SearchModel {
public modelType: string;

/**
* Webhooks associated with the model.
* List of webhooks associated with the model.
*/
public webhooks: ModelWebhook[];

Expand Down
3 changes: 3 additions & 0 deletions src/v2/parsing/search/searchModels.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { SearchModel } from "@/v2/parsing/search/searchModel.js";
import { StringDict } from "@/parsing/index.js";

/**
* List of search models.
*/
export class SearchModels extends Array<SearchModel> {

constructor(serverResponse: StringDict[] = []) {
Expand Down
2 changes: 1 addition & 1 deletion src/v2/search/models/modelSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { SearchModels } from "@/v2/parsing/search/searchModels.js";
export class ModelSearchResponse extends BaseSearchResponse {

/**
* List of models returned by the search.
* Paginated list of matching models.
*/
public models: SearchModels;

Expand Down
2 changes: 1 addition & 1 deletion src/v2/search/ragDocuments/ragDocumentSearchResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BaseSearchResponse } from "@/v2/parsing/search/index.js";
import { SearchRagDocuments } from "@/v2/parsing/search/searchRagDocuments.js";

/**
* RAG documents search response.
* RAG Documents search response.
*/
export class RagDocumentSearchResponse extends BaseSearchResponse {

Expand Down