From 5e0cdd6c2d7745f6042450768bf4e2697ce0609f Mon Sep 17 00:00:00 2001 From: Brace Sproul Date: Tue, 28 Nov 2023 15:49:16 -0800 Subject: [PATCH] Make undefined input optional --- langchain/src/vectorstores/weaviate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/src/vectorstores/weaviate.ts b/langchain/src/vectorstores/weaviate.ts index d3e6fa85841a..1bd1fba5a77a 100644 --- a/langchain/src/vectorstores/weaviate.ts +++ b/langchain/src/vectorstores/weaviate.ts @@ -346,7 +346,7 @@ export class WeaviateStore extends VectorStore { override async maxMarginalRelevanceSearch( query: string, options: MaxMarginalRelevanceSearchOptions, - _callbacks: undefined + _callbacks?: undefined ): Promise { const { k, fetchK = 20, lambda = 0.5, filter } = options; const queryEmbedding: number[] = await this.embeddings.embedQuery(query);