Hello there, Yes, there is a solution I use. Generally, plugins are meant to be computed dynamically each time. Smart importer predicts (instead of computing) statically. What this means is, we generally always want smart_importer to be fed a ledger on which plugins have not yet run. This is true for most plugins (eg: the capital gains classifier <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/capital_gains_classifier#readme> ).
My recommendation is to do what I personally do, shown in this script <https://gist.github.com/redstreet/6f1addb87c667826fb79b509d5d88a51> from this article <https://reds-rants.netlify.app/personal-finance/putting-it-all-together-into-a-workflow/> : # So zerosum doesn't run: both for performance and correctness (smart_importer) if be -f <(echo 'plugin "beancount.plugins.auto_accounts"'; cat ${INGEST_ROOT}/../source/* ) $files ; then echo "Return value of bean-extract: $?" if [[ "$nofile"x != "1x" ]]; then bf $files # bean-file fi fi Basically, this avoids running zerosum or any plugin at all when building a ledger to pass on to smart_importer. Makes it slightly faster too. On Tuesday, December 26, 2023 at 11:18:31 AM UTC-8 cha...@gmail.com wrote: > I'm a fan of using Redstreet's great zerosum plugin > <https://github.com/redstreet/beancount_reds_plugins/tree/main/beancount_reds_plugins/zerosum#readme> > > to handle transfers, and also use smart_importer in order to speed up the > ledger update process. > > However, using these together doesn't really work that well since the > training data for smart_importer is going to have matched zero-sum > transactions, such that the predictions for transfers will be matched zero > sum transactions when they are not actually matched. > > Is there a suggested way to get these two to work together? One > possibility is to take the predictions from smart_importer and just regex > so that `ZSA-Matched` changes to `Zero-Sum-Accounts`, i.e., going from > matched to unmatched. However when doing this on a large import it seems > that zerosum has issues matching all the transactions. > > > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/aac70603-9d3d-4607-a21f-533b55ebfccan%40googlegroups.com.