mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-08 10:39:33 +00:00
Make scripts executeable, add basic pre-commit setup
This commit is contained in:
3
ingest.py
Normal file → Executable file
3
ingest.py
Normal file → Executable 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()
|
||||
|
Reference in New Issue
Block a user