<?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 Re: Error - Langchain to interact with a SQL database in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/error-langchain-to-interact-with-a-sql-database/m-p/82907#M3577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/40084"&gt;@abd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you check upgrading the&amp;nbsp;&lt;SPAN&gt;SQL driver?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 22:35:30 GMT</pubDate>
    <dc:creator>KumaranT</dc:creator>
    <dc:date>2024-08-13T22:35:30Z</dc:date>
    <item>
      <title>Error - Langchain to interact with a SQL database</title>
      <link>https://community.databricks.com/t5/machine-learning/error-langchain-to-interact-with-a-sql-database/m-p/81462#M3540</link>
      <description>&lt;P&gt;I am using databricks community edition to use langchain on SQL database in databricks.&lt;/P&gt;&lt;P&gt;I am following this link:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/_extras/notebooks/source/machine-learning/large-language-models/sql-database-agent-langchain.html" target="_blank" rel="noopener"&gt;Interact with SQL database - Databricks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I am facing issue on this line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;db = SQLDatabase.from_databricks(catalog="samples", schema="nyctaxi")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;OperationalError: (databricks.sql.exc.RequestError) Error during request to server: : user not found (Background on this error at: https://sqlalche.me/e/14/e3q8)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-72a0ed73-c1dd-456a-a142-9b9ed9839d19/lib/python3.11/site-packages/sqlalchemy/engine/base.py:3371, in Engine._wrap_pool_connect(self, fn, connection) 3370 try: -&amp;gt; 3371 return fn() 3372 except dialect.dbapi.Error as e:

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-72a0ed73-c1dd-456a-a142-9b9ed9839d19/lib/python3.11/site-packages/databricks/sql/thrift_backend.py:314, in ThriftBackend._handle_request_error(self, error_info, attempt, elapsed) 309 network_request_error = RequestError( 310 user_friendly_error_message, full_error_info_context, error_info.error 311 ) 312 logger.info(network_request_error.message_with_context()) --&amp;gt; 314 raise network_request_error 316 logger.info( 317 "Retrying request after error in {} seconds: {}".format( 318 error_info.retry_delay, full_error_info_context 319 ) 320 ) 321 time.sleep(error_info.retry_delay)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:04:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-langchain-to-interact-with-a-sql-database/m-p/81462#M3540</guid>
      <dc:creator>abd</dc:creator>
      <dc:date>2024-08-01T09:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error - Langchain to interact with a SQL database</title>
      <link>https://community.databricks.com/t5/machine-learning/error-langchain-to-interact-with-a-sql-database/m-p/82907#M3577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/40084"&gt;@abd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Can you check upgrading the&amp;nbsp;&lt;SPAN&gt;SQL driver?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 22:35:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-langchain-to-interact-with-a-sql-database/m-p/82907#M3577</guid>
      <dc:creator>KumaranT</dc:creator>
      <dc:date>2024-08-13T22:35:30Z</dc:date>
    </item>
  </channel>
</rss>

