Boost search results with ai vector results

Created on 7 August 2025, 28 days ago

I have an e-commerce b2b with Drupal 10 and use search api to get results for products when a user try to find something. My thought is if I can use ai search to boost / extent the capability of my server index. I have see the boost option at processors configuration. Until today I have not get it to work. I have already install and test Milvus/Zilliz with OpenAI and get some results from ai explorer as debugging process.

But I’m wondering if these results can extent the results in my view results page. As I use a view to present results of my searches, I need to extent it with ai search results. But is it possible or ai results will added as only titles with link etc. I have a grid page result. How to boost it with ai results? Is it possible this?

Additionally I have see so many search ai bar services like algolia/findbar etc but I prefer to extent core search of Drupal and not use external scripts. Is it possible?

✨ Feature request
Status

Active

Version

1.1

Component

AI Search

Created by

πŸ‡¬πŸ‡·Greece tarasiadis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tarasiadis
  • πŸ‡¬πŸ‡·Greece tarasiadis

    To explain my setup better. I have a pinecone setup and when I try to search a keyword "γΡνΡθλια" Vector DB Explorer ρΡτθρν σοme results as you can see. But on my search result of drupal api not included. Any help on this? Have I setup something wrong?

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Hi! Might be the 0,2 instead of 0.2 for relevance threshold

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Otherwise can you confirm main View for search is Search API Database? For SOLR there is πŸ“Œ Check that SOLR 'boost' of results finds results that are not found by traditional SOLR search Active open which means SOLR for now only boosts results that are also found by main View whereas database version also finds results that are not otherwise found by the database search alone

  • πŸ‡¬πŸ‡·Greece tarasiadis

    Thanks for reply. I have change to 0.2 but still no results. My view is search api. A block for search and a view results for presentation.

    Check at https://viosarp.gr/el/search?search_api_fulltext=%CE%93%CE%B5%CE%BD%CE%A...

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    From 1:06 in the video here I do a walk through of setup https://www.drupal.org/project/ai/issues/3478581 🌱 #2 Drupal AI Online Meetup Active
    At 1:40 I get into combining search api database and ai search

    Hope that helps!

  • πŸ‡¬πŸ‡·Greece tarasiadis

    Thanks for your reply.
    I have follow your instruction and I have create a new view that return results from AI search index of my pinecone.

    My question is how to edit my existing view of search results to include (prepend) results from ai index. I have already enable "Boost Database by AI Search" at processors of my standard index. But no results. If any documentation how to activate AI boost search will be helpful.

  • πŸ‡¬πŸ‡·Greece tarasiadis

    I try to find a solution viewing your youtube video.

    My question is: the view must be the index of pinecone or can be the index of normal search api and at this to add boost search api? Check image to explain it better.

  • πŸ‡¬πŸ‡·Greece tarasiadis

    For #3 I have try to change to 0.2 from 0,2 but with no success. Despite I write 0.2 it saves 0,2. Check image screenshot.

  • πŸ‡¬πŸ‡·Greece tarasiadis

    One more question as I try to find what I do wrong.

    When I do the search API index, at Vector Database indexing options, can I use only type of "Rendered HTMNL output" when I add fields?
    Can I boost my search index with ai boost if the structure of entities results are different?

  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Sorry not very around at the moment but maybe first step is enabled ai api Explorer to make sure you're getting results in the vector database test section there.

    Not necessary to have the indexed fields match at all, essentially the boost:

    1) programmatically runs the free text search against the vector database to fetch entity IDs only

    2) the does something like this pseudo query into database:
    "WHERE
    (keywords LIKE" %normal database search%" OR item id IN (IDs retrieved from vector database)
    AND (other filters & exposed filters
    ORDER BY
    Vector database retrieved item IDs DESC,
    Relevance from database search DESC,
    Any other orders you have applied DESC
    "

    You can e.g. in the boost plugin code add a dvm to check item IDs are found in (1) and that should be exactly what the AI API Explorer submodule shows to make sure that part is working okay

    Hope that helps keep you going on debugging

Production build 0.71.5 2024