- Issue created by @mindaugasd
- 🇩🇪Germany marcus_johansson
Currently you would need to scrape an internal url, you can see that in the Podcast video.
But fairly soon there will be an ingestet that is a rendered entity (choice of view mode) or a rendered View that can take arguments (like nid). The later should solve the issue as long as it fits in the LLMs token limit.
- 🇱🇹Lithuania mindaugasd
"Rendered view mode" almost sounds good, but maybe that does not include comments.
"Rendered view" feature will be included in https://www.drupal.org/project/aiprompt → soon as well, same as with "rendered view mode".
aiprompt implementation works like this:
$entity = \Drupal::entityTypeManager()->getStorage($storage_name)->load('[enter_prompt_id]'); $string = $entity->toString();
https://git.drupalcode.org/project/aiprompt/-/blob/1.0.x/README.md?ref_t...
Ir probably makes sense for you to skip aiprompt, and load views directly.
(In our case, we would also use your views render implementation directly for this task)But it will probably make sense to implement aiprompt loading at some point similar like with views too, as aiprompt grows.
- 🇱🇹Lithuania mindaugasd
That toString() is not very clean at the moment, but at the moment I am working on this issue 🐛 Sanitize strings properly Active and will fix
- 🇱🇹Lithuania mindaugasd
Or maybe you could implement referenced entity render only, and leave everything else to aiprompt to gather all kinds of context? :-)
- 🇱🇹Lithuania mindaugasd
Except aiprompt does not have view modes at all, so not renderable.
- 🇩🇪Germany marcus_johansson
For reference: https://www.drupal.org/project/ai_interpolator/issues/3446245 📌 Add inputter plugins Active
It would be very easy to add an "AiPrompt input mode" when the above ticket is done. So, if it does something the other inputs doesn't, it would be very useful.
- 🇱🇹Lithuania mindaugasd
if it does something the other inputs doesn't, it would be very useful.
If new module 📌 Add inputter plugins Active will do everything AIPrompt does and continue to copy new features in the future, then it won't be very useful.