Skip to main content

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

  • OpenAlex API details are listed here

  • Some code adopted from pyAlex

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_openalex-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_openalex-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_openalex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b09ce21baaab09cafa165882d8b89e24873aafeffbdb4885534fbf4cd4a03633
MD5 4d91b01ddc028b00a9b18266dc990f4d
BLAKE2b-256 349bfda2954c470f2aa82bb8b71cadebf162f4d40f84db0234c08d8d226bcbf1

See more details on using hashes here.

File details

Details for the file llama_index_readers_openalex-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_openalex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7947bafe2f9916b918dafe52a320d9c76030240c5f302b3d0559da6763d5cfb1
MD5 89c5edfb19f1873b0f66a9960b94215e
BLAKE2b-256 9bccf8b562641f6812ca3344e61ef29fe00ba7c1dbd5e6f9b1619a6d14b8072c

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