brumik / ollama-obsidian-indexer

ollama-obsidian-indexer
63 stars 11 forks source link

Obsidian Ollama Chat Indexer

This repo is the backend part for the Obsidian plugin found here: https://github.com/brumik/obsidian-ollama-chat

Requirements:

Manual run with python3

The project is moved to poetry for easier packaging (on nix). I did not verified these steps but should work:

Nix package:

The packet comes with nix devenv and compiles to nix package. To build it yourself you can run:

This will use the .env file that you have. I am figuring out how to define the env variables on runtime.

Docker

The project ships with a Dockerfile and example docker-compose file docker-compose-example.yml. You may either pass your .env file into the container using env_file, or set variables directly using environment

to run with docker compose:

  1. Copy ollama_obsidian_indexer/.env.sample to the root of the project as .env
  2. Edit .env as needed
  3. Edit the notes volume path placeholder /path/to/your/vault to be the absolute path of your obsidian vault
volumes:
  - ./storage:/app/storage # persistent storage for the indexer
  - /path/to/your/vault:/app/notes # volume for the note vault to use
  1. run docker compose build and docker compose up -d to run as a service.

Further developemnt

Further I am planning to look into how to deploy as an executable but python is not my main language so any recommendations are welcome.

Feel free to open an issue if you run into one or you would like to see a feature.

Do you like what you see?

As every programmer I convert coffee to code:

Buy Me A Coffee