id stringlengths 14 15 | text stringlengths 17 2.72k | source stringlengths 47 115 |
|---|---|---|
f214ca03c2e5-18 | 'Examples of tracks by Bach include "American Woman", "Concerto for 2 Violins in D Minor, BWV 1043: I. Vivace", "Aria Mit 30 Veränderungen, BWV 988 \'Goldberg Variations\': Aria", "Suite for Solo Cello No. 1 in G Major, BWV 1007: I. Prélude", and "Toccata and Fugue in D Minor, BWV 565: I. Toccata".'
In some case, the t... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-19 | tokenizer = AutoTokenizer.from_pretrained(model_id)
pipe = pipeline(task="text2text-generation", model=model, tokenizer=tokenizer, max_length=1024, device=device_id)
local_llm = HuggingFacePipeline(pipeline=pipe)
from langchain.utilities import SQLDatabase
from langchain_experimental.sql import SQLDatabaseChain
db = ... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-20 | {'query': 'How many customers are there?',
'result': '[59]',
'intermediate_steps': [{'input': 'How many customers are there?\nSQLQuery:SELECT count(*) FROM Customer\nSQLResult: [(59,)]\nAnswer:',
'top_k': '5',
'dialect': 'sqlite', | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-21 | 'top_k': '5',
'dialect': 'sqlite',
'table_info': '\nCREATE TABLE "Customer" (\n\t"CustomerId" INTEGER NOT NULL, \n\t"FirstName" NVARCHAR(40) NOT NULL, \n\t"LastName" NVARCHAR(20) NOT NULL, \n\t"Company" NVARCHAR(80), \n\t"Address" NVARCHAR(70), \n\t"City" NVARCHAR(40), \n\t"State" NVARCHAR(40), \n\t"Country" NVARCHAR(4... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-22 | {'query': 'SELECT count(*) FROM Customer', 'dialect': 'sqlite'},
'SELECT count(*) FROM Customer',
'[(59,)]']}
Even this relatively large model will most likely fail to generate more complicated SQL by itself. However, you can log its inputs and outputs so that you can hand-correct them and use the corrected examples fo... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-23 | QUERY = "List all the customer first names that start with 'a'"
def _parse_example(result: Dict) -> Dict:
sql_cmd_key = "sql_cmd"
sql_result_key = "sql_result"
table_info_key = "table_info"
input_key = "input"
final_answer_key = "answer"
_example = {
"input": result.get("query"),
}
steps = result.get("intermediate_s... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-24 | SELECT firstname FROM customer WHERE firstname LIKE '%a%'
SQLResult: [('François',), ('František',), ('Helena',), ('Astrid',), ('Daan',), ('Kara',), ('Eduardo',), ('Alexandre',), ('Fernanda',), ('Mark',), ('Frank',), ('Jack',), ('Dan',), ('Kathy',), ('Heather',), ('Frank',), ('Richard',), ('Patrick',), ('Julia',), ('Ed... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-25 | answer: '[(''François'', ''Frantiek'', ''Helena'', ''Astrid'', ''Daan'', ''Kara'',
''Eduardo'', ''Alexandre'', ''Fernanda'', ''Mark'', ''Frank'', ''Jack'', ''Dan'',
''Kathy'', ''Heather'', ''Frank'', ''Richard'', ''Patrick'', ''Julia'', ''Edward'',
''Martha'', ''Aaron'', ''Madalena'', ''Hannah'', ''Niklas'', ''Camille'... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-26 | \"Company\" NVARCHAR(80), \n\t\"Address\" NVARCHAR(70), \n\t\"City\" NVARCHAR(40),\
\ \n\t\"State\" NVARCHAR(40), \n\t\"Country\" NVARCHAR(40), \n\t\"PostalCode\" NVARCHAR(10),\
\ \n\t\"Phone\" NVARCHAR(24), \n\t\"Fax\" NVARCHAR(24), \n\t\"Email\" NVARCHAR(60)\
\ NOT NULL, \n\t\"SupportRepId\" INTEGER, \n\tPRIMARY KEY ... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-27 | Run the snippet above a few times, or log exceptions in your deployed environment, to collect lots of examples of inputs, table_info and sql_cmd generated by your language model. The sql_cmd values will be incorrect and you can manually fix them up to build a collection of examples, e.g. here we are using YAML to keep ... | https://python.langchain.com/docs/integrations/tools/sqlite |
f214ca03c2e5-28 | /*
3 rows from Genre table:
GenreId Name
1 Rock
2 Jazz
3 Metal
*/
sql_cmd: SELECT "Name" FROM "Genre" WHERE "Name" LIKE 'r%';
sql_result: "[('Rock',), ('Rock and Roll',), ('Reggae',), ('R&B/Soul',)]"
answer: The genres that start with 'r' are Rock, Rock and Roll, Reggae and R&B/Soul.
"""
Now that you have some example... | https://python.langchain.com/docs/integrations/tools/sqlite |
d116bff66bc6-0 | First, you need to install wikipedia python package. | https://python.langchain.com/docs/integrations/tools/wikipedia |
d116bff66bc6-1 | 'Page: Hunter × Hunter\nSummary: Hunter × Hunter (stylized as HUNTER×HUNTER and pronounced "hunter hunter") is a Japanese manga series written and illustrated by Yoshihiro Togashi. It has been serialized in Shueisha\'s shōnen manga magazine Weekly Shōnen Jump since March 1998, although the manga has frequently gone on ... | https://python.langchain.com/docs/integrations/tools/wikipedia |
d116bff66bc6-2 | Hunter × Hunter is an anime television series that aired from 2011 to 2014 based on Yoshihiro Togashi\'s manga series Hunter × Hunter. The story begins with a young boy named Gon Freecss, who one day discovers that the father who he thought was dead, is in fact alive and well. He learns that his father, Ging, is a lege... | https://python.langchain.com/docs/integrations/tools/wikipedia |
82b05c6c689d-0 | Wolfram Alpha
This notebook goes over how to use the wolfram alpha component.
First, you need to set up your Wolfram Alpha developer account and get your APP ID:
Go to wolfram alpha and sign up for a developer account here
Create an app and get your APP ID
pip install wolframalpha
Then we will need to set some environm... | https://python.langchain.com/docs/integrations/tools/wolfram_alpha |
cb765c37ea9c-0 | Yahoo Finance News
This notebook goes over how to use the yahoo_finance_news tool with an agent.
Setting up
First, you need to install yfinance python package.
Example with Chain
import os
os.environ["OPENAI_API_KEY"] = "..."
from langchain.chat_models import ChatOpenAI
from langchain.agents import initialize_agent... | https://python.langchain.com/docs/integrations/tools/yahoo_finance_news |
cb765c37ea9c-1 | > Finished chain.
'I cannot compare the sentiment of Microsoft and Nvidia as I only have information about Microsoft.'
How YahooFinanceNewsTool works?
tool = YahooFinanceNewsTool()
'No news found for company that searched with NVDA ticker.'
res = tool.run("AAPL")
print(res)
Top Research Reports for Apple, Broadcom... | https://python.langchain.com/docs/integrations/tools/yahoo_finance_news |
52080b73f885-0 | YouTube
YouTube Search package searches YouTube videos avoiding using their heavily rate-limited API.
It uses the form on the YouTube homepage and scrapes the resulting page.
This notebook shows how to use a tool to search YouTube.
Adapted from https://github.com/venuv/langchain_yt_tools
#! pip install youtube_search
f... | https://python.langchain.com/docs/integrations/tools/youtube |
7307d88ced18-0 | Zapier Natural Language Actions gives you access to the 5k+ apps, 20k+ actions on Zapier's platform through a natural language API interface.
NLA supports apps like Gmail, Salesforce, Trello, Slack, Asana, HubSpot, Google Sheets, Microsoft Teams, and thousands more apps: https://zapier.com/apps Zapier NLA handles ALL t... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-1 | > Entering new AgentExecutor chain...
I need to find the email and summarize it.
Action: Gmail: Find Email
Action Input: Find the latest email from Silicon Valley Bank
Observation: {"from__name": "Silicon Valley Bridge Bank, N.A.", "from__email": "sreply@svb.com", "body_plain": "Dear Clients, After chaotic, tumultuous ... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-2 | Observation: {"message__text": "Silicon Valley Bank has announced that Tim Mayopoulos is the new CEO. FDIC is fully insuring all deposits and they have an ask for clients and partners as they rebuild.", "message__permalink": "https://langchain.slack.com/archives/C04TSGU0RA7/p1678859932375259", "channel": "C04TSGU0RA7",... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-3 | > Finished chain.
'I have sent a summary of the last email from Silicon Valley Bank to the #test-zapier channel in Slack.'
If you need more explicit control, use a chain, like below.
## step 1. gmail find email
GMAIL_SEARCH_INSTRUCTIONS = "Grab the latest email from Silicon Valley Bank"
def nla_gmail(inputs):
a... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-4 | > Entering new SimpleSequentialChain chain...
{"from__name": "Silicon Valley Bridge Bank, N.A.", "from__email": "sreply@svb.com", "body_plain": "Dear Clients, After chaotic, tumultuous & stressful days, we have clarity on path for SVB, FDIC is fully insuring all deposits & have an ask for clients & partners as we rebui... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-5 | Best regards,
[Your Name]
{"message__text": "Dear Silicon Valley Bridge Bank, \n\nThank you for your email and the update regarding your new CEO Tim Mayopoulos. We appreciate your dedication to keeping your clients and partners informed and we look forward to continuing our relationship with you. \n\nBest regards, \n[... | https://python.langchain.com/docs/integrations/tools/zapier |
7307d88ced18-6 | > Finished chain.
'{"message__text": "Dear Silicon Valley Bridge Bank, \\n\\nThank you for your email and the update regarding your new CEO Tim Mayopoulos. We appreciate your dedication to keeping your clients and partners informed and we look forward to continuing our relationship with you. \\n\\nBest regards, \\... | https://python.langchain.com/docs/integrations/tools/zapier |
d18086121d2c-0 | Apify
This notebook shows how to use the Apify integration for LangChain.
Apify is a cloud platform for web scraping and data extraction, which provides an ecosystem of more than a thousand ready-made apps called Actors for various web scraping, crawling, and data extraction use cases. For example, you can use it to ex... | https://python.langchain.com/docs/integrations/tools/apify |
d18086121d2c-1 | apify = ApifyWrapper()
Then run the Actor, wait for it to finish, and fetch its results from the Apify dataset into a LangChain document loader.
Note that if you already have some results in an Apify dataset, you can load them directly using ApifyDatasetLoader, as shown in this notebook. In that notebook, you'll also f... | https://python.langchain.com/docs/integrations/tools/apify |
59846ec6d2d0-0 | Use the AlphaVantageAPIWrapper to get currency exchange rates.
{'1. From_Currency Code': 'USD',
'2. From_Currency Name': 'United States Dollar',
'3. To_Currency Code': 'JPY',
'4. To_Currency Name': 'Japanese Yen',
'5. Exchange Rate': '144.93000000',
'6. Last Refreshed': '2023-08-11 21:31:01',
'7. Time Zone': 'UTC',
'8.... | https://python.langchain.com/docs/integrations/tools/alpha_vantage |
c175e382592c-0 | ArXiv
This notebook goes over how to use the arxiv tool with an agent.
First, you need to install arxiv python package.
from langchain.chat_models import ChatOpenAI
from langchain.agents import load_tools, initialize_agent, AgentType
llm = ChatOpenAI(temperature=0.0)
tools = load_tools(
["arxiv"],
)
agent_chain = in... | https://python.langchain.com/docs/integrations/tools/arxiv |
c175e382592c-1 | 'The paper 1605.08386 is about heat-bath random walks with Markov bases on graphs of lattice points.'
The ArXiv API Wrapper
The tool uses the API Wrapper. Below, we explore some of the features it provides.
from langchain.utilities import ArxivAPIWrapper
Run a query to get information about some scientific article/art... | https://python.langchain.com/docs/integrations/tools/arxiv |
c175e382592c-2 | docs = arxiv.run("Caprice Stanley")
docs
'Published: 2017-10-10\nTitle: On Mixing Behavior of a Family of Random Walks Determined by a Linear Recurrence\nAuthors: Caprice Stanley, Seth Sullivant\nSummary: We study random walks on the integers mod $G_n$ that are determined by an\ninteger sequence $\\{ G_n \\}_{n \\geq 1... | https://python.langchain.com/docs/integrations/tools/arxiv |
afaf9a170df1-0 | Amazon AWS Lambda is a serverless computing service provided by Amazon Web Services (AWS). It helps developers to build and run applications and services without provisioning or managing servers. This serverless architecture enables you to focus on writing and deploying code, while AWS automatically takes care of scali... | https://python.langchain.com/docs/integrations/tools/awslambda |
47bd09eb7158-0 | Giving agents access to the shell is powerful (though risky outside a sandboxed environment).
The LLM can use it to execute any shell commands. A common use case for this is letting the LLM interact with your local file system.
Note: Shell tool does not work with Windows OS.
As with all tools, these can be given to an ... | https://python.langchain.com/docs/integrations/tools/bash |
47bd09eb7158-1 | Thought:The URLs have been successfully extracted and sorted. We can return the list of URLs as the final answer.
Final Answer: ["https://blog.langchain.dev/", "https://discord.gg/6adMQxSpJS", "https://docs.langchain.com/docs/", "https://github.com/hwchase17/chat-langchain", "https://github.com/hwchase17/langchain", "h... | https://python.langchain.com/docs/integrations/tools/bash |
54e51e8a2856-0 | This example shows how to use ChatGPT Plugins within LangChain abstractions.
Note 1: This currently only works for plugins with no auth.
Note 2: There are almost certainly other ways to do this, this is just a first pass. If you have better ideas, please open a PR!
> Entering new AgentExecutor chain...
I need to chec... | https://python.langchain.com/docs/integrations/tools/chatgpt_plugins |
54e51e8a2856-1 | OpenAPI Spec: {'openapi': '3.0.1', 'info': {'version': 'v0', 'title': 'Open AI Klarna product Api'}, 'servers': [{'url': 'https://www.klarna.com/us/shopping'}], 'tags': [{'name': 'open-ai-product-endpoint', 'description': 'Open AI Product Endpoint. Query for products.'}], 'paths': {'/public/openai/v0/products': {'get':... | https://python.langchain.com/docs/integrations/tools/chatgpt_plugins |
54e51e8a2856-2 | Observation: {"products":[{"name":"Lacoste Men's Pack of Plain T-Shirts","url":"https://www.klarna.com/us/shopping/pl/cl10001/3202043025/Clothing/Lacoste-Men-s-Pack-of-Plain-T-Shirts/?utm_source=openai","price":"$26.60","attributes":["Material:Cotton","Target Group:Man","Color:White,Black"]},{"name":"Hanes Men's Ultima... | https://python.langchain.com/docs/integrations/tools/chatgpt_plugins |
54e51e8a2856-3 | Thought:The available t shirts in Klarna are Lacoste Men's Pack of Plain T-Shirts, Hanes Men's Ultimate 6pk. Crewneck T-Shirts, Nike Boy's Jordan Stretch T-shirts, Polo Classic Fit Cotton V-Neck T-Shirts 3-Pack, and adidas Comfort T-shirts Men's 3-pack.
Final Answer: The available t shirts in Klarna are Lacoste Men's P... | https://python.langchain.com/docs/integrations/tools/chatgpt_plugins |
54e51e8a2856-4 | > Finished chain.
"The available t shirts in Klarna are Lacoste Men's Pack of Plain T-Shirts, Hanes Men's Ultimate 6pk. Crewneck T-Shirts, Nike Boy's Jordan Stretch T-shirts, Polo Classic Fit Cotton V-Neck T-Shirts 3-Pack, and adidas Comfort T-shirts Men's 3-pack." | https://python.langchain.com/docs/integrations/tools/chatgpt_plugins |
cbfa03cca64b-0 | This notebook goes over how to use the bing search component.
First, you need to set up the proper API keys and environment variables. To set it up, follow the instructions found here.
Then we will need to set some environment variables. | https://python.langchain.com/docs/integrations/tools/bing_search |
cbfa03cca64b-1 | 'Thanks to the flexibility of <b>Python</b> and the powerful ecosystem of packages, the Azure CLI supports features such as autocompletion (in shells that support it), persistent credentials, JMESPath result parsing, lazy initialization, network-less unit tests, and more. Building an open-source and cross-platform Azur... | https://python.langchain.com/docs/integrations/tools/bing_search |
cbfa03cca64b-2 | learning to data science, <b>Python</b> is the language for you. To install <b>Python</b> using the Microsoft Store: Go to your Start menu (lower left Windows icon), type "Microsoft Store", select the link to open the store. Once the store is open, select Search from the upper-right menu and enter "<b>Py... | https://python.langchain.com/docs/integrations/tools/bing_search |
cbfa03cca64b-3 | Run query through BingSearch and return snippet, title, and link metadata. | https://python.langchain.com/docs/integrations/tools/bing_search |
ed1971956dca-0 | This notebook goes over how to use the Brave Search tool. | https://python.langchain.com/docs/integrations/tools/brave_search |
ed1971956dca-1 | '[{"title": "Obama\'s Middle Name -- My Last Name -- is \'Hussein.\' So?", "link": "https://www.cair.com/cair_in_the_news/obamas-middle-name-my-last-name-is-hussein-so/", "snippet": "I wasn\\u2019t sure whether to laugh or cry a few days back listening to radio talk show host Bill Cunningham repeatedly scream Barack <s... | https://python.langchain.com/docs/integrations/tools/brave_search |
ed1971956dca-2 | and the first African American to hold the office. Before winning the presidency, <strong>Obama</strong> represented Illinois in the U.S."}]' | https://python.langchain.com/docs/integrations/tools/brave_search |
4f160a97915f-0 | Dall-E Image Generator
This notebook shows how you can generate images from a prompt synthesized using an OpenAI LLM. The images are generated using Dall-E, which uses the same OpenAI API key as the LLM.
# Needed if you would like to display images in the notebook
pip install opencv-python scikit-image
from langchain.l... | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
4f160a97915f-1 | llm = OpenAI(temperature=0.9)
prompt = PromptTemplate(
input_variables=["image_desc"],
template="Generate a detailed prompt to generate an image based on the following description: {image_desc}",
)
chain = LLMChain(llm=llm, prompt=prompt)
image_url = DallEAPIWrapper().run(chain.run("halloween night at a haunted museum"... | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
4f160a97915f-2 | image = io.imread(image_url)
cv2.imshow('image', image)
cv2.waitKey(0) #wait for a keyboard input
cv2.destroyAllWindows()
from langchain.agents import load_tools
from langchain.agents import initialize_agent
tools = load_tools(['dalle-image-generator'])
agent = initialize_agent(tools, llm, agent="zero-shot-react-desc... | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
4f160a97915f-3 | Observation: https://oaidalleapiprodscus.blob.core.windows.net/private/org-rocrupyvzgcl4yf25rqq6d1v/user-WsxrbKyP2c8rfhCKWDyMfe8N/img-ogKfqxxOS5KWVSj4gYySR6FY.png?st=2023-01-31T07%3A38%3A25Z&se=2023-01-31T09%3A38%3A25Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a... | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
4f160a97915f-4 | Thought: With the image generated, I can now make my final answer.
Final Answer: An image of a Halloween night at a haunted museum can be seen here: https://oaidalleapiprodscus.blob.core.windows.net/private/org-rocrupyvzgcl4yf25rqq6d1v/user-WsxrbKyP2c8rfhCKWDyMfe8N/img-ogKfqxxOS5KWVSj4gYySR6FY.png?st=2023-01-31T07%3A38... | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
4f160a97915f-5 | > Finished chain. | https://python.langchain.com/docs/integrations/tools/dalle_image_generator |
57381bccc46c-0 | DataForSeo
This notebook demonstrates how to use the DataForSeo API to obtain search engine results. The DataForSeo API retrieves SERP from most popular search engines like Google, Bing, Yahoo. It also allows to get SERPs from different search engine types like Maps, News, Events, etc.
from langchain.utilities.datafors... | https://python.langchain.com/docs/integrations/tools/dataforseo |
57381bccc46c-1 | wrapper = DataForSeoAPIWrapper()
The run method will return the first result snippet from one of the following elements: answer_box, knowledge_graph, featured_snippet, shopping, organic.
wrapper.run("Weather in Los Angeles")
The Difference Between run and results
run and results are two methods provided by the DataFor... | https://python.langchain.com/docs/integrations/tools/dataforseo |
57381bccc46c-2 | maps_search = DataForSeoAPIWrapper(
top_count=10,
json_result_fields=["title", "value", "address", "rating", "type"],
params={
"location_coordinate": "52.512,13.36,12z",
"language_code": "en",
"se_type": "maps",
},
)
maps_search.results("coffee near me")
Integration with Langchain Agents
You can use the Tool class fro... | https://python.langchain.com/docs/integrations/tools/dataforseo |
57381bccc46c-3 | search = DataForSeoAPIWrapper(
top_count=3,
json_result_types=["organic"],
json_result_fields=["title", "description", "type"],
)
tool = Tool(
name="google-search-answer",
description="My new answer tool",
func=search.run,
)
json_tool = Tool(
name="google-search-json",
description="My new json tool",
func=search.result... | https://python.langchain.com/docs/integrations/tools/dataforseo |
d89472350516-0 | This notebook goes over how to use the duck-duck-go search component.
To get more additional information (e.g. link, source) use DuckDuckGoSearchResults() | https://python.langchain.com/docs/integrations/tools/ddg |
d89472350516-1 | "[snippet: Barack Hussein Obama II (/ b ə ˈ r ɑː k h uː ˈ s eɪ n oʊ ˈ b ɑː m ə / bə-RAHK hoo-SAYN oh-BAH-mə; born August 4, 1961) is an American politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic Party, he was the first African-American president of the United... | https://python.langchain.com/docs/integrations/tools/ddg |
d89472350516-2 | You can also just search for news articles. Use the keyword backend="news" | https://python.langchain.com/docs/integrations/tools/ddg |
d89472350516-3 | "[date: 2023-07-26T12:01:22, title: 'My heart is broken': Former Obama White House chef mourned following apparent drowning death in Edgartown, snippet: Tafari Campbell of Dumfries, Va., had been paddle boarding in Edgartown Great Pond when he appeared to briefly struggle, submerged, and did not return to the surface, ... | https://python.langchain.com/docs/integrations/tools/ddg |
d89472350516-4 | You can also directly pass a custom DuckDuckGoSearchAPIWrapper to DuckDuckGoSearchResults. Therefore, you have much more control over the search results. | https://python.langchain.com/docs/integrations/tools/ddg |
72ce3115bba6-0 | This Jupyter Notebook demonstrates how to use Eden AI tools with an Agent.
Eden AI is revolutionizing the AI landscape by uniting the best AI providers, empowering users to unlock limitless possibilities and tap into the true potential of artificial intelligence. With an all-in-one comprehensive and hassle-free platfor... | https://python.langchain.com/docs/integrations/tools/edenai_tools |
72ce3115bba6-1 | tools = [
EdenAiTextModerationTool(providers=["openai"],language="en"),
EdenAiObjectDetectionTool(providers=["google","api4ai"]),
EdenAiTextToSpeechTool(providers=["amazon"],language="en",voice="MALE"),
EdenAiExplicitImageTool(providers=["amazon","google"]),
EdenAiSpeechToTextTool(providers=["amazon"]),
EdenAiParsingID... | https://python.langchain.com/docs/integrations/tools/edenai_tools |
72ce3115bba6-2 | 'output': "The image contains objects such as Apple, Backpack, Luggage & bags, and Container. None of them are harmful. The text 'this item is safe' can be found in the audio file at https://d14uq1pz7dzsdq.cloudfront.net/0546db8b-528e-4b63-9a69-d14d43ad1566_.mp3?Expires=1693316753&Signature=N0KZeK9I-1s7wTgiQOAwH7LFlltw... | https://python.langchain.com/docs/integrations/tools/edenai_tools |
72ce3115bba6-3 | (AgentAction(tool='edenai_explicit_content_detection_text', tool_input='Apple, Backpack, Luggage & bags, Container', log=' I need to check if any of the objects are harmful.\nAction: edenai_explicit_content_detection_text\nAction Input: Apple, Backpack, Luggage & bags, Container'),
'nsfw_likelihood: 2\n"sexually explic... | https://python.langchain.com/docs/integrations/tools/edenai_tools |
72ce3115bba6-4 | 'https://d14uq1pz7dzsdq.cloudfront.net/0546db8b-528e-4b63-9a69-d14d43ad1566_.mp3?Expires=1693316753&Signature=N0KZeK9I-1s7wTgiQOAwH7LFlltwyonSJcDnkdnr8JIJmbgSw6fo6RTxWl~VvD2Hg6igJqxtJFFWyrBmmx-f9wWLw3bZSnuMxkhTRqLX9aUA9N-vPJGiRZV5BFredaOm8pwfo8TcXhVjw08iSxv8GSuyZEIwZkiq4PzdiyVTnKKji6eytV0CrnHrTs~eXZkSnOdD2Fu0ECaKvFHlsF... | https://python.langchain.com/docs/integrations/tools/edenai_tools |
9249296a7e5f-0 | LangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them.
First, we'll import the tools.
from langchain.tools.file_management import (
ReadFileTool,
CopyFileTool,
DeleteFileTool,
MoveFileTool,
WriteFileTool,
ListDirectoryTool,
)
from langchain.agents.age... | https://python.langchain.com/docs/integrations/tools/filesystem |
9249296a7e5f-1 | # We'll make a temporary directory to avoid clutter
working_directory = TemporaryDirectory()
If you want to provide all the file tooling to your agent, it's easy to do so with the toolkit. We'll pass the temporary directory in as a root directory as a workspace for the LLM.
It's recommended to always pass in a root dir... | https://python.langchain.com/docs/integrations/tools/filesystem |
9249296a7e5f-2 | MoveFileTool(name='move_file', description='Move or rename a file from one location to another', args_schema=<class 'langchain.tools.file_management.move.FileMoveInput'>, return_direct=False, verbose=False, callback_manager=<langchain.callbacks.shared.SharedCallbackManager object at 0x1156f4350>, root_dir='/var/folders... | https://python.langchain.com/docs/integrations/tools/filesystem |
f3317ba14f35-0 | Golden provides a set of natural language APIs for querying and enrichment using the Golden Knowledge Graph e.g. queries such as: Products from OpenAI, Generative ai companies with series a funding, and rappers who invest can be used to retrieve structured data about relevant entities.
The golden-query langchain tool i... | https://python.langchain.com/docs/integrations/tools/golden_query |
f3317ba14f35-1 | 'properties': [{'predicateId': 'name',
'instances': [{'value': 'Analog Devices', 'citations': []}]}]},
{'id': 3941943,
'latestVersionId': 60382250,
'properties': [{'predicateId': 'name',
'instances': [{'value': 'AbbVie Inc.', 'citations': []}]}]},
{'id': 4178762,
'latestVersionId': 60542667,
'properties': [{'predicateI... | https://python.langchain.com/docs/integrations/tools/golden_query |
20f10ab191c4-0 | Google Drive
This notebook walks through connecting a LangChain to the Google Drive API.
Prerequisites
Create a Google Cloud project or use an existing project
Enable the Google Drive API
Authorize credentials for desktop app
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
Inst... | https://python.langchain.com/docs/integrations/tools/google_drive |
20f10ab191c4-1 | application/vnd.google-apps.spreadsheet (GSheet)
application/vnd.google.colaboratory (Notebook colab)
application/vnd.openxmlformats-officedocument.presentationml.presentation (PPTX)
application/vnd.openxmlformats-officedocument.wordprocessingml.document (DOCX)
It's possible to update or customize this. See the documen... | https://python.langchain.com/docs/integrations/tools/google_drive |
20f10ab191c4-2 | # By default, search only in the filename.
tool = GoogleDriveSearchTool(
api_wrapper=GoogleDriveAPIWrapper(
folder_id=folder_id,
num_results=2,
template="gdrive-query-in-folder", # Search in the body of documents
)
)
import logging
logging.basicConfig(level=logging.INFO)
tool.run("machine learning")
from langchain.agen... | https://python.langchain.com/docs/integrations/tools/google_drive |
d3c68916bdbb-0 | "1. Delfina Restaurant\nAddress: 3621 18th St, San Francisco, CA 94110, USA\nPhone: (415) 552-4055\nWebsite: https://www.delfinasf.com/\n\n\n2. Piccolo Forno\nAddress: 725 Columbus Ave, San Francisco, CA 94133, USA\nPhone: (415) 757-0087\nWebsite: https://piccolo-forno-sf.com/\n\n\n3. L'Osteria del Forno\nAddress: 519 ... | https://python.langchain.com/docs/integrations/tools/google_places |
df61c1ab5e1a-0 | This notebook goes over how to use the google search component.
Then we will need to set some environment variables.
"STATE OF HAWAII. 1 Child's First Name. (Type or print). 2. Sex. BARACK. 3. This Birth. CERTIFICATE OF LIVE BIRTH. FILE. NUMBER 151 le. lb. Middle Name. Barack Hussein Obama II is an American former poli... | https://python.langchain.com/docs/integrations/tools/google_search |
8113fbb282e4-0 | This notebook goes over how to use the Google Serper component to search the web. First you need to sign up for a free account at serper.dev and get your api key.
from langchain.utilities import GoogleSerperAPIWrapper
from langchain.llms.openai import OpenAI
from langchain.agents import initialize_agent, Tool
from lang... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-1 | self_ask_with_search = initialize_agent(
tools, llm, agent=AgentType.SELF_ASK_WITH_SEARCH, verbose=True
)
self_ask_with_search.run(
"What is the hometown of the reigning men's U.S. Open champion?"
)
If you would also like to obtain the results in a structured way including metadata. For this we will be using the result... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-2 | 'TV, plus explore accessories, entertainment, ...',
'sitelinks': [{'title': 'Support',
'link': 'https://support.apple.com/'},
{'title': 'iPhone',
'link': 'https://www.apple.com/iphone/'},
{'title': 'Site Map',
'link': 'https://www.apple.com/sitemap/'},
{'title': 'Business',
'link': 'https://www.apple.com/business/'},
{... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-3 | '| Britannica',
'link': 'https://www.britannica.com/topic/Apple-Inc',
'snippet': 'Apple Inc., formerly Apple Computer, Inc., American '
'manufacturer of personal computers, smartphones, '
'tablet computers, computer peripherals, and computer '
'...',
'attributes': {'Related People': 'Steve Jobs Steve Wozniak Jony '
'Iv... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-4 | 'you with your stock trading and investing.',
'position': 6}],
'peopleAlsoAsk': [{'question': 'What does Apple Inc do?',
'snippet': 'Apple Inc. (Apple) designs, manufactures and '
'markets smartphones, personal\n'
'computers, tablets, wearables and accessories '
'and sells a range of related\n'
'services.',
'title': 'A... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-5 | 'link': 'https://en.wikipedia.org/wiki/Tim_Cook'}],
'relatedSearches': [{'query': 'Who invented the iPhone'},
{'query': 'Apple iPhone'},
{'query': 'History of Apple company PDF'},
{'query': 'Apple company history'},
{'query': 'Apple company introduction'},
{'query': 'Apple India'},
{'query': 'What does Apple Inc own'},... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-6 | 'thumbnailWidth': 225,
'thumbnailHeight': 224,
'source': 'Encyclopedia Britannica',
'domain': 'www.britannica.com',
'link': 'https://www.britannica.com/animal/lion',
'position': 2},
{'title': 'African lion, facts and photos',
'imageUrl': 'https://i.natgeofe.com/n/487a0d69-8202-406f-a6a0-939ed3704693/african-lion.JPG',
... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-7 | 'position': 4},
{'title': 'How to Draw a Realistic Lion like an Artist - Studio '
'Wildlife',
'imageUrl': 'https://studiowildlife.com/wp-content/uploads/2021/10/245528858_183911853822648_6669060845725210519_n.jpg',
'imageWidth': 1431,
'imageHeight': 2048,
'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-8 | 'other cool facts',
'imageUrl': 'https://www.gannett-cdn.com/-mm-/b2b05a4ab25f4fca0316459e1c7404c537a89702/c=0-0-1365-768/local/-/media/2022/03/16/USATODAY/usatsports/imageForEntry5-ODq.jpg?width=1365&height=768&fit=crop&format=pjpg&auto=webp',
'imageWidth': 1365,
'imageHeight': 768,
'thumbnailUrl': 'https://encrypted-... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-9 | 'position': 8},
{'title': "Lion | Smithsonian's National Zoo",
'imageUrl': 'https://nationalzoo.si.edu/sites/default/files/styles/1400_scale/public/animals/exhibit/africanlion-005.jpg?itok=6wA745g_',
'imageWidth': 1400,
'imageHeight': 845,
'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSgB3z_D4d... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-10 | 'of Robyn Denholm',
'link': 'https://www.reuters.com/business/autos-transportation/iss-recommends-tesla-investors-vote-against-re-election-robyn-denholm-2023-05-04/',
'snippet': 'Proxy advisory firm ISS on Wednesday recommended Tesla '
'investors vote against re-election of board chair Robyn '
'Denholm, citing "concern... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-11 | 'date': '6 hours ago',
'source': 'Bloomberg.com',
'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_3Eo4VI0H-nTeIbYc5DaQn5ep7YrWnmhx6pv8XddFgNF5zRC9gEpHfDq8yQ&s',
'position': 3},
{'title': 'Joby Aviation to get investment from Tesla shareholder '
'Baillie Gifford',
'link': 'https://finance.yahoo.com/... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-12 | {'title': 'The Tesla Model 3 Long Range AWD Is Now Available in the '
'U.S. With 325 Miles of Range',
'link': 'https://www.notateslaapp.com/news/1393/tesla-reopens-orders-for-model-3-long-range-after-months-of-unavailability',
'snippet': 'Tesla has reopened orders for the Model 3 Long Range '
'RWD, which has been unava... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-13 | 'footprint in the Pacific Northwest.',
'date': '22 hours ago',
'source': 'The Business Journals',
'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9kIEHWz1FcHKDUtGQBS0AjmkqtyuBkQvD8kyIY3kpaPrgYaN7I_H2zoOJsA&s',
'position': 8},
{'title': 'Tesla (TSLA) Resumes Orders for Model 3 Long Range After '
'Bac... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-14 | 'a battery plant in Oklahoma, its third in...',
'date': '53 mins ago',
'source': 'Reuters',
'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSSTcsXeenqmEKdiekvUgAmqIPR4nlAmgjTkBqLpza-lLfjX1CwB84MoNVj0Q&s',
'position': 1},
{'title': 'Ryder lanza solución llave en mano para vehículos '
'eléctricos en EU... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-15 | 'source': 'THE BHARAT EXPRESS NEWS',
'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_X9qqSwVFBBdos2CK5ky5IWIE3aJPCQeRYR9O1Jz4t-MjaEYBuwK7AU3AJQ&s',
'position': 3}]}
qdr:h (past hour) qdr:d (past day) qdr:w (past week) qdr:m (past month) qdr:y (past year)
You can specify intermediate time periods by... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-16 | 'longitude': -73.9642373,
'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNbNv6jZkJ9nyVi60__8c1DQbe_eEbugRAhIYye=w92-h92-n-k-no',
'rating': 4.5,
'ratingCount': 2265,
'category': 'Italian'},
{'position': 3,
'title': 'Caravaggio',
'address': '23 E 74th St',
'latitude': 40.773412799999996,
'longitude': -73.9647... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-17 | {'position': 6,
'title': 'Come Prima',
'address': '903 Madison Ave',
'latitude': 40.772124999999996,
'longitude': -73.965012,
'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNrX19G0NVdtDyMovCQ-M-m0c_gLmIxrWDQAAbz=w92-h92-n-k-no',
'rating': 4.5,
'ratingCount': 176,
'category': 'Italian'},
{'position': 7,
'tit... | https://python.langchain.com/docs/integrations/tools/google_serper |
8113fbb282e4-18 | 'rating': 4.5,
'ratingCount': 113,
'category': 'Italian'},
{'position': 10,
'title': 'Barbaresco',
'address': '843 Lexington Ave #1',
'latitude': 40.7654332,
'longitude': -73.9656873,
'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipMb9FbPuXF_r9g5QseOHmReejxSHgSahPMPJ9-8=w92-h92-n-k-no',
'rating': 4.3,
'ratin... | https://python.langchain.com/docs/integrations/tools/google_serper |
3ae71fe8cc6e-0 | There are many 1000s of Gradio apps on Hugging Face Spaces. This library puts them at the tips of your LLM's fingers 🦾
Specifically, gradio-tools is a Python library for converting Gradio apps into tools that can be leveraged by a large language model (LLM)-based agent to complete its task. For example, an LLM could u... | https://python.langchain.com/docs/integrations/tools/gradio_tools |
3ae71fe8cc6e-1 | Observation: A dog riding a skateboard, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by artgerm and greg rutkowski and alphonse mucha
Thought: Do I need to use a tool? Yes
Action: StableDiffusion
Action Input: A dog riding a skateboard, digital painting, artstation, concept art, smo... | https://python.langchain.com/docs/integrations/tools/gradio_tools |
3ae71fe8cc6e-2 | Job Status: Status.IN_QUEUE eta: 21.314297944849187
Observation: /var/folders/bm/ylzhm36n075cslb9fvvbgq640000gn/T/tmp5snj_nmzf20_cb3m.mp4
Thought: Do I need to use a tool? No
AI: Here is a video of a painting of a dog sitting on a skateboard.
> Finished chain. | https://python.langchain.com/docs/integrations/tools/gradio_tools |
ef76383a0103-0 | GraphQL is a query language for APIs and a runtime for executing those queries against your data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful... | https://python.langchain.com/docs/integrations/tools/graphql |
ef76383a0103-1 | > Entering new AgentExecutor chain...
I need to query the graphql database to get the titles of all the star wars films
Action: query_graphql
Action Input: query { allFilms { films { title } } }
Observation: "{\n \"allFilms\": {\n \"films\": [\n {\n \"title\": \"A New Hope\"\n },\n {\n \"title\": \"The Empire Strikes B... | https://python.langchain.com/docs/integrations/tools/graphql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.