Skip to content

Commit 573ac55

Browse files
authored
weaviate[minor]: Add Document className as metadata (#7486)
1 parent c9eee79 commit 573ac55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/langchain-weaviate/src/vectorstores.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ export class WeaviateStore extends VectorStore {
320320
documents.push([
321321
new Document({
322322
pageContent: text,
323-
metadata: rest,
323+
metadata: {
324+
...rest,
325+
collectionName: this.indexName,
326+
},
324327
id: _additional.id,
325328
}),
326329
_additional.distance,

0 commit comments

Comments
 (0)