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

Merge Requests

More

Recent comments

🇪🇸Spain gxleano Cáceres

Hey @herved

The jQuery dependency here is quite minimal, but we'd need to refactor the once() usage and update all the jQuery calls.

So, if you have the time, feel free to try it :)

🇪🇸Spain gxleano Cáceres

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

🇪🇸Spain gxleano Cáceres

Thank you @saidatom @dieterholvoet @alorenc for you contribution!

It will be added to the next release 1.2.42

🇪🇸Spain gxleano Cáceres

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

🇪🇸Spain gxleano Cáceres

Thanks @herved and @pcambra,

It will be included in next release 1.2.42

🇪🇸Spain gxleano Cáceres

Testing on AI and AI Agents 1.1.x with Drupal 10.5.2 the changes make it works.

Setup to be reproduce it

- Drupal 10.5.2
- AI 1.1.x (AI Assistant API, AI Search and AI Chatbot)
- AI Agents 1.1.x
- Action (Core module, so it just needs to be enabled)
- Key latest_version
- Search API latest_version
- Ollama Provider (ddev addon) latest_version
- Milvus VDB Provider (ddev addon) latest_version

After applying the MR into AI module the error from the next pages is gone:

/admin/config/ai/explorers/tools_explorer
/admin/config/ai/explorers/chat_generator
/admin/structure/ai_agent/add

Moving the issue to RTBC, thanks everyone involved.

🇪🇸Spain gxleano Cáceres

Tested with https://www.drupal.org/project/ai/issues/3543112 📌 Make model id required on the OpenAiBasedProviderClientBase Active applied to AI module and everything works as expected.

The code also look good to me Marcus.

Thanks!

🇪🇸Spain gxleano Cáceres

Remember that you would need to run drush updb command once you get the MR before testing the functionality.

🇪🇸Spain gxleano Cáceres

Regarding #35 📌 Improve AI Search Module Indexing to Handle Long-Running Chunk Embedding Processes Needs work I would try move forward a working version like it is right now, then open a follow up ticket to improve how the progress bar should looks like.

I am with you that your approach would be more descriptive for the end user, but we would need to expend some time to make this works.

And when everything is working and validated, we could also go with #33

What do you think?

🇪🇸Spain gxleano Cáceres

I've just did a push with the fix for #36, thank you very much Scott to point this out.

🇪🇸Spain gxleano Cáceres

Tested and everything works as expected.

See: https://www.drupal.org/project/ai/issues/3541470#comment-16239682 📌 Remove canChatStream Active

🇪🇸Spain gxleano Cáceres

Tested and everything works as expected.

See: https://www.drupal.org/project/ai/issues/3541470#comment-16239682 📌 Remove canChatStream Active

🇪🇸Spain gxleano Cáceres

Tested and everything works as expected.

See: https://www.drupal.org/project/ai/issues/3541470#comment-16239682 📌 Remove canChatStream Active

🇪🇸Spain gxleano Cáceres

Tested with:

- https://www.drupal.org/project/ai/issues/3541471 📌 Add finished reason to stream iterator Active
- https://www.drupal.org/project/ai/issues/3541472 🐛 Return streamed message and set tokens on normal message on the OpenAiBasedProviderClientBase Active
- https://www.drupal.org/project/ai/issues/3541473 📌 Add token usage to OpenAiProviderClientBase Active

And everything works as expected.

Steps followed

1. Create a test branch from ai module including mentioned MRs
2. Install AI API Explorer module
3. Go to Chat Generation Explorer
4. Test the output using Streamed option

Evidences

Output



Logging


🇪🇸Spain gxleano Cáceres

Thank you very much Dieter and Christian for your effort here.

It will be included in the next release 1.2.42

🇪🇸Spain gxleano Cáceres

Thanks to report this issue @damienmckenna

I've been testing it with next configuration:

Drupal 11.2.2
AI Core 1.1.x
AI Search 1.1.x
AI Assistant Api 1.1.x
AI Agents 1.1.x
Huggingface Provider 1.0.x
Sqlite Provider 1.0.x
Search API 1.38

From Huggingface provider I have used the next models:
Chat -> Meta Llama-3-8B
Embeddings -> MxBai Embed Large v1

And I have needed to apply the next patch in Search API in order to can create the view:
https://www.drupal.org/project/search_api/issues/3531256 🐛 Cannot create Search API based views On Drupal 11 Active

I was NOT able to reproduce the error that you are describing. Maybe the problem could be the fields that you are using in Search API Index, and the filter criteria added to the view.

I am using the next fields in Search API Index:
- rendered_item with type fulltext and main content as indexing option
- url with type string and Contextual content as indexing option
- title with type fulltext and contextual content as indexing option

Then in the view I am adding Fulltext search as filter criteria, then when I perform a search query everything works as expected.

Moving this issue to Postponed until we get more info about the issue in your side.

🇪🇸Spain gxleano Cáceres

gxleano changed the visibility of the branch 3487487-improve-ai-search-table to hidden.

🇪🇸Spain gxleano Cáceres

gxleano changed the visibility of the branch 3487487-improve-ai-search-table to hidden.

🇪🇸Spain gxleano Cáceres

Thanks Scott to take a look on this!

Regarding #27 📌 Improve AI Search Module Indexing to Handle Long-Running Chunk Embedding Processes Needs work , we're currently displaying the item being indexed and the chunks being processed from that item. We're also showing the progress percentage for both. From my perspective, this provides clear and continuous feedback to the user about where we are in the process, which I believe is quite helpful.

Do you have any specific suggestions for improvement?

🇪🇸Spain gxleano Cáceres

Thinking twice, the Tagify Select widget is also able to drag and sort the tags when the field is unlimited, so this information should be there to let the user knows about this functionality.

I will try to think in a better way to can just get rid of this if you don't want it there, but from now I will keep it.

🇪🇸Spain gxleano Cáceres

Thanks @harlor for the fix.

It will be included in release 1.2.41

🇪🇸Spain gxleano Cáceres

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

🇪🇸Spain gxleano Cáceres

Thanks to open this discussion @yaqbick

You're absolutely right, the description shouldn't appear in the Tagify Select widget.

However, it's intentionally included in the Tagify widget to inform users that they can drag and sort the element. This is important for UX purposes.

🇪🇸Spain gxleano Cáceres

Thanks @chr.fritsch for the contribution.

It would be added into the next release 1.2.41

🇪🇸Spain gxleano Cáceres

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

🇪🇸Spain gxleano Cáceres

Thanks @volkerk for the contribution!

It will be added to release 1.2.41

🇪🇸Spain gxleano Cáceres

Thanks for review Artem!

As far as I was able to see, the chat() method in this case could just be taken from base class, I do not see any specific logic in the OpenAI provider.

What do you think Marcus?

🇪🇸Spain gxleano Cáceres

Thanks Artem to take a look on this!

If it doesn't have specific logic, them I would say that we can just remove it and take the logic form base class.

🇪🇸Spain gxleano Cáceres

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

🇪🇸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 .

Production build 0.71.5 2024