B-urb / doclytics

A document analyzer for paperless-ngx using ollama
MIT License
89 stars 5 forks source link

FYI: now ollama supports tools and plans to support constrained grammar #103

Open thiswillbeyourgithub opened 1 month ago

thiswillbeyourgithub commented 1 month ago

Hi,

Hi! Just in case you missed it, I think you might want to know that ollama has implemented tool support for LLMs.

With the recent advancement in the fields, it is now much easier than before to properly parse JSON files.

Here's their blog link: https://ollama.com/blog/tool-support

You can look for models that support tools here: https://ollama.com/library

Alternatively, ollama is planning to enhance constrained grammar support: https://github.com/ollama/ollama/issues/6237#issuecomment-2330104301

I don't know exactly how you're parsing ollama output but it might become way easier thanks to this.

B-urb commented 1 month ago

Thanks for bringing this to my attention. I will have a look at this.