Skip to content

Commit f43b595

Browse files
Dan JonesDan Jones
authored andcommitted
PR comments
1 parent b6c195f commit f43b595

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/query/response/response-mapping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ const mapWeaviateObject = (
343343

344344
return {
345345
properties: object.properties,
346-
metadata: metadata,
346+
metadata,
347347
references: undefined,
348348
uuid: object.uuid,
349349
vectors: object.vector,

src/query/response/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export type SearchExecutionOptions = {
276276
/** The maximum number of results to return. */
277277
limit?: number;
278278
/** The offset of the results to return, for paginating through query result sets. */
279-
offset?: number;
279+
offset: number;
280280
};
281281

282282
export type SearchModeResponse = {

src/query/search.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ export class QueryAgentSearcher {
9898
*
9999
* @param [options] - Options for executing the search
100100
* @param [options.limit] - The maximum number of results to return. Defaults to 20 if not specified.
101-
* @param [options.offset] - The offset to start from. If not specified, retrieval begins from the first object.
101+
* @param [options.offset] - The offset to start from.
102102
* @returns A SearchModeResponse object containing the results, usage, and underlying searches performed.
103103
*/
104104
async run({
105105
limit = 20,
106-
offset = 0,
107-
}: SearchExecutionOptions = {}): Promise<SearchModeResponse> {
106+
offset,
107+
}: SearchExecutionOptions): Promise<SearchModeResponse> {
108108
if (!this.collections || this.collections.length === 0) {
109109
throw Error("No collections provided to the query agent.");
110110
}

0 commit comments

Comments
 (0)