Maximilian-Winter / llama-cpp-agent

The llama-cpp-agent framework is a tool designed for easy interaction with Large Language Models (LLMs). Allowing users to chat with LLM models, execute structured function calls and get structured output. Works also with models not fine-tuned to JSON output and function calls.
Other
445 stars 38 forks source link

Is it possible to add mermaid syntax grammar support? #62

Closed PAHXO closed 2 months ago

PAHXO commented 2 months ago

I tried using Llama 3 8m to generate mermaid diagrams from text. but they have minor syntax errors. When I give it another pass to gpt-4 to fix the minor syntax errors. The final diagram looks great.

So, is it possible to create a GBNF or grammar support to generate Mermaid syntax?

Maximilian-Winter commented 2 months ago

You could write a GBNF grammar by hand.