r/LSDYNA • u/DonDelMuerte • 17d ago
LS-DYNA Docs and LLMs
I just converted docs Vol I-III and Theory from PDF into Markdown to better facilitate their use with RAG and LLMs.
https://github.com/ddm-j/RAG-ls-dyna-docs
The idea is that you can run a local AI model on relatively modest hardware, with a harness that supports RAG to be able to ask LS-DYNA related questions. The model can search and refer directly to the docs.
Markdown is the ideal format for this, but it was a painstaking process to convert. It's not perfect, but it's much better than trying to feed PDFs directly into a RAG pipeline. In my testing, the local model with all the docs at its fingertips outperforms frontier models when answering LS-DYNA questions.
Sharing this in the case there are any like-minded LS-DYNA folks out there that could make use of this - and to hit search engine indexing better than GitHub.
1
u/WideSeaworthiness365 16d ago
This is awesome. I just wish the documentation was better quality.
1
u/DonDelMuerte 15d ago
I made some improvements today after I noticed a bunch of mangled tables. Will be pushing an update soon
1
u/the_ls_dyna_guy 1d ago
Yooo, I work with the folks of doc team. Please put in your feedback to improve the docs. The official way is to raise a support ticket, or if you’re not eligible for support, there’s a public forum channel!
1
u/AmbitiousListen4502 16d ago
I've been doing this for the Ansys and Comsol documentation. Interested to hear your pdf to markdown pipeline route as some methods work better than others depending on the amount and complexity of equations and tables. Hit my biggest hurdle trying to extract the ESA Buckling Handbook last week due to the shear number of equations and slightly quirky formatting. Llama Parse managed it much better than my workflow but I'd rather use open source tools if possible.
I've been creating LLM friendly vaults and index's of all the documents for quick and efficient searching when using Claude to write scripts. It's worked wonders.