Skip to main content

llama-index readers obsidian integration

Project description

LlamaIndex Readers Integration: Obsidian

Overview

Pass in the path to an Obsidian vault and it will parse all markdown files into a List of Documents. Documents are split by header in the Markdown Reader we use.

Each document will contain the following metadata:

  • file_name: the name of the markdown file
  • folder_path: the full path to the folder containing the file
  • folder_name: the relative path to the folder containing the file
  • note_name: the name of the note (without the .md extension)
  • wikilinks: a list of all wikilinks found in the document
  • backlinks: a list of all notes that link to this note

Optionally, tasks can be extracted from the text and stored in metadata.

Usage

from llama_index.readers.obsidian import ObsidianReader

# Initialize ObsidianReader with the path to the Obsidian vault
reader = ObsidianReader(
    input_dir="<Path to Obsidian Vault>",
    extract_tasks=False,
    remove_tasks_from_text=False,
)

# Load data from the Obsidian vault
documents = reader.load_data()
Arguments
  • input_dir (str): Path to the Obsidian vault.
  • extract_tasks (bool): If True, extract tasks from the text and store them in metadata. Default is False.
  • remove_tasks_from_text (bool): If True and extract_tasks is True, remove the task lines from the main document text. Default is False.

Implementation for Obsidian reader can be found here

This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_readers_obsidian-0.7.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_obsidian-0.7.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_obsidian-0.7.1.tar.gz.

File metadata

  • Download URL: llama_index_readers_obsidian-0.7.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_obsidian-0.7.1.tar.gz
Algorithm Hash digest
SHA256 b07c4400bce27c0f97d5ff4bfa4e0b4531b221c84cf8ec6e2827a51114e7c482
MD5 df7797a2ffd225c93038890e217accf9
BLAKE2b-256 dd58b01390f340b10794e04780bbabe2cc87c658af9919e535b69f3503e3e7eb

See more details on using hashes here.

File details

Details for the file llama_index_readers_obsidian-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: llama_index_readers_obsidian-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_obsidian-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d827624bf22f3c038d9ae30aee44530f8d06af0c964109be1301f7d5fa7f0547
MD5 2a976b23da380887920c63230694355a
BLAKE2b-256 37bc590ca09e02d6f116350bf4bba8151de972dfcfc4fd3b775b09861cf0b556

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page