Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate prompts to models and inference parameters #256

Open
synw opened this issue Nov 24, 2024 · 1 comment
Open

Associate prompts to models and inference parameters #256

synw opened this issue Nov 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@synw
Copy link

synw commented Nov 24, 2024

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:

  • System prompt
  • Main prompt
  • Model to use
  • Inference parameters to use
  • Few shots (option)

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
Copy link
Owner

n4ze3m commented Nov 25, 2024

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

@n4ze3m n4ze3m added the enhancement New feature or request label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants