Skip to main content

llama-index readers papers integration

Project description

Papers Loaders

pip install llama-index-readers-papers

Arxiv Papers Loader

This loader fetches the text from the most relevant scientific papers on Arxiv specified by a search query (e.g. "Artificial Intelligence"). For each paper, the abstract is extracted and put in a separate document. The search query may be any string, Arxiv paper id, or a general Arxiv query string (see the full list of capabilities here).

Usage

To use this loader, you need to pass in the search query. You may also optionally specify a local directory to temporarily store the paper PDFs (they are deleted automatically) and the maximum number of papers you want to parse for your search query (default is 10).

from llama_index.readers.papers import ArxivReader

loader = ArxivReader()
documents = loader.load_data(search_query="au:Karpathy")

Alternatively, if you would like to load papers and abstracts separately:

from llama_index.readers.papers import ArxivReader

loader = ArxivReader()
documents, abstracts = loader.load_papers_and_abstracts(
    search_query="au:Karpathy"
)

This loader is designed to be used as a way to load data into LlamaIndex.

Pubmed Papers Loader

This loader fetches the text from the most relevant scientific papers on Pubmed specified by a search query (e.g. "Alzheimers"). For each paper, the abstract is included in the Document. The search query may be any string.

Usage

To use this loader, you need to pass in the search query. You may also optionally specify the maximum number of papers you want to parse for your search query (default is 10).

from llama_index.readers.papers import PubmedReader

loader = PubmedReader()
documents = loader.load_data(search_query="amyloidosis")

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

llama_index_readers_papers-0.3.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_papers-0.3.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_papers-0.3.2.tar.gz.

File metadata

  • Download URL: llama_index_readers_papers-0.3.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for llama_index_readers_papers-0.3.2.tar.gz
Algorithm Hash digest
SHA256 825bbc1875744a7e3e84ed8d2776eaba848c57357af1ec84984325a83a742ac1
MD5 67d15d758d26629a85e7019aa66ce4d3
BLAKE2b-256 0ac99340fd0ac123508cbcdd9673f153aa47d5ab39c66b7af192fdd13d1c5b02

See more details on using hashes here.

File details

Details for the file llama_index_readers_papers-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_papers-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9166790e26f968db010f1f87c31ef335d0e78e583348ac749a632cd0c8540bea
MD5 6ac18bee1462ed5ce5a99ea1ac5668f8
BLAKE2b-256 792e6a5dea06fb2d19b499f8db92e29855d32fa4c529bce5360b8e689b866781

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page