1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "texts": ["""# Returns policy
10
11You can return most items within 30 days of delivery. Items must be unused and in their original packaging.
12
13## Refunds
14
15Refunds go back to the original payment method within 5 business days of the return arriving. Shipping costs are not refunded.
16
17## Exchanges
18
19To exchange an item, start a return and place a new order."""],
20 "urls": [{ "url": "https://en.wikipedia.org/wiki/Retrieval-augmented_generation" }],
21}
22
23
24run = client.actor("examsens.ai/text-chunker").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31