langchain.js
    Preparing search index...
    HookFunction: ((message: string) => Promise<void>) | ((message: string) => void)