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
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_huggingface_fs-0.5.0.tar.gz.
File metadata
- Download URL: llama_index_readers_huggingface_fs-0.5.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58a46721fff8babb1a021a8b01aa74ca20cbcf98ac7e2b23a259741839dc5c26
|
|
| MD5 |
6c9816a82fe1b41882fda5c7e076d28d
|
|
| BLAKE2b-256 |
408108333f5643b00d806cba661758154cb66920c0dbde81118927b281a512af
|
File details
Details for the file llama_index_readers_huggingface_fs-0.5.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_huggingface_fs-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
140aa61b21a2450c00d31d4437208ab15fd70459cc186ddb7665836d6b3db5c4
|
|
| MD5 |
a67315cf172f3b5ad70be5dfb1ba90eb
|
|
| BLAKE2b-256 |
e8161de56eeef983b72dd105ef72480f42a3a84c2bb033ec4d6f1f16bf44aae1
|