Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: LocalArchivalMemory prints ref_doc_info on if not using EmptyIndex
Currently, if you run the /memory command the application breaks if the LocalArchivalMemory has no existing archival storage and defaults to the EmptyIndex. This is caused by EmptyIndex not having a ref_doc_info implementation and throwing an Exception when that is used to print the memory information to the console. This hot fix simply makes sure that we do not try to use the function if using EmptyIndex and instead prints a message to the console indicating an EmptyIndex is used.
- Loading branch information