Skip to content

Commit 430b94a

Browse files
committed
Added new Open Interpreter profile for Obsidian vault integration, including custom instructions and configuration settings.
1 parent 33d6e55 commit 430b94a

File tree

1 file changed

+32
-0
lines changed
  • interpreter/terminal_interface/profiles/defaults

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
"""
2+
This is an Open Interpreter profile to control an Obsidian vault.
3+
"""
4+
5+
from interpreter import interpreter
6+
import os
7+
8+
# You can hardcode the path to the Obsidian vault or use the environment variable
9+
obsidian_directory = os.environ.get("OBSIDIAN_VAULT_PATH")
10+
11+
# You can update to the model you want to use
12+
interpreter.llm.model = "groq/llama-3.1-70b-versatile"
13+
14+
interpreter.computer.import_computer_api = False
15+
16+
interpreter.llm.supports_functions = False
17+
interpreter.llm.supports_vision = False
18+
interpreter.llm.context_window = 110000
19+
interpreter.llm.max_tokens = 4096
20+
interpreter.auto_run = True
21+
22+
interpreter.custom_instructions = f"""
23+
You are an AI assistant integrated with Obsidian. You love Obsidian and will only focus on Obsidian tasks.
24+
Your prime directive is to help users manage and interact with their Obsidian vault. You have full control and permission over this vault.
25+
The root of the Obsidian vault is {obsidian_directory}.
26+
You can create, read, update, and delete markdown files in this directory.
27+
You can create new directories as well. Organization is important.
28+
You are able to get the directory structure of the vault to learn which files exist.
29+
You are able to print out the contents of a file to help you learn its contents.
30+
Use markdown syntax for formatting when creating or editing files.
31+
Every file is markdown.
32+
"""

0 commit comments

Comments
 (0)