File size: 832 Bytes
7677e00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# AskNews

[AskNews](https://asknews.app/) enhances language models with up-to-date global or historical news
by processing and indexing over 300,000 articles daily, providing prompt-optimized responses
through a low-latency endpoint, and ensuring transparency and diversity in its news coverage.

## Installation and Setup

First, you need to install `asknews` python package.

```bash
pip install asknews
```

You also need to set our AskNews API credentials, which can be generated at 
the [AskNews console](https://my.asknews.app/).


## Retriever

See a [usage example](/docs/integrations/retrievers/asknews).

```python
from langchain_community.retrievers import AskNewsRetriever
```

## Tool

See a [usage example](/docs/integrations/tools/asknews).

```python
from langchain_community.tools.asknews import AskNewsSearch
```