Cáceres
Account created on 9 October 2018, almost 7 years ago
#

Merge Requests

More

Recent comments

🇪🇸Spain gxleano Cáceres

BTW, the latest changes look good to me @pmelab.

Just waiting until branch 1.2.x is created, then we can move it to RTBC.

🇪🇸Spain gxleano Cáceres

Yes, in order to avoid breaking changes, we should create 1.2.x branch, then just point the changes on this MR to there.

🇪🇸Spain gxleano Cáceres

This issue should be tested with MR https://www.drupal.org/project/ai/issues/3526390 Improve the AI Search recursive retrieval of a specific quantity of results Active , from where some new methods are coming.

🇪🇸Spain gxleano Cáceres

Changes include the logic to handle the limitations of recursive vector search in scenarios involving:

  • Large content split into many small chunks
  • Numerous access-controlled nodes
  • Insufficient retrieval due to 10-iteration (maxAccessRetries) cap

At the meantime, I've also added related changes in https://www.drupal.org/project/ai_vdb_provider_milvus/issues/3526393 Make use of Milvus' Grouping functionality Active .

🇪🇸Spain gxleano Cáceres

It should be tested/reviewed after changes from https://www.drupal.org/project/ai/issues/3532517 📌 Remove AiDataTypeConverterPluginManager from Base class and load via trait Active are added to 1.2.x, then we would need to update this issue with 1.2.x

🇪🇸Spain gxleano Cáceres

After adding latest change related with RagTool, everything works fine from my side.

🇪🇸Spain gxleano Cáceres

In the meantime, I'm testing the recent changes, but previous updates to RagTool are breaking my testing scenario.

Previously, everything was working fine with the default Umami version. After searching for an existing recipe, it correctly returned the expected content. However, after applying the latest changes included in version 1.2.x, RagTool can no longer return any results when performing a search. Instead, it simply reports that no matches were found.

If we test with RagTool code coming from 1.1.x, everything works as expected.

🇪🇸Spain gxleano Cáceres

It will be included in the next release 1.2.41

🇪🇸Spain gxleano Cáceres

Thanks @lazzyvn!

I've added an extra validation to avoid Undefined array key "fieldDefinition" error.

Strange that no body report this issue before...I think that maybe it is related with some specific configurations.

🇪🇸Spain gxleano Cáceres

gxleano made their first commit to this issue’s fork.

🇪🇸Spain gxleano Cáceres

Thanks @bobooon for report and fix.

The fix will be included in the next release 1.2.41

🇪🇸Spain gxleano Cáceres

Thanks @huzooka and @idimopoulos to work and review it.

The fix will be included in release 1.2.41

🇪🇸Spain gxleano Cáceres

Then let's wait until Dan review and test it.

Thanks to check it Marcus.

🇪🇸Spain gxleano Cáceres

Another addition would be to have a link at the top like "Try it", "Try Drupal AI" or something pointing to https://www.drupalforge.org/template/drupal-cms-ai-demo, where users can "easily" test the Drupal AI features.

🇪🇸Spain gxleano Cáceres

Once this issue is ready to go, we would need to also create follow up tickets on every provider in order to clean up the openai-php/client library from them.

🇪🇸Spain gxleano Cáceres

gxleano made their first commit to this issue’s fork.

🇪🇸Spain gxleano Cáceres

Thanks @svendecabooter!

The fix will be added in the next release!

🇪🇸Spain gxleano Cáceres

gxleano made their first commit to this issue’s fork.

🇪🇸Spain gxleano Cáceres

Thanks @andreasderijcke and @mrdalesmith for the effort here.

The fix will be included in the next release.

🇪🇸Spain gxleano Cáceres

Thanks @andreasderijcke and @mrdalesmith for the effort here.

The fix will be included in the next release.

🇪🇸Spain gxleano Cáceres

Thanks @jofitz @anjaliprasannan

The fix will be included in the next release.

🇪🇸Spain gxleano Cáceres

Moving this issue to fixed as it has been already released into 1.1.0-rc1

🇪🇸Spain gxleano Cáceres

Thanks @ayrmax and @scott_euser!

I've been testing the issue and it seems to be working as expected, so moving to RTBC.

🇪🇸Spain gxleano Cáceres

Or maybe we should specify that we should only update it if the default provider is not selected.

🇪🇸Spain gxleano Cáceres

Same issue than https://www.drupal.org/project/ai_provider_openai/issues/3528590#comment... 📌 Add update hook for Chat with Tools and Chat with Structured Output Active

🇪🇸Spain gxleano Cáceres
    // If its set, we just return false.
    if (!empty($default_providers[$operation_type])) {
      return FALSE;
    }

This piece of code is not doing what we are expecting, right now it is detecting $default_providers[$operation_type] as not empty even when the model_id is not selected, we should check:

    // If its set, we just return false.
    if (!empty($default_providers[$operation_type]['model_id'])) {
      return FALSE;
    }

Because the provider_id will be always there, see:

🇪🇸Spain gxleano Cáceres

After testing the changes, I’ve identified two important points:

  1. The index has become approximately twice as long compared to the previous version.
  2. The number of items indexed depends on the value set in the "batch" option. For example, if it's set to 5, indexing stops after 5 items. In my opinion, this is not an optimal solution—indexing should works as usual by default, while batching should be handled in the background without needed to re-run after each batch is finished.

See evidences:


I find the behavior of the index during the processed items progress bar quite misleading. In the default version, it’s clear when the index begins processing content, what exactly it’s processing, and when it finishes. However, in the current version, the process is more complicated and it’s harder to understand what’s actually happening.

🇪🇸Spain gxleano Cáceres

Reviewed latest changes, everything works as expected.

See evidences:

Deepchat chatbot configuration

Chatbot verbose response

🇪🇸Spain gxleano Cáceres

After following the testing steps on #6 Add Javascript orchestration for each loop in the Chatbot/Assistants API Active it is duplicating the Deepchat form creation.

Testing stack:
- Drupal 11 (latest) with Umami
- Drupal AI modules (all modules)
- OpenAI provider
- Issue branch

🇪🇸Spain gxleano Cáceres

I've been testing this issue on 1.1.x-dev and everything works fine now when Allow history option is enabled.

See evidences:

🇪🇸Spain gxleano Cáceres

The response also appears immediately in https://www.drupal.org/project/ai/issues/3526074 🐛 Deepchat response not displayed until page reload when stream option is enabled Active , the problem is that the FE doesn't show the answer until the page is reloaded

🇪🇸Spain gxleano Cáceres

I think that both issues are reporting the same problem https://www.drupal.org/project/ai/issues/3526074 🐛 Deepchat response not displayed until page reload when stream option is enabled Active , adding it as related.

🇪🇸Spain gxleano Cáceres

I believe Drupal's navigation is a special case and shouldn't be handled the same way as other components. Its structure is unique, and supporting the before/after/no text options could introduce inconsistencies.

Looking at the UI Icons Menu logic, I noticed that the icon is currently wrapped inside <span class="toolbar-button__label">, which doesn't align well with the new navigation requirements. For it to work correctly, the icon should be placed outside this <span>. The previous implementation introduced by @plopesc seems more appropriate here, as this behavior is specific to the Navigation component.

🇪🇸Spain gxleano Cáceres

Thanks @mogtofu33 for the feedback.

I've been testing the latest changes but it is breaking down the logic, we come back to the current "buggy" state.

Production build 0.71.5 2024