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
Built Distribution
File details
Details for the file llama_index_readers_rayyan-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_rayyan-0.3.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068afbd617be4dc548494d05c9ebf5130e16fc3126d8d576e94f4239a464256e |
|
MD5 | bb99309a94a69001fd9a3039d8b1e34f |
|
BLAKE2b-256 | 3b12e79f0a13b7fd9db5074e2e1bcf4319e659c520d6218b0648544eb8549782 |
File details
Details for the file llama_index_readers_rayyan-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_rayyan-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132002b64ac6e10f044cf0005a12d413348d75ca5e998d9ca8f7656062e52cce |
|
MD5 | 8e407ee3aa2e74e38edd81c8a3c3a896 |
|
BLAKE2b-256 | 0dac4294e7c669be1745a5eb29adbaf2e365751ab5de76818c6fe6ea01383837 |