set up chroma

This commit is contained in:
=
2025-05-30 15:43:34 +10:00
committed by armistace
parent 9b57e2b9ea
commit c3c4445d33
4 changed files with 71 additions and 0 deletions
+6
View File
@@ -19,7 +19,13 @@ for note in tril_notes:
print(tril_notes[note]['title'])
# print(tril_notes[note]['content'])
print("Generating Document")
<<<<<<< HEAD
=======
ai_gen = omg.OllamaGenerator(tril_notes[note]['title'],
tril_notes[note]['content'],
"openthinker:7b")
>>>>>>> d35a456 (set up chroma)
os_friendly_title = convert_to_lowercase_with_underscores(tril_notes[note]['title'])
<<<<<<< HEAD
ai_gen = omg.OllamaGenerator(os_friendly_title,
+8
View File
@@ -3,6 +3,7 @@ from urllib.parse import quote
from git import Repo
from git.exc import GitCommandError
<<<<<<< HEAD
class GitRepository:
# This is designed to be transitory it will desctruvtively create the repo at repo_path
# if you have uncommited changes you can kiss them goodbye!
@@ -20,6 +21,13 @@ class GitRepository:
git_user = quote(username)
git_password = quote(password)
remote = f"{git_protocol}://{git_user}:{git_password}@{git_remote}"
=======
def try_something(test):
# Set the path to your blog repo here
blog_repo = "/path/to/your/blog/repo"
>>>>>>> d35a456 (set up chroma)
if os.path.exists(repo_path):
shutil.rmtree(repo_path)