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.5.1.tar.gz (4.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.5.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_readers_obsidian-0.5.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for llama_index_readers_obsidian-0.5.1.tar.gz
Algorithm Hash digest
SHA256 ecf65da3e2e7a562a175d74dd7e89ef223fc6b3a25eb6a5b95eb916b92c5e83f
MD5 ce0465de4e41d42d6e442e09c5309d6e
BLAKE2b-256 2c1bfc741118437c9f5a1896974420b98662fcb42880ae00f003fe840ba86f93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_obsidian-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15d608bbe2ed295f2c3f748ab55632c27f8d86a54b42b1a9695e20bb19294b40
MD5 aadf306ecf71686c797ed791663ea82b
BLAKE2b-256 eddb04f7d99d23eb9676fdd103c9ed67ecbcdf8f9f355dc105ab007847c03242

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