Skip to main content

llama-index readers huggingface fs integration

Project description

Hugging Face FS Loader

pip install llama-index-readers-huggingface-fs

This loader uses Hugging Face Hub's Filesystem API (> 0.14) to load datasets.

Besides the existing load_data function, you may also choose to use load_dicts and load_df.

Usage

To use this loader, you need to pass in a path to a Hugging Face dataset.

from pathlib import Path

from llama_index.readers.huggingface_fs import HuggingFaceFSReader

# load documents
loader = HuggingFaceFSReader()
documents = loader.load_data("datasets/dair-ai/emotion/data/data.jsonl.gz")

# load dicts
dicts = loader.load_dicts("datasets/dair-ai/emotion/data/data.jsonl.gz")

# load df
df = loader.load_df("datasets/dair-ai/emotion/data/data.jsonl.gz")

This loader is designed to be used as a way to load data into LlamaIndex.

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

Built Distribution

File details

Details for the file llama_index_readers_huggingface_fs-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 65d3f959b1c86e97e82edb838fbb16a8e2b9f19c873a7cb34a20ef9081bab0e0
MD5 23b4b5b775f3e5f106163e856fe8b622
BLAKE2b-256 4180f9ea92c2d7763e675d7c6db90b641ba17f79f983de3c82139cf0e4fba0be

See more details on using hashes here.

File details

Details for the file llama_index_readers_huggingface_fs-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3eb7fcb7d9dbade4a0e323f7ef41817f485a4a61ebeb729fe04c30a10decfc81
MD5 39213412853a3a61973fc5a866bf9e1f
BLAKE2b-256 a21754182aa197e9bb80965cfea4b4925d6e7df589d8dfbde1a9bf70af7afb05

See more details on using hashes here.

Supported by

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