Make scripts executeable, add basic pre-commit setup

This commit is contained in:
MDW 2023-05-18 02:08:52 +02:00 committed by Iván Martínez
parent be1bcbca37
commit 04f6706bbb
3 changed files with 47 additions and 1 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()