Skip to content

Commit

Permalink
weaviate[minor]: Add Document className as metadata (#7486)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolando-cruz authored Feb 5, 2025
1 parent c9eee79 commit 573ac55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/langchain-weaviate/src/vectorstores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ export class WeaviateStore extends VectorStore {
documents.push([
new Document({
pageContent: text,
metadata: rest,
metadata: {
...rest,
collectionName: this.indexName,
},
id: _additional.id,
}),
_additional.distance,
Expand Down

0 comments on commit 573ac55

Please sign in to comment.