Metadata-Version: 2.4
Name: llama-index-readers-patentsview
Version: 1.0.0
Summary: llama-index readers patentsview integration
Author-email: Your Name <you@example.com>
Maintainer: shao-shuai
License-Expression: MIT
License-File: LICENSE
Keywords: patent
Requires-Python: <4.0,>=3.9
Requires-Dist: llama-index-core<0.15,>=0.13.0
Description-Content-Type: text/markdown

# Patentsview Loader

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

This loader loads patent abstract from `a list of patent numbers` with API provided by [Patentsview](https://patentsview.org/).

> Note: The API now requires an API key which can be requested on [this page](https://patentsview-support.atlassian.net/servicedesk/customer/portal/1).
> PatentsviewReader looks for its value in the environmental variable `PATENTSVIEW_API_KEY`

## Usage

Here'a an example usage of PatentsviewReader.

```python
from llama_index.readers.patentsview import PatentsviewReader

loader = PatentsviewReader(api_key=os.getenv("PATENTSVIEW_API_KEY"))
patents = ["8848839", "10452978"]
abstracts = loader.load_data(patents)
```

This loader is designed for loading data into [LlamaIndex](https://github.com/run-llama/llama_index/tree/main/llama_index).
