Edited for Clarity:
In order to invoke a memory response or create a memory response, there must be interaction with the Adaptive Immune System (usually CD40+ "Helper" T-Cells), and the interaction must come in the form of a protein since the MHC receptors only respond to proteins.
Antibiotics are usually smaller macromolecules that directly cause slower growth or kill the microbe. They will *not* create or illicit a memory response because they are not presented to the immune system to initiate the proper procedure, and may not be proteins and unable to be presented in the first place.
If you're asking about vaccines (which was my inference before the edit), then they stimulate what is basically the same memory creation mechanisms that normal infections do. Antibody counterparts recognized by B-Cells are paired with proteins from the disease you want to immunize against, called the Hapten and Carrier respectively. Then the protein is processed via the B-Cells, presented to T-Cells, and a memory response is made.
My apologies if the previous answer was more ambiguous.