Skip to main content

llama-index readers rayyan integration

Project description

Rayyan Loader

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 import download_loader

RayyanReader = download_loader("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 and/or subsequently used as a Tool in a LangChain Agent. See here for examples.

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.1.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

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