<?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: Assistance with Combined Filters in Databricks Vector Store Index in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/101906#M666</link>
    <description>&lt;P&gt;How do we do multiple filters? for example I want to filter a vector store by two columns with an AND logic.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 12:33:59 GMT</pubDate>
    <dc:creator>altaysaid</dc:creator>
    <dc:date>2024-12-12T12:33:59Z</dc:date>
    <item>
      <title>Assistance with Combined Filters in Databricks Vector Store Index</title>
      <link>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/94417#M603</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m working with the Databricks vector store index and need to apply combined filters to retrieve chunks that meet specific criteria.&lt;/P&gt;&lt;P&gt;My index contains the following columns: &lt;STRONG&gt;product_category&lt;/STRONG&gt;, &lt;STRONG&gt;product_date&lt;/STRONG&gt;, and &lt;STRONG&gt;description&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt; How can I retrieve all chunks that meet this filter criteria:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Product category is either:&lt;UL&gt;&lt;LI&gt;Category 1 with dates from 2015-2016, or&lt;/LI&gt;&lt;LI&gt;All products from Category 2?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Question 2:&lt;/STRONG&gt; How can I filter to get only those chunks where the description contains both term1 and term2?&lt;/P&gt;&lt;P&gt;I would appreciate a prompt response.&lt;/P&gt;&lt;P&gt;Helpful links: &lt;A href="https://docs.databricks.com/api/workspace/vectorsearchindexes/queryindex" target="_new" rel="noopener"&gt;&lt;SPAN&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt; API&lt;/SPAN&gt;&lt;SPAN&gt; Documentation&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 07:40:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/94417#M603</guid>
      <dc:creator>kanks987</dc:creator>
      <dc:date>2024-10-17T07:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Combined Filters in Databricks Vector Store Index</title>
      <link>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/95807#M620</link>
      <description>&lt;P&gt;You can achieve that by using metadata filtering when querying the VS index. Check this section in our VS Index documentation: &lt;A href="https://docs.databricks.com/en/generative-ai/create-query-vector-search.html#query-a-vector-search-endpoint" target="_blank"&gt;https://docs.databricks.com/en/generative-ai/create-query-vector-search.html#query-a-vector-search-endpoint&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 05:53:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/95807#M620</guid>
      <dc:creator>davidhuang</dc:creator>
      <dc:date>2024-10-24T05:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance with Combined Filters in Databricks Vector Store Index</title>
      <link>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/101906#M666</link>
      <description>&lt;P&gt;How do we do multiple filters? for example I want to filter a vector store by two columns with an AND logic.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 12:33:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/assistance-with-combined-filters-in-databricks-vector-store/m-p/101906#M666</guid>
      <dc:creator>altaysaid</dc:creator>
      <dc:date>2024-12-12T12:33:59Z</dc:date>
    </item>
  </channel>
</rss>

