Issue embedding the content

Created on 17 October 2024, 6 months ago

im trying to embed a content type i but i am getting Error "while trying to render item entity:node/10:en with view mode default for search index indexRecipes: Call to a member function getDimension() on null in Drupal\search_api_ai\Plugin\search_api\data_type\Embeddings->getValue() (line 61 of /code/web/modules/contrib/search_api_ai/src/Plugin/search_api/data_type/Embeddings.php)."

Im am using OpenAI, i tried (Text-embedding-ada-002 and text-embedding-3-large. im using zilliz database and i can see the index on zilliz once i create it on drupal.

When i try to check the Search API AI Search i get an error page "Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "plugin.manager.vector_client". Did you mean one of these: "plugin.manager.menu.link", "plugin.manager.action", "plugin.manager.condition", "plugin.manager.help_section", "plugin.manager.views.argument"? in Drupal\Component\DependencyInjection\Container->get() (line 159 of core/lib/Drupal/Component/DependencyInjection/Container.php).
Drupal\search_api_ai_explorer\Form\SearchForm::create(Object) (Line: 41)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\search_api_ai_explorer\Form\SearchForm') (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, 'Drupal\search_api_ai_explorer\Form\SearchForm') (Line: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)" im not sure

πŸ’¬ Support request
Status

Active

Version

1.0

Component

AI Search

Created by

πŸ‡ΊπŸ‡ΈUnited States fessouma

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

Comments & Activities

  • Issue created by @fessouma
  • πŸ‡¬πŸ‡§United Kingdom scott_euser

    Hi @fessouma,

    From the error message it seems like you are using search_api_ai. The ai_search module within this module supercedes that, so would suggest uninstalling that. I gave a talk last night with a demo/walkthrough that will be posted here probably later today: 🌱 #2 Drupal AI Online Meetup Active - I would suggest you follow that issue so you can watch the recording as it should make things more clear.

    Thanks!
    Scott

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

    Sounds like you progressed past this now based on πŸ› Ai Chatbot does not search the database Active ? Will close this one off the but do reopen if I'm wrong here of course.

Production build 0.71.5 2024