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

Ollama Code code block syntax issue #42

Closed
Bortus-AI opened this issue Oct 28, 2023 · 3 comments
Closed

Ollama Code code block syntax issue #42

Bortus-AI opened this issue Oct 28, 2023 · 3 comments

Comments

@Bortus-AI
Copy link
Collaborator

Bortus-AI commented Oct 28, 2023

unSAGED does not seem to identify the code blocks correctly for vba code.

It looks to use \begin{code} and \end{code} which is not recognized maybe?

See attached screenshot of the issue

image

@Bortus-AI
Copy link
Collaborator Author

I will test if it does it with other code like python or just VBA

@jorge-menjivar
Copy link
Owner

This looks like it might be related to the system prompt itself. Try making a custom system prompt for the model you are using and tell it to surround code "```vbnet" instead of \begin{code} as that would not be readable in markdown syntax.

@Bortus-AI
Copy link
Collaborator Author

This looks like it might be related to the system prompt itself. Try making a custom system prompt for the model you are using and tell it to surround code "```vbnet" instead of \begin{code} as that would not be readable in markdown syntax.

Thanks I will give that a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants