Skip to main content

LlamaIndex Readers Integration: snowloader

ServiceNow data readers for LlamaIndex, powered by snowloader.

Covers six core ServiceNow tables - Incidents, Knowledge Base, CMDB, Changes, Problems, and Service Catalog - with production-grade features like retry logic, delta sync, CMDB relationship traversal, and HTML cleaning.

Installation

pip install llama-index-readers-snowloader

Usage

from snowloader import SnowConnection
from llama_index.readers.snowloader import ServiceNowIncidentReader

conn = SnowConnection(
    instance_url="https://mycompany.service-now.com",
    username="admin",
    password="password",
)

# Load active incidents
reader = ServiceNowIncidentReader(connection=conn, query="active=true")
documents = reader.load_data()

# Build an index
from llama_index.core import VectorStoreIndex

index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What incidents are related to email?")

Available Readers

Reader ServiceNow Table Description
ServiceNowIncidentReader incident IT incidents with optional work notes/comments
ServiceNowKBReader kb_knowledge Knowledge Base articles (HTML auto-cleaned)
ServiceNowCMDBReader cmdb_ci Configuration Items with relationship graph traversal
ServiceNowChangeReader change_request Change requests with implementation windows
ServiceNowProblemReader problem Problems with root cause and known error tracking
ServiceNowCatalogReader sc_cat_item Service catalog items

CMDB with Relationships

from llama_index.readers.snowloader import ServiceNowCMDBReader

reader = ServiceNowCMDBReader(
    connection=conn,
    ci_class="cmdb_ci_server",
    include_relationships=True,
)

for doc in reader.load_data():
    print(doc.text)
    # -> db-prod-01 (Depends on::Used by)
    # <- load-balancer-01 (Depends on::Used by)

Delta Sync

Only fetch records updated since your last sync:

from datetime import datetime, timezone

reader = ServiceNowIncidentReader(connection=conn)
docs = reader.load_data()
last_sync = datetime.now(timezone.utc)

# Next run - only get changes
updated = reader.load_data_since(last_sync)

Authentication

snowloader supports four auth modes:

# Basic Auth
conn = SnowConnection(instance_url="...", username="...", password="...")

# OAuth Client Credentials (recommended for production)
conn = SnowConnection(instance_url="...", client_id="...", client_secret="...")

# OAuth Password Grant
conn = SnowConnection(instance_url="...", client_id="...", client_secret="...",
                       username="...", password="...")

# Bearer Token
conn = SnowConnection(instance_url="...", token="eyJhbG...")

Author

Created and maintained by Roni Das - thetotaltechnology@gmail.com

Metadata

Release files for llama-index-readers-snowloader 0.6.0

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-snowloader 0.6.0
File Size Uploaded
llama_index_readers_snowloader-0.6.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-readers-snowloader 0.6.0
File Interpreter ABI Platform
llama_index_readers_snowloader-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / llama_index_readers_snowloader-0.6.0.tar.gz

Download URL llama_index_readers_snowloader-0.6.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4ddfe95a775836b3e7ed47426dfbe144875641bdbe693062972fa64a8704c1e7
BLAKE2b-256 checksum
How to use checksums
104f4d37ac7a164094b18aeab476136e82ad2794b3fbf38f4db858af699888ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release files / llama_index_readers_snowloader-0.6.0-py3-none-any.whl

Download URL llama_index_readers_snowloader-0.6.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30b0f69d41cd42200a4696a08fc91d29ff8c2dca8787689c90de8283ca39bfc4
BLAKE2b-256 checksum
How to use checksums
9da93fb9dd757df4650aa37d0cdb6172a33b78db45a99dcca9c0a3e96964d09a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.1

2 release files

This release

0.6.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

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