Skip to main content

llama-index readers rayyan integration

Project description

Rayyan Loader

pip install llama-index-readers-rayyan

This loader fetches review articles from Rayyan using the Rayyan SDK. All articles for a given review are fetched by default unless a filter is specified.

Usage

To use this loader, you need to specify the path to the Rayyan credentials file and optionally the API server URL if different from the default. More details about these parameters can be found in the official Rayyan SDK repository.

from llama_index.readers.rayyan import RayyanReader

loader = RayyanReader(credentials_path="path/to/rayyan-creds.json")

Once the loader is initialized, you can load data from Rayyan, either all or filtered:

# Load all documents for a review with ID 123456
documents = loader.load_data(review_id=123456)

# Load only those that contain the word "outcome"
documents = loader.load_data(
    review_id=123456, filters={"search[value]": "outcome"}
)

The Rayyan SDK has more information about the available filters.

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

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_readers_rayyan-0.3.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_rayyan-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_rayyan-0.3.0.tar.gz
Algorithm Hash digest
SHA256 068afbd617be4dc548494d05c9ebf5130e16fc3126d8d576e94f4239a464256e
MD5 bb99309a94a69001fd9a3039d8b1e34f
BLAKE2b-256 3b12e79f0a13b7fd9db5074e2e1bcf4319e659c520d6218b0648544eb8549782

See more details on using hashes here.

File details

Details for the file llama_index_readers_rayyan-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_rayyan-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 132002b64ac6e10f044cf0005a12d413348d75ca5e998d9ca8f7656062e52cce
MD5 8e407ee3aa2e74e38edd81c8a3c3a896
BLAKE2b-256 0dac4294e7c669be1745a5eb29adbaf2e365751ab5de76818c6fe6ea01383837

See more details on using hashes here.

Supported by

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