@@ -99,7 +99,7 @@ client = Zeroentropy()
9999all_documents = []
100100# Automatically fetches more pages as needed.
101101for document in client.documents.get_info_list(
102- collection_name = " collection_name " ,
102+ collection_name = " example_collection " ,
103103):
104104 # Do something with document here
105105 all_documents.append(document)
@@ -119,7 +119,7 @@ async def main() -> None:
119119 all_documents = []
120120 # Iterate through items across all pages, issuing requests as needed.
121121 async for document in client.documents.get_info_list(
122- collection_name = " collection_name " ,
122+ collection_name = " example_collection " ,
123123 ):
124124 all_documents.append(document)
125125 print (all_documents)
@@ -132,7 +132,7 @@ Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get
132132
133133``` python
134134first_page = await client.documents.get_info_list(
135- collection_name = " collection_name " ,
135+ collection_name = " example_collection " ,
136136)
137137if first_page.has_next_page():
138138 print (f " will fetch next page using these details: { first_page.next_page_info()} " )
@@ -146,7 +146,7 @@ Or just work directly with the returned data:
146146
147147``` python
148148first_page = await client.documents.get_info_list(
149- collection_name = " collection_name " ,
149+ collection_name = " example_collection " ,
150150)
151151
152152print (f " next page cursor: { first_page.id_gt} " ) # => "next page cursor: ..."
0 commit comments