Skip to content

Commit b8b5080

Browse files
szymondudyczManul from Pathway
authored andcommitted
Fix Unstructured to sql template (#8431)
GitOrigin-RevId: 69e1876836b730624868fd9f80855fb3a828357a
1 parent c1f5d02 commit b8b5080

File tree

1 file changed

+4
-4
lines changed
  • examples/pipelines/unstructured_to_sql_on_the_fly

1 file changed

+4
-4
lines changed

examples/pipelines/unstructured_to_sql_on_the_fly/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def structure_on_the_fly(
190190
model=model_locator,
191191
temperature=temperature,
192192
max_tokens=max_tokens,
193-
retry_strategy=pw.asynchronous.ExponentialBackoffRetryStrategy(),
194-
cache_strategy=pw.asynchronous.DefaultCache(),
193+
retry_strategy=pw.udfs.ExponentialBackoffRetryStrategy(),
194+
cache_strategy=pw.udfs.DefaultCache(),
195195
)
196196

197197
responses = prompt.select(
@@ -233,8 +233,8 @@ def unstructured_query(
233233
model=model_locator,
234234
temperature=temperature,
235235
max_tokens=max_tokens,
236-
retry_strategy=pw.asynchronous.ExponentialBackoffRetryStrategy(),
237-
cache_strategy=pw.asynchronous.DefaultCache(),
236+
retry_strategy=pw.udfs.ExponentialBackoffRetryStrategy(),
237+
cache_strategy=pw.udfs.DefaultCache(),
238238
)
239239

240240
query += query.select(

0 commit comments

Comments
 (0)