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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_obsidian-0.5.2.tar.gz.
File metadata
- Download URL: llama_index_readers_obsidian-0.5.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
085ba41b801fbbb8d320aad519a529fe2d4dfbe5b91ac4c4ad5a97a2572c0b92
|
|
| MD5 |
3c695d87520146bd37036ae094e4e148
|
|
| BLAKE2b-256 |
14a7e0b1db985c63fab4e2e351c6b3971b30879101edf8706f696c941078c742
|
File details
Details for the file llama_index_readers_obsidian-0.5.2-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_obsidian-0.5.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a1aa3fa996a4ed692ee0d233aa053313c8b7d51c31148cd5fc4209a18aa397
|
|
| MD5 |
baedf8b8e99410aa115f6f3923c96715
|
|
| BLAKE2b-256 |
da6e9f8178fefd4ebb6c6bd04ef4d481444acef6c740d5d22919032806bab02a
|