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.0.tar.gz (5.6 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.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_readers_obsidian-0.7.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 6294d25b2e0dc4c3f444592d2fc6de8e3ab32faf710d4b1ad39274778a167781
MD5 338c132a4d16f0830df4780ebea67763
BLAKE2b-256 435d5592f7fcf5aa98c3b470a173efce81952c7715941a622d3ecf8338cf3718

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_readers_obsidian-0.7.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79f445bdde98e78a959f766f9591e446202b16c31e94962c52f90b6b86066695
MD5 2d7e5d1ac31c7a2a1a5217477cc91ac9
BLAKE2b-256 c1db2949649f6654b4009ba886ca2b6702af99fcd5413efb75246587877e8e1c

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