mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 13:55:41 +01:00
Make scripts executeable, add basic pre-commit setup
This commit is contained in:
parent
4cda348cf8
commit
7f918a9fa1
3 changed files with 50 additions and 4 deletions
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue