Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 20, 2024
1 parent d45c848 commit fe5a871
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libs/langchain-community/src/vectorstores/milvus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
FieldType,
ClientConfig,
InsertReq,
keyValueObj
keyValueObj,
} from "@zilliz/milvus2-sdk-node";

import type { EmbeddingsInterface } from "@langchain/core/embeddings";
Expand All @@ -31,12 +31,12 @@ export interface MilvusLibArgs {
textFieldMaxLength?: number;
clientConfig?: ClientConfig;
autoId?: boolean;
indexCreateOptions?: IndexCreateOptions
indexCreateOptions?: IndexCreateOptions;
}

export interface IndexCreateOptions {
index_type: IndexType,
metric_type: MetricType,
index_type: IndexType;
metric_type: MetricType;
params?: keyValueObj;
}

Expand Down Expand Up @@ -163,7 +163,9 @@ export class Milvus extends VectorStore {
index_type: indexCreateOptions.index_type,
params: JSON.stringify(indexCreateOptions.params),
};
this.indexSearchParams = JSON.stringify(this.indexParams[indexCreateOptions.index_type].params);
this.indexSearchParams = JSON.stringify(
this.indexParams[indexCreateOptions.index_type].params
);
}

// combine args clientConfig and env variables
Expand Down

0 comments on commit fe5a871

Please sign in to comment.