Metadata-Version: 2.4
Name: llama-index-readers-rayyan
Version: 0.5.0
Summary: llama-index readers rayyan integration
Author-email: Your Name <you@example.com>
Maintainer: hammady
License-Expression: MIT
License-File: LICENSE
Keywords: rayyan,systematic review
Requires-Python: <4.0,>=3.10
Requires-Dist: llama-index-core<0.15,>=0.13.0
Requires-Dist: rayyan-sdk~=1.0rc7
Requires-Dist: tenacity<9,>=8.2.3
Requires-Dist: tqdm<5,>=4.66.1
Description-Content-Type: text/markdown

# Rayyan Loader

```bash
pip install llama-index-readers-rayyan
```

This loader fetches review articles from [Rayyan](https://www.rayyan.ai/)
using the [Rayyan SDK](https://github.com/rayyansys/rayyan-python-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.

```python
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:

```python
# 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](https://github.com/run-llama/llama_index/).
