You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* On the other hand, if you have a business or professional account with high rate limits, you can set the `concurrent` option to process multiple requests concurrently and speed up the process.
526
526
*
527
-
* The `cache` option allows you to cache locally the results of each request, saving resources and time. The data is cached in the local hidden folder `.journalism` (because this method uses the `askAI` function from the [journalism library](https://github.com/nshiab/journalism)). So don't forget to add `.journalism` to your `.gitignore` file!
527
+
* The `cache` option allows you to cache locally the results of each request, saving resources and time. The data is cached in the local hidden folder `.journalism-cache` (because this method uses the `askAI` function from the [journalism library](https://github.com/nshiab/journalism)). So don't forget to add `.journalism-cache` to your `.gitignore` file!
528
528
*
529
529
* Sometimes, the AI returns fewer items than the batch size, which throws an error. If you want to automatically retry the request, you can use the `retry` option. The method will retry the request up to the specified number of times.
* The temperature is set to 0 to aim for reproducible results. However, to ensure consistent results in the future, it is recommended to copy the query and execute it manually using `await sdb.customQuery(query)` or to cache the query using the `cache` option.
606
606
*
607
-
* When the `cache` option is set to true, the generated query will be cached locally in the hidden folder `.journalism` (because this method uses the `askAI` function from the [journalism library](https://github.com/nshiab/journalism)), saving resources and time. So don't forget to add `.journalism` to your `.gitignore` file!
607
+
* When the `cache` option is set to true, the generated query will be cached locally in the hidden folder `.journalism-cache` (because this method uses the `askAI` function from the [journalism library](https://github.com/nshiab/journalism)), saving resources and time. So don't forget to add `.journalism-cache` to your `.gitignore` file!
608
608
*
609
609
* @example
610
610
* Basic usage with cache
611
611
* ```ts
612
612
* // The AI will generate a query that will be executed, and
613
613
* // the result will replace the existing table.
614
614
* // If run again, it will use the previous query from the cache.
615
-
* // Don't forget to add .journalism to your .gitignore file!
615
+
* // Don't forget to add .journalism-cache to your .gitignore file!
0 commit comments