Make scripts executeable, add basic pre-commit setup

This commit is contained in:
MDW
2023-05-18 02:08:52 +02:00
parent 4cda348cf8
commit 7f918a9fa1
3 changed files with 50 additions and 4 deletions

3
ingest.py Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import os
import glob
from typing import List
@@ -107,7 +108,7 @@ def main():
# Create embeddings
embeddings = HuggingFaceEmbeddings(model_name=embeddings_model_name)
# Create and store locally vectorstore
db = Chroma.from_documents(texts, embeddings, persist_directory=persist_directory, client_settings=CHROMA_SETTINGS)
db.persist()