Skip to content

Commit

Permalink
fix any in Record
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-btc committed Jul 19, 2024
1 parent 04f450a commit f683717
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ async function searchEmbeddings(
id: string,
input: string,
clientOptions: InputClientOptions = {},
): Promise<{ id: string; content: string; similarity: number; metadatas: Record<string, any> }[]> {
): Promise<
{ id: string; content: string; similarity: number; metadatas: Record<string, unknown> }[]
> {
const { token, endpoint } = await defaultOptions(clientOptions);

try {
Expand Down Expand Up @@ -169,7 +171,7 @@ class Embeddings {
async search(
input: string,
): Promise<
{ id: string; content: string; similarity: number; metadatas: Record<string, any> }[]
{ id: string; content: string; similarity: number; metadatas: Record<string, unknown> }[]
> {
const id = await this.memoryId;
return searchEmbeddings(id, input, await this.clientOptions);
Expand Down

0 comments on commit f683717

Please sign in to comment.