llama-index readers openalex integration
Project description
OpenAlex Reader
pip install llama-index-readers-openalex
This loader will search for papers in OpenAlex and load them in llama-index. The main advantage of using OpenAlex is that you can search the full-text for Open Access papers as well.
Usage
from llama_index.readers.openalex import OpenAlexReader
openalex_reader = OpenAlexReader(email="shauryr@gmail.com")
query = "biases in large language models"
# changing this to full_text=True will let you search full-text
documents = openalex_reader.load_data(query, full_text=False)
What can it do?
As shown in demo.ipynb we can get answers with citations.
query = "biases in large language models"
response = query_engine.query(
"list the biases in large language models in a markdown table"
)
Output
Source | Biases |
---|---|
Source 1 | Data selection bias, social bias (gender, age, sexual orientation, ethnicity, religion, culture) |
Source 2 | Biases of what is right and wrong to do, reflecting ethical and moral norms of society |
Source 3 | Anti-Muslim bias |
Source 6 | Gender bias |
Source 9 | Anti-LGBTQ+ bias |
Source 10 | Potential bias in the output |
Credits
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_openalex-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_openalex-0.3.0.tar.gz
- Upload date:
- Size: 3.4 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 | 615a129826fa956b0d7236c83611fa629630f52790ecd51ed6f18f330c28d3da |
|
MD5 | 07d52a9e648453956b8c97c1a7d37cc8 |
|
BLAKE2b-256 | 1ce8ad76c0129bfe472871ec7bcf594b0204bc5ea9f355146da5d06263fec020 |
File details
Details for the file llama_index_readers_openalex-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_openalex-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 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 | 761babb3a0d9a81fcf94004aff1b49824a0376953152a931d398404ca8e45f9b |
|
MD5 | ff46d4c3998d6b83169a6179c9fec03b |
|
BLAKE2b-256 | b4029a1fd7a07e62a4e9c7710f6766197ea84d27691c6072848255675e34d7d5 |