Skip to content

Commit

Permalink
fix: include node relationships when converting jsonToDoc (run-llama#968
Browse files Browse the repository at this point in the history
)
  • Loading branch information
garviand authored Jun 25, 2024
1 parent 810711d commit 0730140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-keys-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---

include node relationships when converting jsonToDoc
1 change: 1 addition & 0 deletions packages/llamaindex/src/storage/docStore/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function jsonToDoc(docDict: DocJson): BaseNode {
id_: dataDict.id_,
hash: dataDict.hash,
metadata: dataDict.metadata,
relationships: dataDict.relationships,
});
} else {
throw new Error(`Unknown doc type: ${docType}`);
Expand Down

0 comments on commit 0730140

Please sign in to comment.