Add src/init_loader.py
This commit is contained in:
@@ -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())
|
||||||
Reference in New Issue
Block a user