langchain/docs
Wenbin Fang a7e09d46c5
Add podcast api tool to use NLP to search all podcasts or episodes. (#1833)
Use the following code to test:

```python
import os
from langchain.llms import OpenAI
from langchain.chains.api import podcast_docs
from langchain.chains import APIChain

# Get api key here: https://openai.com/pricing
os.environ["OPENAI_API_KEY"] = "sk-xxxxx"

# Get api key here: https://www.listennotes.com/api/pricing/
listen_api_key = 'xxx'

llm = OpenAI(temperature=0)
headers = {"X-ListenAPI-Key": listen_api_key}
chain = APIChain.from_llm_and_api_docs(llm, podcast_docs.PODCAST_DOCS, headers=headers, verbose=True)
chain.run("Search for 'silicon valley bank' podcast episodes, audio length is more than 30 minutes, return only 1 results")
```

Known issues: the api response data might be too big, and we'll get such
error:
`openai.error.InvalidRequestError: This model's maximum context length
is 4097 tokens, however you requested 6733 tokens (6477 in your prompt;
256 for the completion). Please reduce your prompt; or completion
length.`
2023-03-20 22:04:17 -07:00
..
_static docs: increase width (#1049) 2023-02-15 23:07:01 -08:00
ecosystem Harrison/wandb (#1764) 2023-03-20 07:52:27 -07:00
getting_started [Docs] Add missing word from prompt docs (#1406) 2023-03-02 16:02:54 -08:00
modules Add podcast api tool to use NLP to search all podcasts or episodes. (#1833) 2023-03-20 22:04:17 -07:00
reference Harrison/deeplake (#1316) 2023-02-26 22:35:04 -08:00
tracing Harrison/callbacks (#1587) 2023-03-10 12:53:09 -08:00
use_cases Harrison/llm math (#1808) 2023-03-20 07:53:26 -07:00
conf.py Corrects copyright year (#1762) 2023-03-18 19:55:05 -07:00
deployments.md add docs for steamship deployment (#949) 2023-02-08 16:01:19 -08:00
ecosystem.rst Docs refactor (#480) 2023-01-02 08:24:09 -08:00
gallery.rst Added Mynd URL to gallery (#1684) 2023-03-15 07:59:59 -07:00
glossary.md Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
index.rst querying tabular data (#1758) 2023-03-18 11:12:18 -07:00
make.bat initial commit 2022-10-24 14:51:15 -07:00
Makefile Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
reference.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
requirements.txt docs req (#1647) 2023-03-13 16:03:32 -07:00
tracing.md Harrison/tracing docs (#806) 2023-01-29 20:49:35 -08:00