Skip to main content

Airbyte ZendeskSupport Loader

pip install llama-index-readers-airbyte-zendesk-support

The Airbyte ZendeskSupport Loader allows you to access different ZendeskSupport objects.

Usage

Here's an example usage of the AirbyteZendeskSupportReader.

from llama_index.readers.airbyte_zendesk_support import (
    AirbyteZendeskSupportReader,
)

zendesk_support_config = {
    # ...
}
reader = AirbyteZendeskSupportReader(config=zendesk_support_config)
documents = reader.load_data(stream_name="tickets")

Configuration

Check out the Airbyte documentation page for details about how to configure the reader. The JSON schema the config object should adhere to can be found on Github: https://github.com/airbytehq/airbyte/blob/master/airbyte-integrations/connectors/source-zendesk-support/source_zendesk_support/spec.json.

The general shape looks like this:

{
    "subdomain": "<your zendesk subdomain>",
    "start_date": "<date from which to start retrieving records from in ISO format, e.g. 2020-10-20T00:00:00Z>",
    "credentials": {
        "credentials": "api_token",
        "email": "<your email>",
        "api_token": "<your api token>",
    },
}

By default all fields are stored as metadata in the documents and the text is set to the JSON representation of all the fields. Construct the text of the document by passing a record_handler to the reader:

def handle_record(record, id):
    return Document(
        doc_id=id, text=record.data["title"], extra_info=record.data
    )


reader = AirbyteZendeskSupportReader(
    config=zendesk_support_config, record_handler=handle_record
)

Lazy loads

The reader.load_data endpoint will collect all documents and return them as a list. If there are a large number of documents, this can cause issues. By using reader.lazy_load_data instead, an iterator is returned which can be consumed document by document without the need to keep all documents in memory.

Incremental loads

This loader supports loading data incrementally (only returning documents that weren't loaded last time or got updated in the meantime):

reader = AirbyteZendeskSupportReader(config={...})
documents = reader.load_data(stream_name="tickets")
current_state = reader.last_state  # can be pickled away or stored otherwise

updated_documents = reader.load_data(
    stream_name="tickets", state=current_state
)  # only loads documents that were updated since last time

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

Metadata

Release files for llama-index-readers-airbyte-zendesk-support 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-readers-airbyte-zendesk-support 0.4.1
File Size Uploaded
llama_index_readers_airbyte_zendesk_support-0.4.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-airbyte-zendesk-support 0.4.1
File Interpreter ABI Platform
llama_index_readers_airbyte_zendesk_support-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / llama_index_readers_airbyte_zendesk_support-0.4.1.tar.gz

Download URL llama_index_readers_airbyte_zendesk_support-0.4.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c78fe63bd59b768b9a736cc86db8c515a8fd27b1ca2ac5bcf7983c14dcaf88f7
BLAKE2b-256 checksum
How to use checksums
cff2d92bf1ed4a1997cbc52b142f34b4ee77d99e71303df8f41149f6cf9679ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / llama_index_readers_airbyte_zendesk_support-0.4.1-py3-none-any.whl

Download URL llama_index_readers_airbyte_zendesk_support-0.4.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe0a278baa740bd61d1dd93f3acc58df5ca49e853ed86f2f0472b0cb0437a50b
BLAKE2b-256 checksum
How to use checksums
a9702d6cdbdbb8b24820652524976357b1489952ab64d14a548e123299ece517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release 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