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
|`path`|`Optional[Union[str, Path]]`|`None`| Cache directory. If `None`, no caching is performed, and this component will act as a NoOp. |
1013
+
|`batch_size`|`int`| 64 | Number of docs in one batch (file). Once a batch is full, it will be peristed to disk. |
1014
+
|`max_batches_in_mem`|`int`| 4 | Max. number of batches to hold in memory. Allows you to limit the effect on your memory if you're handling a lot of docs. |
1015
+
1016
+
When retrieving a document, the `BatchCache` will first figure out what batch the document belongs to. If the batch
1017
+
isn't in memory it will try to load the batch from disk and then move it into memory.
1014
1018
1015
1019
Note that since the cache is generated by a registered function, you can also provide your own registered function
1016
1020
returning your own cache implementation. If you wish to do so, ensure that your cache object adheres to the
0 commit comments