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

llama_index_readers_huggingface_fs-0.4.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7a856417d2488c95d31f54a4592c019901306d3d2d52b1a49e71d90ff4140db4
MD5 3fddbf556a381e72c5098e5c2bbb25c0
BLAKE2b-256 aeb1e49498281596b47af23b2ae1cede07d0e21a234d451b1b74a30fe8ff57ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_huggingface_fs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7670cd558f904a35d0be9e9385c18c228dc92c5ecdc59b48af523ae0e7ef3b1b
MD5 e5301a95a2ab5863b5b8297ca04b162a
BLAKE2b-256 63159dcaa3281b49e768a35202f43a351c3a91dee3a22c77852c55055dedf0d4

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