Where is bfg_retriever used?

I am researching the bfg code and what I understand is that bfg_retriever.ts is the core code that supports automatic completion. But when I was using all the features of the Cody plugin, I did not find bfg_retriever being used in the log output. Did I not configure anything? Or is my usage incorrect? Hope to receive a reply, thank you!