Firestore
FirestoreReader #
Bases: BaseReader
Simple Firestore reader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
project_id |
str
|
The Google Cloud Project ID. |
required |
*args |
Optional[Any]
|
Additional arguments. |
()
|
**kwargs |
Optional[Any]
|
Additional keyword arguments. |
{}
|
Returns:
Name | Type | Description |
---|---|---|
FirestoreReader |
A FirestoreReader object. |
Source code in llama-index-integrations/readers/llama-index-readers-firestore/llama_index/readers/firestore/base.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|
load_data #
load_data(collection: str) -> List[Document]
Load data from a Firestore collection, returning a list of Documents.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
collection |
str
|
The name of the Firestore collection to read from. |
required |
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of Document objects. |
Source code in llama-index-integrations/readers/llama-index-readers-firestore/llama_index/readers/firestore/base.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
load_document #
load_document(document_url: str) -> Document
Load a single document from Firestore.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
document_url |
str
|
The absolute path to the Firestore document to read. |
required |
Returns:
Name | Type | Description |
---|---|---|
Document |
Document
|
A Document object. |
Source code in llama-index-integrations/readers/llama-index-readers-firestore/llama_index/readers/firestore/base.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
|