Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
chore: drop pydantic.v1 API usage after LlamaIndex 0.11 upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Panos Vagenas <[email protected]>
  • Loading branch information
vagenas committed Aug 28, 2024
1 parent e22b90f commit 58e57a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quackling/llama_index/node_parsers/hier_node_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _parse_nodes(
rd.seed(seed)

for input_node in nodes_with_progress:
li_doc = LIDocument.parse_obj(input_node)
li_doc = LIDocument.model_validate(input_node)
dl_doc: DLDocument = DLDocument.model_validate_json(li_doc.get_content())
chunk_iter = chunker.chunk(dl_doc=dl_doc)
for chunk in chunk_iter:
Expand Down

0 comments on commit 58e57a4

Please sign in to comment.