@memnexus-ai/typescript-sdk 1.53.0 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +26 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -6816,6 +6816,18 @@ declare class MemoriesService extends BaseService {
|
|
|
6816
6816
|
version?: number;
|
|
6817
6817
|
};
|
|
6818
6818
|
}>>;
|
|
6819
|
+
/**
|
|
6820
|
+
* Record behavioral feedback on a search result
|
|
6821
|
+
* Record whether a search result was selected or ignored by the user.
|
|
6822
|
+
Used to build behavioral signals for retrieval quality measurement.
|
|
6823
|
+
|
|
6824
|
+
* @param body - Request body
|
|
6825
|
+
*/
|
|
6826
|
+
recordSearchResultFeedback(body: {
|
|
6827
|
+
memoryId: string;
|
|
6828
|
+
action: 'selected' | 'not_selected';
|
|
6829
|
+
searchMethod?: string;
|
|
6830
|
+
}): Promise<HttpResponse<void>>;
|
|
6819
6831
|
/**
|
|
6820
6832
|
* Find similar memories
|
|
6821
6833
|
* Find memories that are semantically similar to the given memory.
|
package/dist/index.d.ts
CHANGED
|
@@ -6816,6 +6816,18 @@ declare class MemoriesService extends BaseService {
|
|
|
6816
6816
|
version?: number;
|
|
6817
6817
|
};
|
|
6818
6818
|
}>>;
|
|
6819
|
+
/**
|
|
6820
|
+
* Record behavioral feedback on a search result
|
|
6821
|
+
* Record whether a search result was selected or ignored by the user.
|
|
6822
|
+
Used to build behavioral signals for retrieval quality measurement.
|
|
6823
|
+
|
|
6824
|
+
* @param body - Request body
|
|
6825
|
+
*/
|
|
6826
|
+
recordSearchResultFeedback(body: {
|
|
6827
|
+
memoryId: string;
|
|
6828
|
+
action: 'selected' | 'not_selected';
|
|
6829
|
+
searchMethod?: string;
|
|
6830
|
+
}): Promise<HttpResponse<void>>;
|
|
6819
6831
|
/**
|
|
6820
6832
|
* Find similar memories
|
|
6821
6833
|
* Find memories that are semantically similar to the given memory.
|
package/dist/index.js
CHANGED
|
@@ -2672,6 +2672,32 @@ var MemoriesService = class extends BaseService {
|
|
|
2672
2672
|
}
|
|
2673
2673
|
return this.client.call(request);
|
|
2674
2674
|
}
|
|
2675
|
+
/**
|
|
2676
|
+
* Record behavioral feedback on a search result
|
|
2677
|
+
* Record whether a search result was selected or ignored by the user.
|
|
2678
|
+
Used to build behavioral signals for retrieval quality measurement.
|
|
2679
|
+
|
|
2680
|
+
* @param body - Request body
|
|
2681
|
+
*/
|
|
2682
|
+
async recordSearchResultFeedback(body) {
|
|
2683
|
+
const request = new Request({
|
|
2684
|
+
baseUrl: this.config.baseUrl || "http://localhost:3000",
|
|
2685
|
+
method: "POST",
|
|
2686
|
+
path: "/api/memories/search/feedback",
|
|
2687
|
+
config: this.config,
|
|
2688
|
+
retry: {
|
|
2689
|
+
attempts: 3,
|
|
2690
|
+
delayMs: 150,
|
|
2691
|
+
maxDelayMs: 5e3,
|
|
2692
|
+
jitterMs: 50,
|
|
2693
|
+
backoffFactor: 2
|
|
2694
|
+
}
|
|
2695
|
+
});
|
|
2696
|
+
if (body !== void 0) {
|
|
2697
|
+
request.addBody(body);
|
|
2698
|
+
}
|
|
2699
|
+
return this.client.call(request);
|
|
2700
|
+
}
|
|
2675
2701
|
/**
|
|
2676
2702
|
* Find similar memories
|
|
2677
2703
|
* Find memories that are semantically similar to the given memory.
|