This is a Python app that provides an interface for a personal Obsidian notebook. The app allows a user to ask a question, and the app will answer it using the information in the notebook.
To install the app, follow these steps:
- Clone the repository to your local machine.
- Create a virtual environment by running
python -m pipenv obsidisearch
. - Activate the virtual environment by running
python -m pipenv shell
. - Edit the
config.yaml
file with the required options
To use the app, follow these steps:
- Start the app by running
python obsidisearch.py
within the virtual environment. - Enter a question when prompted.
- The app will provide an answer based on the information in the notebook.
- The app will create a data file in the
persistence_directory
directory. This file will be used to store the information that the app has learned from the notebook. If you want to reset the app or have added new notes, simply delete this file and restart the app.
The config.yaml
file contains the following options:
openai_api_key
: Your OpenAI API key.obisidian_directory
: The directory path where your Obsidian notes are stored.persistence_directory
: The directory path where the app will store its data.use_chat_model
: Whether to use a chat model or not.openai_model
: The OpenAI model to use for generating answers.temperature
: The temperature to use when generating answers.prompt
: The prompt to use when generating answers.