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.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8e9d54b413d95c919f0002ea379aefd8c3b1123c1cc60d8e44aa6b6f0887d4b5
MD5 bd05c87e5fe4a871c0e0d6cd108d4849
BLAKE2b-256 b6daad2011f065946a9a187e11f975b789cdae9fad2b5096bb0b30a45eeeb68d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf1151f52b0f76f73a7c7623ea9162a89a44e3524a2e30152aa3757b5e3cc11b
MD5 0b7c7e9257a5702536b433bf1855739a
BLAKE2b-256 c3b8813dd72c4fa921e53a5c3e9014d59374587baeb57071d1bd678c19ca3413

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