langchain/docs/modules
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
..
agents Add podcast api tool to use NLP to search all podcasts or episodes. (#1833) 2023-03-20 22:04:17 -07:00
chains Fix typo in sqlite.ipynb (#1828) 2023-03-20 16:47:19 -07:00
chat Harrison/chat token usage (#1785) 2023-03-19 10:32:31 -07:00
document_loaders Harrison/add source column (#1784) 2023-03-19 10:32:13 -07:00
indexes Harrison/azure embeddings (#1787) 2023-03-19 10:42:33 -07:00
llms Harrison/move docs (#1741) 2023-03-17 08:49:10 -07:00
memory Harrison/token buffer memory (#1786) 2023-03-19 10:42:24 -07:00
prompts Fix Document & Expose StringPromptTemplate as a custom-prompt-template. (#1753) 2023-03-19 09:47:56 -07:00
utils Follow up to #1803 to remove dynamic docs route. (#1818) 2023-03-20 07:52:41 -07:00
agents.rst Documentation: Minor typo fixes (#1327) 2023-02-27 14:40:43 -08:00
chains.rst Documentation: Minor typo fixes (#1327) 2023-02-27 14:40:43 -08:00
chat.rst (rfc) chat models (#1424) 2023-03-06 08:34:24 -08:00
document_loaders.rst Harrison/unstructured support (#903) 2023-02-05 23:02:07 -08:00
indexes.rst improve docs for indexes (#1146) 2023-02-19 23:14:50 -08:00
llms.rst Fix minor error in LLM documentation (#602) 2023-01-12 18:16:32 -08:00
memory.rst Harrison/memory refactor (#1478) 2023-03-07 07:59:37 -08:00
prompts.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00
state_of_the_union.txt Docs refactor (#480) 2023-01-02 08:24:09 -08:00
utils.rst Feature: linkcheck-action (#534) (#542) 2023-01-04 21:39:50 -08:00