n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.58k stars 150 forks source link

Associate prompts to models and inference parameters #256

Open synw opened 1 day ago

synw commented 1 day ago

It would be nice to directly associate a model to a given prompt. As Ollama can switch models at runtime it would be very convenient to automate this instead of having to manually pick a model each time.

The custom prompts specification could include more information:

This would make the custom prompts more precise. For example using a few shots helps a lot with small models, or temperature changes between the tasks. To have different inference params and system prompts for each task would be really nice.

I have made a Typescript spec and library that implements yaml defined prompts with all these features, if it can help: check the doc and code

n4ze3m commented 6 hours ago

Yes, this is a nice idea! I'll look into it. :)