id
stringlengths
14
15
text
stringlengths
23
2.21k
source
stringlengths
52
97
9b61bfd69c8f-2
Check here to get or create a PAT.Dependencies# Install required dependenciespip install clarifaiImportsHere we will be setting the personal access token. You can find your PAT under settings/security in your Clarifai account.# Please login and get your API key from https://clarifai.com/settings/securityfrom getpass i...
https://python.langchain.com/docs/integrations/text_embedding/clarifai
1f8a349dcb04-0
AzureOpenAI | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElas...
https://python.langchain.com/docs/integrations/text_embedding/azureopenai
c68bbe4138b6-0
DeepInfra | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/text_embedding/deepinfra
c68bbe4138b6-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsearchEmbaasFake EmbeddingsGoogle Clou...
https://python.langchain.com/docs/integrations/text_embedding/deepinfra
c68bbe4138b6-2
numpy as npquery_numpy = np.array(query_result)for doc_res, doc in zip(document_result, docs): document_numpy = np.array(doc_res) similarity = np.dot(query_numpy, document_numpy) / ( np.linalg.norm(query_numpy) * np.linalg.norm(document_numpy) ) print(f'Cosine similarity between "{doc}" and query: {s...
https://python.langchain.com/docs/integrations/text_embedding/deepinfra
19becf89d37a-0
Sentence Transformers Embeddings | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/text_embedding/sentence_transformers
19becf89d37a-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsearchEmbaasFake EmbeddingsGoogle Clou...
https://python.langchain.com/docs/integrations/text_embedding/sentence_transformers
19becf89d37a-2
"This is not a test document."])PreviousSelf Hosted EmbeddingsNextSpacy EmbeddingCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright © 2023 LangChain, Inc.
https://python.langchain.com/docs/integrations/text_embedding/sentence_transformers
02bd788d7267-0
NLP Cloud | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/text_embedding/nlp_cloud
02bd788d7267-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsearchEmbaasFake EmbeddingsGoogle Clou...
https://python.langchain.com/docs/integrations/text_embedding/nlp_cloud
02bd788d7267-2
import NLPCloudEmbeddingsimport osos.environ["NLPCLOUD_API_KEY"] = "xxx"nlpcloud_embd = NLPCloudEmbeddings()text = "This is a test document."query_result = nlpcloud_embd.embed_query(text)doc_result = nlpcloud_embd.embed_documents([text])PreviousMosaicML embeddingsNextOpenAICommunityDiscordTwitterGitHubPythonJS/TSMoreHo...
https://python.langchain.com/docs/integrations/text_embedding/nlp_cloud
afb6d96612e7-0
Hugging Face Hub | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfr...
https://python.langchain.com/docs/integrations/text_embedding/huggingfacehub
a2b0acbf399d-0
Jina | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsear...
https://python.langchain.com/docs/integrations/text_embedding/jina
2670fa9ca3b6-0
InstructEmbeddings | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepIn...
https://python.langchain.com/docs/integrations/text_embedding/instruct_embeddings
db7f24559a92-0
Llama-cpp | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasti...
https://python.langchain.com/docs/integrations/text_embedding/llamacpp
ed2226654081-0
MiniMax | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/text_embedding/minimax
ed2226654081-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsearchEmbaasFake EmbeddingsGoogle Clou...
https://python.langchain.com/docs/integrations/text_embedding/minimax
bd19b592c9e4-0
Embaas | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/text_embedding/embaas
bd19b592c9e4-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfraElasticsearchEmbaasFake EmbeddingsGoogle Clou...
https://python.langchain.com/docs/integrations/text_embedding/embaas
bd19b592c9e4-2
Print created embeddingsfor i, doc_text_embedding in enumerate(doc_texts_embeddings): print(f"Embedding for document {i + 1}: {doc_text_embedding}")# Using a different model and/or custom instructionembeddings = EmbaasEmbeddings( model="instructor-large", instruction="Represent the Wikipedia document for retri...
https://python.langchain.com/docs/integrations/text_embedding/embaas
2f9d1c00b0d2-0
Fake Embeddings | 🦜�🔗 Langchain Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAleph AlphaAzureOpenAIBedrock EmbeddingsClarifaiCohereDashScopeDeepInfra...
https://python.langchain.com/docs/integrations/text_embedding/fake
fada6034a465-0
Agent toolkits | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/
fada6034a465-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/
fada6034a465-2
The agent is able to iteratively explore the blob to find what it needs to answer the user's question.📄� Multion ToolkitThis notebook walks you through connecting LangChain to the MultiOn Client in your browser📄� Office365 ToolkitThis notebook walks through connecting LangChain to Office365 email and calendar...
https://python.langchain.com/docs/integrations/toolkits/
fada6034a465-3
Spark SQL AgentThis notebook shows how to use agents to interact with a Spark SQL. Similar to SQL Database Agent, it is designed to address general inquiries about Spark SQL and facilitate error recovery.📄� SQL Database AgentThis notebook showcases an agent designed to interact with a sql databases. The agent buil...
https://python.langchain.com/docs/integrations/toolkits/
8310ca4ca42c-0
Spark Dataframe Agent | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-2
address Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). 23/05/15 20:33:10 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable +-----------+--------+-----...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-3
3| 1| 3|Heikkinen, Miss. ...|female|26.0| 0| 0|STON/O2. 3101282| 7.925| null| S| | 4| 1| 1|Futrelle, Mrs. Ja...|female|35.0| 1| 0| 113803| 53.1| C123| S| | 5| 0| 3|Allen, Mr. Willia...| male|35.0| 0| 0| 373450| 8...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-4
Tim...| male|54.0| 0| 0| 17463|51.8625| E46| S| | 8| 0| 3|Palsson, Master. ...| male| 2.0| 3| 1| 349909| 21.075| null| S| | 9| 1| 3|Johnson, Mrs. Osc...|female|27.0| 0| 2| 347742|11.1333| null| S| | ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-5
16.7| G6| S| | 12| 1| 1|Bonnell, Miss. El...|female|58.0| 0| 0| 113783| 26.55| C103| S| | 13| 0| 3|Saundercock, Mr. ...| male|20.0| 0| 0| A/5. 2151| 8.05| null| S| | 14| 0| 3|Andersson, Mr. An...| male|39....
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-6
16| 1| 2|Hewlett, Mrs. (Ma...|female|55.0| 0| 0| 248706| 16.0| null| S| | 17| 0| 3|Rice, Master. Eugene| male| 2.0| 4| 1| 382652| 29.125| null| Q| | 18| 1| 2|Williams, Mr. Cha...| male|null| 0| 0| 244373| ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-7
0| 0| 2649| 7.225| null| C| +-----------+--------+------+--------------------+------+----+-----+-----+----------------+-------+-----+--------+ only showing top 20 rows agent = create_spark_dataframe_agent(llm=OpenAI(temperature=0), df=df, verbose=True)agent.run("how many rows are there?") ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-8
> Entering new AgentExecutor chain... Thought: I need to get the average age first Action: python_repl_ast Action Input: df.agg({"Age": "mean"}).collect()[0][0] Observation: 29.69911764705882 Thought: I now have the average age, I need to get the square root Action: python_repl_ast Action Input: ma...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-9
Spark session on the client where our application runs. Before we can do that, we need# to make sure to stop the existing regular Spark session because it cannot coexist with the remote# Spark Connect session we are about to create.SparkSession.builder.master("local[*]").getOrCreate().stop() 23/05/08 10:06:09 WARN U...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-10
S| | 2| 1| 1|Cumings, Mrs. Joh...|female|38.0| 1| 0| PC 17599|71.2833| C85| C| | 3| 1| 3|Heikkinen, Miss. ...|female|26.0| 0| 0|STON/O2. 3101282| 7.925| null| S| | 4| 1| 1|Futrelle, Mrs. Ja...|female|35.0| 1| 0| ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-11
0| 3| Moran, Mr. James| male|null| 0| 0| 330877| 8.4583| null| Q| | 7| 0| 1|McCarthy, Mr. Tim...| male|54.0| 0| 0| 17463|51.8625| E46| S| | 8| 0| 3|Palsson, Master. ...| male| 2.0| 3| 1| 349909| 21.075| null...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-12
1| 0| 237736|30.0708| null| C| | 11| 1| 3|Sandstrom, Miss. ...|female| 4.0| 1| 1| PP 9549| 16.7| G6| S| | 12| 1| 1|Bonnell, Miss. El...|female|58.0| 0| 0| 113783| 26.55| C103| S| | 13| 0| 3|Sau...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-13
null| S| | 15| 0| 3|Vestrom, Miss. Hu...|female|14.0| 0| 0| 350406| 7.8542| null| S| | 16| 1| 2|Hewlett, Mrs. (Ma...|female|55.0| 0| 0| 248706| 16.0| null| S| | 17| 0| 3|Rice, Master. Eugene| male| 2.0| ...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-14
3|Vander Planke, Mr...|female|31.0| 1| 0| 345763| 18.0| null| S| | 20| 1| 3|Masselmani, Mrs. ...|female|null| 0| 0| 2649| 7.225| null| C| +-----------+--------+------+--------------------+------+----+-----+-----+----------------+-------+-----+------...
https://python.langchain.com/docs/integrations/toolkits/spark
8310ca4ca42c-15
Miss. Anna', Sex='female', Age=35.0, SibSp=0, Parch=0, Ticket='PC 17755', Fare=512.3292, Cabin=None, Embarked='C') Thought: I now know the name of the person who bought the most expensive ticket Final Answer: Miss. Anna Ward > Finished chain. 'Miss. Anna Ward'spark.stop()PreviousPython AgentNextSpark SQ...
https://python.langchain.com/docs/integrations/toolkits/spark
c0a387cbb7ac-0
Spark SQL Agent | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-2
use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). 23/05/18 16:03:10 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable +-----------+--------+------+--------------------+------+----+-----+-----+----------------+-------+---...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-3
Miss. ...|female|26.0| 0| 0|STON/O2. 3101282| 7.925| null| S| | 4| 1| 1|Futrelle, Mrs. Ja...|female|35.0| 1| 0| 113803| 53.1| C123| S| | 5| 0| 3|Allen, Mr. Willia...| male|35.0| 0| 0| 373450| 8.05| null| S| | ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-4
17463|51.8625| E46| S| | 8| 0| 3|Palsson, Master. ...| male| 2.0| 3| 1| 349909| 21.075| null| S| | 9| 1| 3|Johnson, Mrs. Osc...|female|27.0| 0| 2| 347742|11.1333| null| S| | 10| 1| 2|Nasser, Mrs. Nich...|f...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-5
12| 1| 1|Bonnell, Miss. El...|female|58.0| 0| 0| 113783| 26.55| C103| S| | 13| 0| 3|Saundercock, Mr. ...| male|20.0| 0| 0| A/5. 2151| 8.05| null| S| | 14| 0| 3|Andersson, Mr. An...| male|39.0| 1| 5| 347082| 31...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-6
(Ma...|female|55.0| 0| 0| 248706| 16.0| null| S| | 17| 0| 3|Rice, Master. Eugene| male| 2.0| 4| 1| 382652| 29.125| null| Q| | 18| 1| 2|Williams, Mr. Cha...| male|null| 0| 0| 244373| 13.0| null| S| | ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-7
7.225| null| C| +-----------+--------+------+--------------------+------+----+-----+-----+----------------+-------+-----+--------+ only showing top 20 rows # Note, you can also connect to Spark via Spark connect. For example:# db = SparkSQL.from_uri("sc://localhost:15002", schema=schema)spark_sql = Spark...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-8
3 rows from titanic table: PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked 1 0 3 Braund, Mr. Owen Harris male 22.0 1 0 A/5 21171 7.25 None S 2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Thayer) female 38.0 1 0 PC 17599 ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-9
male, Age: 22.0, SibSp: 1, Parch: 0, Ticket: A/5 21171, Fare: 7.25, Cabin: None, Embarked: S 2. PassengerId: 2, Survived: 1, Pclass: 1, Name: Cumings, Mrs. John Bradley (Florence Briggs Thayer), Sex: female, Age: 38.0, SibSp: 1, Parch: 0, Ticket: PC 17599, Fare: 71.2833, Cabin: C85, Embarked: C 3. PassengerId: 3,...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-10
Cabin: None, Embarked: S\n2. PassengerId: 2, Survived: 1, Pclass: 1, Name: Cumings, Mrs. John Bradley (Florence Briggs Thayer), Sex: female, Age: 38.0, SibSp: 1, Parch: 0, Ticket: PC 17599, Fare: 71.2833, Cabin: C85, Embarked: C\n3. PassengerId: 3, Survived: 1, Pclass: 3, Name: Heikkinen, Miss. Laina, Sex: female, Age:...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-11
DOUBLE, Cabin STRING, Embarked STRING) ; /* 3 rows from titanic table: PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked 1 0 3 Braund, Mr. Owen Harris male 22.0 1 0 A/5 21171 7.25 None S 2 1 1 Cumings, Mrs. John...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-12
titanic Thought:The query is correct, so I can execute it to find the square root of the average age. Action: query_sql_db Action Input: SELECT SQRT(AVG(Age)) as square_root_of_avg_age FROM titanic Observation: [('5.449689683556195',)] Thought:I now know the final answer Final Answer: The square root ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-13
Sex Age SibSp Parch Ticket Fare Cabin Embarked 1 0 3 Braund, Mr. Owen Harris male 22.0 1 0 A/5 21171 7.25 None S 2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Thayer) female 38.0 1 0 PC 17599 71.2833 C85 C 3 1 3 Heikkinen, Miss. Laina female 26.0 ...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
c0a387cbb7ac-14
Algernon Henry Wilson', '80.0')] Thought:I now know the final answer. Final Answer: The oldest survived passenger is Barkworth, Mr. Algernon Henry Wilson, who was 80 years old. > Finished chain. 'The oldest survived passenger is Barkworth, Mr. Algernon Henry Wilson, who was 80 years old.'PreviousSpark D...
https://python.langchain.com/docs/integrations/toolkits/spark_sql
f4b7f78d0116-0
Natural Language APIs | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-2
"https://api.speak.com/openapi.yaml")klarna_toolkit = NLAToolkit.from_llm_and_url( llm, "https://www.klarna.com/us/shopping/public/openai/v0/api-docs/") Attempting to load an OpenAPI 3.0.1 spec. This may result in degraded performance. Convert your OpenAPI spec to 3.1.* spec for better support. Attempting to ...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-3
= initialize_agent( natural_language_tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, agent_kwargs={"format_instructions": openapi_format_instructions},)mrkl.run( "I have an end of year party for my Italian class and have to buy some Italian clothes for it") > Entering...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-4
endpoints may require user authentication via things like access tokens. Here we show how to pass in the authentication information via the Requests wrapper object.Since each NLATool exposes a concisee natural language interface to its wrapped API, the top level conversational agent has an easier job incorporating each...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-5
for parameter Accept. Valid values are ['path', 'query'] Ignoring optional parameter Unsupported APIPropertyLocation "header" for parameter Content-Type. Valid values are ['path', 'query'] Ignoring optional parameter Unsupported APIPropertyLocation "header" for parameter Accept. Valid values are ['path', 'query']...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-6
spoonacular_toolkit.get_tools()[:30])print(f"{len(natural_language_api_tools)} tools loaded.") 34 tools loaded.# Create an agent with the new toolsmrkl = initialize_agent( natural_language_api_tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True, agent_kwargs={"format_instructions": o...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-7
Miami Cuban Link Chain Necklace - Gold, Italian Gold Miami Cuban Link Chain Necklace - Gold, Italian Gold Herringbone Necklace - Gold, Italian Gold Claddagh Ring - Gold, Italian Gold Herringbone Chain Necklace - Gold, Garmin QuickFit 22mm Italian Vacchetta Leather Band, Macy's Italian Horn Charm - Gold, Dolce & Gabbana...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
f4b7f78d0116-8
"Tell the LangChain audience to 'enjoy the meal' in Italian, please!") "In Italian, you can say 'Buon appetito' to someone to wish them to enjoy their meal. This phrase is commonly used in Italy when someone is about to eat, often at the beginning of a meal. It's similar to saying 'Bon appétit' in French or 'Guten ...
https://python.langchain.com/docs/integrations/toolkits/openapi_nla
a1f8f1847f4b-0
Jira | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/jira
a1f8f1847f4b-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/jira
a1f8f1847f4b-2
JIRA_API_TOKEN JIRA_USERNAME JIRA_INSTANCE_URL%pip install atlassian-python-apiimport osfrom langchain.agents import AgentTypefrom langchain.agents import initialize_agentfrom langchain.agents.agent_toolkits.jira.toolkit import JiraToolkitfrom langchain.llms import OpenAIfrom langchain.utilities.jira import JiraAPIWrap...
https://python.langchain.com/docs/integrations/toolkits/jira
300f32fa972a-0
Python Agent | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-2
tool=PythonREPLTool(), verbose=True, agent_type=AgentType.OPENAI_FUNCTIONS, agent_executor_kwargs={"handle_parsing_errors": True},)Fibonacci Example​This example was created by John Wiseman.agent_executor.run("What is the 10th fibonacci number?") > Entering new chain... Invoking: `Python_R...
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-3
Define the neural network\nclass SingleNeuron(nn.Module):\n def __init__(self):\n super(SingleNeuron, self).__init__()\n self.linear = nn.Linear(1, 1)\n \n def forward(self, x):\n return self.linear(x)\n\n# Create the synthetic data\nx_train = torch.tensor([[1.0], [2.0], [3.0], [4.0]],...
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-4
dtype=torch.float32)\ny_pred = model(x_test)\ny_pred.item()'} because the `arguments` is not valid JSON.Invalid or incomplete response Invoking: `Python_REPL` with `import torch import torch.nn as nn import torch.optim as optim # Define the neural network class SingleNeuron(nn.Module): def __i...
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-5
# Compute loss loss = criterion(y_pred, y_train) # Backward pass and optimization optimizer.zero_grad() loss.backward() optimizer.step() # Print the loss every 100 epochs if epoch % 100 == 0: print(f"Epoch {epoch}: Loss = {loss.item()}") ...
https://python.langchain.com/docs/integrations/toolkits/python
300f32fa972a-6
0.00017328384274151176 Invoking: `Python_REPL` with `x_test.item()` The prediction for x = 5 is 10.000173568725586. > Finished chain. 'The prediction for x = 5 is 10.000173568725586.'PreviousPowerBI Dataset AgentNextSpark Dataframe AgentUsing ZERO_SHOT_REACT_DESCRIPTIONUsing OpenAI Functions...
https://python.langchain.com/docs/integrations/toolkits/python
7dee5fea66db-0
Multion Toolkit | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/multion
7dee5fea66db-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/multion
eb7b2074c7cf-0
Vectorstore Agent | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-2
= Chroma.from_documents(ruff_texts, embeddings, collection_name="ruff") Running Chroma using direct local API. Using DuckDB in-memory for database. Data will be transient.Initialize Toolkit and Agent​First, we'll create an agent with a single vectorstore.from langchain.agents.agent_toolkits import ( create_v...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-3
one of the nation's top legal minds and that she will continue Justice Breyer's legacy of excellence."agent_executor.run( "What did biden say about ketanji brown jackson in the state of the union address? List the source.") > Entering new AgentExecutor chain... I need to use the state_of_union_address...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-4
langchain.agents.agent_toolkits import ( create_vectorstore_router_agent, VectorStoreRouterToolkit, VectorStoreInfo,)ruff_vectorstore_info = VectorStoreInfo( name="ruff", description="Information about the Ruff python linting library", vectorstore=ruff_store,)router_toolkit = VectorStoreRouterToolkit(...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-5
> Entering new AgentExecutor chain... I need to find out what tool ruff uses to run over Jupyter Notebooks Action: ruff Action Input: What tool does ruff use to run over Jupyter Notebooks? Observation: Ruff is integrated into nbQA, a tool for running linters and code formatters over Jupyter Notebooks. Aft...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
eb7b2074c7cf-6
a tool for running linters and code formatters over Jupyter Notebooks. After installing ruff and nbqa, you can run Ruff over a notebook like so: > nbqa ruff Untitled.html Thought: I need to find out if the president mentioned nbQA in the state of the union. Action: state_of_union_address Action Input: Did the ...
https://python.langchain.com/docs/integrations/toolkits/vectorstore
0ad455347823-0
Gmail Toolkit | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/gmail
0ad455347823-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/gmail
0ad455347823-2
you can manually build a googleapi resource for more auth control. from langchain.tools.gmail.utils import build_resource_service, get_gmail_credentials# Can review scopes here https://developers.google.com/gmail/api/auth/scopes# For instance, readonly scope is 'https://www.googleapis.com/auth/gmail.readonly'credential...
https://python.langchain.com/docs/integrations/toolkits/gmail
0ad455347823-3
object at 0x10e5c6d10>), GmailGetMessage(name='get_gmail_message', description='Use this tool to fetch an email by message ID. Returns the thread ID, snipet, body, subject, and sender.', args_schema=<class 'langchain.tools.gmail.get_message.SearchArgsSchema'>, return_direct=False, verbose=False, callbacks=None, cal...
https://python.langchain.com/docs/integrations/toolkits/gmail
0ad455347823-4
{"detail":"Not Found"} 'I have created a draft email for you to edit. The draft Id is r5681294731961864018.'agent.run("Could you search in my drafts for the latest email?") WARNING:root:Failed to load default session, using empty session: 0 WARNING:root:Failed to persist run: {"detail":"Not Found"} "The lat...
https://python.langchain.com/docs/integrations/toolkits/gmail
359f73b13b58-0
Azure Cognitive Services Toolkit | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/azure_cognitive_services
359f73b13b58-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/azure_cognitive_services
359f73b13b58-2
> /dev/null# For Windows/Linux# !pip install --upgrade azure-ai-vision > /dev/nullimport osos.environ["OPENAI_API_KEY"] = "sk-"os.environ["AZURE_COGS_KEY"] = ""os.environ["AZURE_COGS_ENDPOINT"] = ""os.environ["AZURE_COGS_REGION"] = ""Create the Toolkit​from langchain.agents.agent_toolkits import AzureCognitiveService...
https://python.langchain.com/docs/integrations/toolkits/azure_cognitive_services
359f73b13b58-3
} ``` Observation: Caption: a group of eggs and flour in bowls Objects: Egg, Egg, Food Tags: dairy, ingredient, indoor, thickening agent, food, mixing bowl, powder, flour, egg, bowl Thought: I can use the objects and tags to suggest recipes Action: ``` { "action": "Final Answer", ...
https://python.langchain.com/docs/integrations/toolkits/azure_cognitive_services
359f73b13b58-4
'/tmp/tmpa3uu_j6b.wav'from IPython import displayaudio = display.Audio(audio_file)display.display(audio)PreviousAmadeus ToolkitNextCSV AgentCreate the ToolkitUse within an AgentCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright © 2023 LangChain, Inc.
https://python.langchain.com/docs/integrations/toolkits/azure_cognitive_services
50237cd49062-0
Amadeus Toolkit | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/amadeus
50237cd49062-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/amadeus
50237cd49062-2
= toolkit.get_tools()Use Amadeus Toolkit within an Agent​from langchain import OpenAIfrom langchain.agents import initialize_agent, AgentTypellm = OpenAI(temperature=0)agent = initialize_agent( tools=tools, llm=llm, verbose=False, agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,)agent.run("Wha...
https://python.langchain.com/docs/integrations/toolkits/amadeus
50237cd49062-3
a concise email from Santiago to Paul, Santiago's travel agent, asking him to book the earliest flight from DFW to DCA on Aug 28, 2023. Include all flight details in the email.") 'Dear Paul,\n\nI am writing to request that you book the earliest flight from DFW to DCA on Aug 28, 2023. The flight details are as follow...
https://python.langchain.com/docs/integrations/toolkits/amadeus
322323d21da1-0
SQL Database Agent | 🦜�🔗 Langchain
https://python.langchain.com/docs/integrations/toolkits/sql_database
322323d21da1-1
Skip to main content🦜�🔗 LangChainDocsUse casesIntegrationsAPILangSmithJS/TS DocsCTRLKIntegrationsCallbacksChat modelsDocument loadersDocument transformersLLMsMemoryRetrieversText embedding modelsAgent toolkitsAmadeus ToolkitAzure Cognitive Services ToolkitCSV AgentDocument ComparisonGitHubGmail ToolkitJiraJSON ...
https://python.langchain.com/docs/integrations/toolkits/sql_database