<?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: Issues running Chroma function from Dolly Demo in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/43333#M2144</link>
    <description>&lt;P&gt;As written in the command output when pip installing the python packages, you should then run a `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.library.restartPython()&lt;/SPAN&gt;`.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please try the following commands:&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;%pip install -U transformers langchain chromadb accelerate bitsandbytes&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;SPAN&gt;dbutils.library.restartPython()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Sep 2023 06:45:15 GMT</pubDate>
    <dc:creator>ClementBM</dc:creator>
    <dc:date>2023-09-04T06:45:15Z</dc:date>
    <item>
      <title>Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5167#M240</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working through the Dolly demo that was released a few days ago. There are a few lines of code that I have had to alter in order to make it work in my environment. However, I've been trying to run similarity_search() on the generated Chroma database and can't work through an issue. I am triggering an error for an object name that I don't assign, but which the function seems to call. Please see the image below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/277iB83EF586B4319B5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 19:36:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5167#M240</guid>
      <dc:creator>David_K93</dc:creator>
      <dc:date>2023-04-26T19:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5168#M241</link>
      <description>&lt;P&gt;@David Kersey​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the one line of code provided, it feels like chromadb is not installed. There is a cell in the demo which will install it:%pip install -U transformers langchain chromadb accelerate bitsandbytes&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%pip install -U transformers langchain chromadb accelerate bitsandbytes&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If its still not due to this, then we’ll need you to provide more information.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 05:22:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5168#M241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-27T05:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5169#M242</link>
      <description>&lt;P&gt;I apologize, it is my first time posting. Please allow me to provide more information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able to successfully create a Chroma DB following the demo. No issues with the installation you suggested above. I am also able to successfully load the DB as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/275i632A985C46B0D188/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue happens when I try to call a LangChain function like "similarity_search()". I get an error telling me the object name "chromadb" is not defined. There isn't an object named that in the code. I checked the source code and don't see an object by the name of 'chromadb' so I'm not sure why I am getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/270i1A77A8508E3F17CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;similarity_search() source code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/281i4A3596D200B960F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:02:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5169#M242</guid>
      <dc:creator>David_K93</dc:creator>
      <dc:date>2023-04-27T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5170#M243</link>
      <description>&lt;P&gt;got the same problem&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/279i50ABE3C90A633C17/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 12:38:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/5170#M243</guid>
      <dc:creator>Axel_Schwanke</dc:creator>
      <dc:date>2023-04-28T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/43333#M2144</link>
      <description>&lt;P&gt;As written in the command output when pip installing the python packages, you should then run a `&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.library.restartPython()&lt;/SPAN&gt;`.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please try the following commands:&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;PRE&gt;%pip install -U transformers langchain chromadb accelerate bitsandbytes&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;SPAN&gt;dbutils.library.restartPython()&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Sep 2023 06:45:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/43333#M2144</guid>
      <dc:creator>ClementBM</dc:creator>
      <dc:date>2023-09-04T06:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issues running Chroma function from Dolly Demo</title>
      <link>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/57485#M2860</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Just had a similar issue, as a workaround I have added chromadb as a cluster library to be installed automatically every time the cluster is restarted.&lt;/P&gt;&lt;P&gt;Then it worked well.&lt;/P&gt;&lt;P&gt;You can do the same plus adding the other libraries to make sure all the required libraries are there when they are imported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khaled Kabbach&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 15:50:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/issues-running-chroma-function-from-dolly-demo/m-p/57485#M2860</guid>
      <dc:creator>Kabbach</dc:creator>
      <dc:date>2024-01-16T15:50:29Z</dc:date>
    </item>
  </channel>
</rss>

