Skip to main content

Firestore Loader

pip install llama-index-readers-firestore

This loader loads from a Firestore collection or a specific document from Firestore. The loader assumes your project already has the google cloud credentials loaded. To find out how to set up credentials, see here.

Usage

To initialize the loader, provide the project-id of the google cloud project.

Initializing the reader

from llama_index.readers.firestore import FirestoreReader

reader = FirestoreReader(project_id="<Your Project ID>")

Loading Data from a Firestore Collection

Load data from a Firestore collection with the load_data method: The collection path should include all previous documents and collections if it is a nested collection.

documents = reader.load_data(collection="foo/bar/abc/")

Loading a Single Document from Firestore

Load a single document from Firestore with the load_document method:

document = reader.load_document(document_url="foo/bar/abc/MY_DOCUMENT")

Note: load_data returns a list of Document objects, whereas load_document returns a single Document object.

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

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_firestore-0.6.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

llama_index_readers_firestore-0.6.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_firestore-0.6.0.tar.gz.

File metadata

  • Download URL: llama_index_readers_firestore-0.6.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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

Hashes for llama_index_readers_firestore-0.6.0.tar.gz
Algorithm Hash digest
SHA256 356a24ba4eed4aa4d4ff038058aadf3eee4dc524edc8adfaaee76df7382a3ec4
MD5 e87dd2c58c9e6a6badaf377a4aede23d
BLAKE2b-256 4ecab301340615f06d1c186829c832e2ec5a1da7435228f9f6fd690af75b2b48

See more details on using hashes here.

File details

Details for the file llama_index_readers_firestore-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_readers_firestore-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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

Hashes for llama_index_readers_firestore-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af99daa810091f632291320c0add14c0966a99d38c079e4246c15efbcfbf566d
MD5 ebb2e6176198c124a42f7a75ba49f75d
BLAKE2b-256 a22ee3f05b56741f8ad913cff84abe1c0fd1bcabca3910552437e33e0cdd1fba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page