From 80bb9b7af68cffb44042d84bede27e271491b11d Mon Sep 17 00:00:00 2001 From: Rolando Cruz Date: Wed, 8 Jan 2025 14:22:34 -0500 Subject: [PATCH] Add className to Documents found --- libs/langchain-weaviate/src/vectorstores.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/langchain-weaviate/src/vectorstores.ts b/libs/langchain-weaviate/src/vectorstores.ts index 4c6de1a3b723..c224ecfb8576 100644 --- a/libs/langchain-weaviate/src/vectorstores.ts +++ b/libs/langchain-weaviate/src/vectorstores.ts @@ -320,7 +320,10 @@ export class WeaviateStore extends VectorStore { documents.push([ new Document({ pageContent: text, - metadata: rest, + metadata: { + ...rest, + className: this.indexName + }, id: _additional.id, }), _additional.distance,