<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic port undefined error in SQLDatabase.from_databricks (langchain.sql_database) in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/64190#M3137</link>
    <description>&lt;P&gt;The following assignment:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;langchain&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;sql_database&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; &lt;SPAN class=""&gt;SQLDatabase&lt;BR /&gt;&lt;BR /&gt;dbase = SQLDatabase.from_databricks(&lt;BR /&gt;catalog=catalog, &lt;BR /&gt;schema=db,&lt;BR /&gt;host=host, &lt;BR /&gt;api_token=token,&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;fails with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;ValueError: &lt;/SPAN&gt;invalid literal for int() with base 10: ''&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;because of&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;cls&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;_assert_port&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;port&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;in&amp;nbsp;&lt;SPAN class=""&gt;/lib/python3.10/site-packages/sqlalchemy/engine/url.py:211&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;URL.create&lt;/SPAN&gt;&lt;SPAN class=""&gt;(cls, drivername, username, password, host, port, database, query)&lt;BR /&gt;as shown in the error trace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Couldn't find any information regarding this (for instance, in the example given in:&amp;nbsp;&lt;A href="https://docs.gcp.databricks.com/en/large-language-models/langchain.html" target="_blank" rel="noopener"&gt;https://docs.gcp.databricks.com/en/large-language-models/langchain.html&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The token and host are OK. Also the catalog and schema have correct values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Using&amp;nbsp;langchain==0.1.5.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 14:15:43 GMT</pubDate>
    <dc:creator>Octavian1</dc:creator>
    <dc:date>2024-03-20T14:15:43Z</dc:date>
    <item>
      <title>port undefined error in SQLDatabase.from_databricks (langchain.sql_database)</title>
      <link>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/64190#M3137</link>
      <description>&lt;P&gt;The following assignment:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;langchain&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;sql_database&lt;/SPAN&gt; &lt;SPAN class=""&gt;import&lt;/SPAN&gt; &lt;SPAN class=""&gt;SQLDatabase&lt;BR /&gt;&lt;BR /&gt;dbase = SQLDatabase.from_databricks(&lt;BR /&gt;catalog=catalog, &lt;BR /&gt;schema=db,&lt;BR /&gt;host=host, &lt;BR /&gt;api_token=token,&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;fails with&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;ValueError: &lt;/SPAN&gt;invalid literal for int() with base 10: ''&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;because of&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;cls&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;_assert_port&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;port&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;in&amp;nbsp;&lt;SPAN class=""&gt;/lib/python3.10/site-packages/sqlalchemy/engine/url.py:211&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;URL.create&lt;/SPAN&gt;&lt;SPAN class=""&gt;(cls, drivername, username, password, host, port, database, query)&lt;BR /&gt;as shown in the error trace.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Couldn't find any information regarding this (for instance, in the example given in:&amp;nbsp;&lt;A href="https://docs.gcp.databricks.com/en/large-language-models/langchain.html" target="_blank" rel="noopener"&gt;https://docs.gcp.databricks.com/en/large-language-models/langchain.html&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;The token and host are OK. Also the catalog and schema have correct values.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Using&amp;nbsp;langchain==0.1.5.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 14:15:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/64190#M3137</guid>
      <dc:creator>Octavian1</dc:creator>
      <dc:date>2024-03-20T14:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: port undefined error in SQLDatabase.from_databricks (langchain.sql_database)</title>
      <link>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/64303#M3142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may be right regarding SQLAlchemy, the trace hints at something related:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt; /lib/python3.10/site-packages/langchain_community/utilities/sql_database.py", line 133, in from_uri &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt; """Construct a SQLAlchemy engine from URI."""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I don't get why in the&amp;nbsp;&lt;EM&gt;SQLDatabase.from_databricks&lt;/EM&gt; documentation there is no mention of any port parameter, neither in the example notebooks?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Octavian&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 15:01:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/64303#M3142</guid>
      <dc:creator>Octavian1</dc:creator>
      <dc:date>2024-03-21T15:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: port undefined error in SQLDatabase.from_databricks (langchain.sql_database)</title>
      <link>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/75271#M3378</link>
      <description>&lt;P&gt;I am also facing the same issue. not able to connect even after using sqlalchemy&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:44:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/75271#M3378</guid>
      <dc:creator>vburam</dc:creator>
      <dc:date>2024-06-21T07:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: port undefined error in SQLDatabase.from_databricks (langchain.sql_database)</title>
      <link>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/75272#M3379</link>
      <description>&lt;P&gt;SQL alchemy url:&amp;nbsp;databricks+https://&amp;lt;token&amp;gt;@abc.cloud.databricks.com:443/sql/1.0/warehouses/9265c8e0?catalog=customer&amp;amp;schema=chatbot&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 07:46:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/port-undefined-error-in-sqldatabase-from-databricks-langchain/m-p/75272#M3379</guid>
      <dc:creator>vburam</dc:creator>
      <dc:date>2024-06-21T07:46:45Z</dc:date>
    </item>
  </channel>
</rss>

