Load Firebase Realtime Database into LlamaIndex
A LlamaIndex data loader that retrieves documents from Firebase Realtime Database using database URL and optional service account authentication.
Why it matters
Retrieve and load data from Firebase Realtime Database into LlamaIndex for indexing and retrieval-augmented generation workflows. This loader enables developers to connect their Firebase real-time data to LLM applications by authenticating with service account credentials and extracting documents from specified database paths.
Outcomes
What it gets done
Authenticate to Firebase Realtime Database using service account key files
Connect to Firebase database instances via specified database URLs
Extract documents from specific paths within the Firebase database structure
Transform Firebase data into LlamaIndex-compatible document format for RAG pipelines
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/li-reader-readers-firebase-realtimedb | bash Overview
Firebase Realtime Database Loader
Firebase Realtime Database Loader is a LlamaIndex data reader that connects to Firebase Realtime Database and retrieves documents. It authenticates using your database URL and optional service account key file, then loads data from specified paths. Use this loader when you need to load data from Firebase Realtime Database into LlamaIndex. It is designed to be used as a way to load data into LlamaIndex.
What it does
Firebase Realtime Database Loader retrieves documents from Firebase Realtime Database and loads them into LlamaIndex. It connects using a database URL and optional service account key file for authentication, then retrieves data from specified paths.
Inputs and outputs
You provide three inputs: your Firebase Realtime Database URL, an optional path to a service account key file for authentication, and the specific database path you want to load data from. The loader retrieves documents from your specified Firebase path.
Integrations
This loader integrates with LlamaIndex as a data reader component and works with Firebase Realtime Database.
Installation:
pip install llama-index-readers-firebase-realtimedb
Basic usage:
from llama_index.readers.firebase_realtimedb import (
FirebaseRealtimeDatabaseReader,
)
database_url = "<database_url>"
service_account_key_path = "<service_account_key_path>"
path = "<path>"
reader = FirebaseRealtimeDatabaseReader(database_url, service_account_key_path)
documents = reader.load_data(path)
Who it's for
This loader is designed for users who need to load data from Firebase Realtime Database into LlamaIndex.
Source README
Firebase Realtime Database Loader
pip install llama-index-readers-firebase-realtimedb
This loader retrieves documents from Firebase Realtime Database. The user specifies the Firebase Realtime Database URL and, optionally, the path to a service account key file for authentication.
Usage
Here's an example usage of the FirebaseRealtimeDatabaseReader.
from llama_index.readers.firebase_realtimedb import (
FirebaseRealtimeDatabaseReader,
)
database_url = "<database_url>"
service_account_key_path = "<service_account_key_path>"
path = "<path>"
reader = FirebaseRealtimeDatabaseReader(database_url, service_account_key_path)
documents = reader.load_data(path)
This loader is designed to be used as a way to load data into LlamaIndex.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.