Skip to main content

A Salesforce NPSP data reader for LlamaIndex to empower data-driven fundraising intelligence.

Project description

llama-index-reader-salesforce-npsp

llama-index-reader-salesforce-npsp is a standalone PyPI package that provides a LlamaIndex data reader for Salesforce Nonprofit Success Pack (NPSP), so you can index donor CRM data directly for RAG workflows.

Installation

pip install llama-index-reader-salesforce-npsp

Quickstart

from llama_index.readers.salesforce_npsp import SalesforceNPSPReader

reader = SalesforceNPSPReader(
    username="your-salesforce-username",
    password="your-salesforce-password",
    security_token="your-salesforce-security-token",
    domain="login",  # use "test" for sandbox
)

# Load top donors using the built-in NPSP query template
documents = reader.load_data(
    soql_filter="npo02__TotalOppAmount__c > 1000",
    limit=100,
)

# Or fetch specific contacts by Salesforce IDs
vip_documents = reader.load_data(contact_ids=["003XXXXXXXXXXXX", "003YYYYYYYYYYYY"])

print(f"Loaded {len(documents)} Salesforce records.")

Example notebooks

  • examples/salesforce_npsp_fundraising_qa.ipynb: end-to-end RAG pipeline walkthrough using NPSP fundraising data, from reader ingestion to question-answering over donor records.

Project details


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_reader_salesforce_npsp-0.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file llama_index_reader_salesforce_npsp-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_reader_salesforce_npsp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea54b471f1d8c1bf6af09defe8b2200a56b991a7474890597c54170b0859a1f3
MD5 3f1dcb15be0cb252446da0ec6bb040b9
BLAKE2b-256 120934047fac3879bac6c5b418d49fd1ae0c203764e8647a8013069d68350bab

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_reader_salesforce_npsp-0.1.0.tar.gz:

Publisher: publish.yml on shivamlalakiya/llama-index-reader-salesforce-npsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llama_index_reader_salesforce_npsp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_reader_salesforce_npsp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79cee11ba2b3930526eb671db8fc63ff70bfda6372107cf52193d5bda519d94f
MD5 221f5a505db15905d843e659960a7e75
BLAKE2b-256 75d87e99226db7cc06a2cde2057ad9ccc43a0dcb4a0dd96bc93d9a9595a62ab7

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_reader_salesforce_npsp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on shivamlalakiya/llama-index-reader-salesforce-npsp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page