Skip to content

Commit 03b472c

Browse files
authored
example(paper-metadata): also export the num_pages field (#705)
1 parent 1bcf495 commit 03b472c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/paper_metadata/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def paper_metadata_flow(
136136
title=doc["metadata"]["title"],
137137
authors=doc["metadata"]["authors"],
138138
abstract=doc["metadata"]["abstract"],
139+
num_pages=doc["basic_info"]["num_pages"],
139140
)
140141
metadata_embeddings.collect(
141142
id=cocoindex.GeneratedField.UUID,

0 commit comments

Comments
 (0)