Training AI on Rhinocommon using RAG

Hello,

I’ve just been playing around with Ollama and Open WebUI, and I found that it is possible to optimize LLMs using the RAG method. Ideally, I would like to train a small coding LLM on the Rhinocommon sdk documentation, but I couldn’t find a .chm file.

Is there any offline documentation that I could use? Has anyone tried this before?

There must be bunch of Rhino pros out there who have tried this before, or have some sage advice on how to proceed.

Ash

Hello,
I don’t know of a single file that contains all the Rhino documentation.
Perhaps you can consider using Google’s NotebookLM or Perplexity. Both have free versions and allow you to query documents or web links. You just need to enter the index URL of the documentation web page to search all the pages.
I haven’t tested with the Rhino documentation but with other documentation it works very well

You can download the offline RhinoCommon SDK documentation in the form of an XML help file from the Rhino Developer website. It works well for tools like RAG since it provides structured data.

1 Like

Here’s a giant json file that is used to drive all of the data on the RhinoCommon API website

7 Likes

Thanks @kitjmv that sounds like a good approach. It never occurred to me that Perplexity had that functionality, and I haven’t tried NotebookLM. To be honest, I am looking for something that can also work offline, because where I live Google et al are often blocked. I should try these approaches and compare the results.

Thanks again for your advice!

@stevebaer and @Paul39 that’s brilliant!

The XML and JSON approaches sound good. It appears that they are easy to format into the blocks that RAG requires. Although, it might take me a little while, as I’ve not done a lot with these languages in the past.

There was also some documentation and samples on the Mcneel GitHub page, so I’ll have a look at what I can do with that too.

Thanks again gentlemen, I do appreciate your help!

Why limit to Rhinocommon when you can build your own PointNet model that works excellently with Rhino

Just some ideas, you can do some very crazy integrations.

Also you can integrate :

Result :

AI really is the future, I am collaborating with one of the biggest Italian S/Y shipyards to create a full on drafter, way better than my first preview video, It can place symbology and more. NDA so I can’t share a sample here.

That’s just some ideas anyway.
Hope this gives you some food for though
Farouk
farouk.serragedine@gmail.com for any inquieries :wink:

1 Like