- Issue created by @marcus_johansson
- Merge request !5003511361: Open up Assistant for naive RAG and for direction agent communication. → (Open) created by vakulrai
- 🇮🇳India vakulrai
Hi @marcus_johansson , Please review the changes and guide me if any other changes needed.
Thanks !
- 🇬🇧United Kingdom chris_hall_hu_cheng
Is this issue still going to be valid after issue: https://www.drupal.org/project/ai/issues/3514985 📌 Move Assistants API to use function calling Active Move Assistants API to use function calling?
I had a quick attempt to try and work out how to get this to work but got a little lost. I attempted to alter the process function in the AiAssitantApiRunner, I managed to add the actions json into $return (matching what I saw when debugging and forcing it to do the RAG search action via the chat prompt) and it did run the code after
foreach ($return['actions'] as $action) {
BUT still didn't actually respond based on the RAG search results apart from the two times it did work for no apparent reason.. Am I missing something simple.I need to get something working for a client soon. I am thinking my best bet is to hand craft something similar to this approach https://gorannikolovski.com/blog/deep-chat-js-semantic-search-and-openai... or probably better still make my own custom copy of the AI Deepchat module and replace the AiAssitantApiRunner calls with my own service that makes lower level calls similar to the ones used in the debug admin section the AI module suite provides.
- 🇩🇪Germany marcus_johansson
@chris_hall_hu_cheng - its only valid if we want to backport for 1.0.x branches. For 1.1.x we would recommend anyone to use agents. See the video here (you can skip to the RAG segment) https://www.youtube.com/watch?v=YHvwYM4IL90&ab_channel=DrupalAIVideos.
You should be able to test this today already.