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.6.1.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.6.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_obsidian-0.6.1.tar.gz
Algorithm Hash digest
SHA256 2a024d3f9663d20b978b5f7793cffc1d9e9ad85928a37913382583c552a26f97
MD5 508d002588bcefec75f88dfa830e68ea
BLAKE2b-256 e7e0f3fe8527213db2808ce2d91f6c0572e25e5beda1f7ad343a3d5e9af146dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_obsidian-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 baf1cb46cc9b65adbc140a6aa3825f569534538c2c7f829267c94bc0eae86126
MD5 ab2e80d306354f974c5d8e4bd66ab3c2
BLAKE2b-256 32f212d3e8a4e2ae4230fb5147c2dea548a6471a1fbd1e31ba793aef137c7ba4

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