Add src/init_loader.py

This commit is contained in:
2026-06-04 23:23:55 +00:00
parent 0bb7ebcc4e
commit 4ec67935f0
+16
View File
@@ -0,0 +1,16 @@
"""Utility to bulkload 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())