enchanted icon indicating copy to clipboard operation
enchanted copied to clipboard

Feature suggestion: Shortcuts action

Open avvocati-e-mac opened this issue 1 year ago • 6 comments

It would be useful some minimal action to intrigate with Shortcuts via the app.

avvocati-e-mac avatar Mar 02 '24 10:03 avvocati-e-mac

Can you share some example flows that you would like to use?

gluonfield avatar Mar 03 '24 01:03 gluonfield

Sure!

A minimum of context: I am an Italian lawyer passionate about computer science and Apple tools, I am not a programmer.

I've already created some shortcuts to interact with Ollama's APIs (see the image below). This allows me, for example, to send the PDF text or a web page to the LLM and get a response that then, possibly, can be further passed to another shortcuts.

If Enchanted LLM could donate some similar action to Shortcuts I would avoid the whole problem of managing APIs in Shortcuts and expand what the app can do.  If I understood correctly, it is only possible to use it for chat but not to work on documents or other sources outside the LLM.

Thank you for your availability, love your work!

Filippo

PS the image shows Shortcuts in Italian but Mistral summarized and answered in English and summarize my notes to use Ollama and Mistral via terminal. On 3 marzo 2024 a 02:17:15, Augustinas Malinauskas @.***) scritto:

Can you share some example flows that you would like to use?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

avvocati-e-mac avatar Mar 03 '24 13:03 avvocati-e-mac

Hi @avvocati-e-mac thank you so much for sharing this interesting workflow. It seems the images are missing from the message, it would be great if you can share it.

I think I get the rough idea. Few questions

  • You would like an Action which accepts text or image, processes it via Enchanted(Ollama) and returns the response back?
  • What exactly do you send to Ollama right now - text and image?
  • How do you currently process PDF?

Best

gluonfield avatar Mar 07 '24 21:03 gluonfield

Sorry @AugustDev , I replied via email 😅

Here is the image (I hope… 🤞🏻)

photo_2024-03-08 07 26 49

For your question:

  • Yes, I would like an Action which accepts text or image, processes it via Enchanted(Ollama) and returns the response back;
  • I tested only text;
  • I use the builtin action of Shortcuts to extract the text of the PDF and then pass it to the API, I didn't chunck the text;

I rapidly check and via API it's possible to send image in coded in base64 that also Shortcuts can handle link here. I'll try it as soon as I can.

Al the best and thanks for the response!

avvocati-e-mac avatar Mar 08 '24 06:03 avvocati-e-mac

Thank you for the detail explanation @avvocati-e-mac. It should be fairly easy to support and seems like an interesting idea.

Enchanted already supports images for models that allow it (llama and baklava currently).

Let me give it a go next week.

gluonfield avatar Mar 08 '24 10:03 gluonfield

I have a similar workflow need, is this still something on the roadmap?

mattfusf avatar May 22 '24 01:05 mattfusf