langchain/docs/modules/agents
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
..
agent_toolkits Fix typo in vectorstore.ipynb (#1614) 2023-03-12 14:12:47 -07:00
examples Fix all the bug in init Tool in docs (#1725) 2023-03-16 21:55:44 -07:00
implementations Fix all the bug in init Tool in docs (#1725) 2023-03-16 21:55:44 -07:00
agents.md Documentation: Minor typo fixes (#1327) 2023-02-27 14:40:43 -08:00
getting_started.ipynb Make Tools own model, add ToolKit Concept (#1095) 2023-02-18 13:40:43 -08:00
how_to_guides.rst pandas and csv agents (#1353) 2023-02-28 22:19:11 -08:00
key_concepts.md docs: add docs link to agent toolkits (#1735) 2023-03-17 07:59:49 -07:00
tools.md Add podcast api tool to use NLP to search all podcasts or episodes. (#1833) 2023-03-20 22:04:17 -07:00