11 lines
321 B
Python
11 lines
321 B
Python
#!/usr/bin/env python
|
|
"""Build the sutta embeddings index."""
|
|
from pathlib import Path
|
|
from buddhagpt.index import build_index
|
|
|
|
if __name__ == "__main__":
|
|
jsonl = Path("corpus/suttas.jsonl")
|
|
db_path = Path("data/lancedb")
|
|
n = build_index(jsonl, db_path)
|
|
print(f"Built index with {n} chunks at {db_path}")
|