Closed adriens closed 2 months ago
Hi,
It seems to me that @SystemMessage(fromResource="someresource")
is what you are after.
Hi,
It seems to me that
@SystemMessage(fromResource="someresource")
is what you are after.
Looks like, yes, do there is some example in the samples ?
There are tests that use it, but I am not in front of my machine now so it's hard to find them.
I can look later
No worry, that's very cool to get these elements :pray:
Es ist wirklich gut, vielen danke für die hefle :
interface Translator {
@SystemMessage(fromResource = "messages/translate-system")
@UserMessage(fromResource = "/messages/translate-user.txt")
String translate(@V("text") String text, @V("lang") String language);
}
:information_source: Context
We are bulding an agent for our division, its aim is to answer incoming questions so we don't have to.
We have currently working on the Quarkus/podman/ollama stack.
I would like to share the same SYSTEM PROMPT accross all our functions to provide an homogeneous UX for people asking questions.
eg :
We have started to implement some functions and I wonder how we could inject SYSTEM prompt from within standard conf files so we can use it in very wide amount of places in our code and :
:grey_question: Question