Skip to content

Commit

Permalink
TextNode related typing
Browse files Browse the repository at this point in the history
  • Loading branch information
GICodeWarrior committed Feb 15, 2025
1 parent 4e9d83a commit 2b2234c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def _aget_retrieved_ids_and_texts(

return (
[node.node.node_id for node in retrieved_nodes],
[node.node.text for node in retrieved_nodes],
[node.text for node in retrieved_nodes],
)


Expand Down Expand Up @@ -84,7 +84,7 @@ async def _aget_retrieved_ids_and_texts(
node = scored_node.node
if isinstance(node, ImageNode):
image_nodes.append(node)
if node.text:
if isinstance(node, TextNode):
text_nodes.append(node)

if mode == "text":
Expand Down

0 comments on commit 2b2234c

Please sign in to comment.