File size: 466 Bytes
0017280
 
fbd18c8
 
0017280
 
 
 
 
fbd18c8
 
 
 
 
0017280
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Entry point for document ingestion."""

import sys

from src.ingest import ingest_documents
from src.config_loader import load_config


if __name__ == "__main__":
    try:
        cfg = load_config()
    except FileNotFoundError:
        print("Config file not found. Run 'python setup.py' first.")
        sys.exit(1)
    count = ingest_documents(cfg)
    if count == 0:
        print("\nNo documents were ingested. Add files to knowledge_base/ and try again.")