quarkiverse / quarkus-langchain4j

Quarkus Langchain4j extension
https://docs.quarkiverse.io/quarkus-langchain4j/dev/index.html
Apache License 2.0
116 stars 65 forks source link

Dev UI: provide some kind of library of prepared system messages #656

Open jmartisk opened 4 weeks ago

jmartisk commented 4 weeks ago

Perhaps this could be a dropdown menu that contains some useful system messages, and when you select one of them, it will get copied to the 'system message' field.

Some patterns are https://github.com/danielmiessler/fabric/tree/main/patterns but maybe these are too complex and we may need some simpler ones?

geoand commented 4 weeks ago

@langchain4j also mentioned https://smith.langchain.com/hub. I wonder if we could add a search bar that would get results from it

jmartisk commented 4 weeks ago

One problem with https://smith.langchain.com/hub is that the prompts contain placeholders (parameters) and the UI doesn't have any support for that, the user would have to manually replace the placeholders with something, which isn't exactly nice UX

https://github.com/danielmiessler/fabric/tree/main/patterns doesn't have this problem

jmartisk commented 4 weeks ago

I think we could pick a few from the fabric repo, add some of our own, and add an example User message along with the System message too

jmartisk commented 3 weeks ago

I have a prototype implementation of the UI part and will send a PR soon. Then we can decide what it will actually show...