Visualising AI Embeddings in APEX
" To deal with hyper-planes in a 14-dimensional space, visualize a 3-D space and say 'fourteen' to yourself very loudly. Everyone does it." - Geoffrey Hinton , 2018 Turing Award winner. Within the wonderful world of Generative AI , one concept that is all the rage is RAG, or Retrieval Augmented Generation , which is an AI framework that combines the strengths of traditional information retrieval systems (such as databases) with the capabilities of generative large language models (LLM s) . RAG's goal is to improve the accuracy, relevance, and timeliness of information generation - such as documents, text and images - by optimizing LLM output. When creating a RAG system, it’s essential to store information in a format that a LLM can retrieve. This is where data is converted into embeddings through a pro...
Comments
Nice one, looks great!! I'm really pleased you could make use of it and thanks for the comments, much appreciated!!
I hope you don't mind, but I took a look what you've done and have a couple of ideas / suggestions...
1. For the bug with the drag and drop failing after the slider action has fired, try switching the 'Event > Bind type' of the draggable dynamic action to 'live'. This should fix your issue. Problem is the dynamic action firing when the slider changes does a PPR refresh on your report, and the draggable event handler bound to those report elements is lost.
2. For what happens after the drop, you are using the 'JavaScript Code' action to fire a custom piece of JavaScript that handles the Ajax and returns the product count. Try switching this to use the built in 'Set Value (PL/SQL Function)' type dynamic action, where you call a function that does the same job as your application process and just returns the product count. You would just have to add the 'PRODUCT_ID' page item as a 'Page Item to Submit' in that action, and also specify the 'P1_BASKET_TOTAL' as the affected element.
Also, I wonder if you thought the whole 'wwvFlowForm / always / load' business on the 'When' selector of the drag and drop dynamic actions is a bit weird. Well, it's not currently as easy as it should be to define actions that just do initialisation on page load like the drag and drop do here. But this will be easier in the next refresh of the EA instance (hopefully), whereby you can just select 'Page Load' as the event and that's it, no other arbitrary elements to define in the 'When' like we have to currently.
Nicely done again and be interested to know how you get on.
Anthony.
I very much appreciate the detailed feedback.
I tried the solution in point 1 and it doesn't seem to make any difference. I wonder if this is due to the Products being a report on a separate page (as per Munkys solution: http://munkyben.wordpress.com/2009/05/10/flexible-ajax-calls-1/). I forget why I did it this way now rather than just a PPR!
I will also try your change detailed in point 2.
As for the 'When' selector and the wwwFlowForm in the DOM object, I did find it a little strange but then plugins are new territory so it all feels a little strange at the moment!
Thanks again.
Paul.