From 4ec67935f01436b05f5beefbade7c5a76b329140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Thu, 4 Jun 2026 23:23:55 +0000 Subject: [PATCH] Add src/init_loader.py --- src/init_loader.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/init_loader.py diff --git a/src/init_loader.py b/src/init_loader.py new file mode 100644 index 0000000..ca3c23a --- /dev/null +++ b/src/init_loader.py @@ -0,0 +1,16 @@ +"""Utility to bulk‑load the FAQ files into Chroma. + +Run this once before starting the bot to create the persistent vector store. +""" + +import asyncio + +from .chunker import load_faq_to_chroma + +async def main(): + print("Loading FAQ files into Chroma…") + load_faq_to_chroma() + print("✅ Chroma store ready.") + +if __name__ == "__main__": + asyncio.run(main()) \ No newline at end of file