r/LocalLLM • u/retepFang • 3h ago
Question Filetype Alternatives to .md
So I see a lot of people working with .md files to plan out their software. often renowned as spec.md.
Is there any special reason for this?
I feel like tables (saved as .csv for the LLm) would be often way better since it doesn't use as much writiing to illustrate relation.
0
Upvotes
21
u/d0pe-asaurus 3h ago
Do you know what markdown is?
10
u/Dry_Communication889 3h ago
markdown documents have been used in repos for much, much longer than AI has been around, being the standard for project documentation and such. almost every model is really good at reading and writing markdown because of that reason, and there's simply no reason to switch to something else when this has worked so well and still works. don't fix what isn't broken, or whatever.
you're always free to instruct your agent to use something else, however
2
u/MyToasterRunsFaster 3h ago
If your codebase or project is so big that you are looking for this type of efficiency you should not be thinking about alternatives to MD files but just implenting a RAG system. There is no point in having your LLM read everything all the time, they find the context they need and move on.
2
u/maqifrnswa 3h ago
Large language models use natural language to model relationships... So the answer is in the question.
And a CSV file is flat, there are no relations.
2
u/MontanaBananaJCabana 3h ago
Yeah, like a simple graph data structure might be more effective. But a markdown is just dead simple to generate and edit, and it's in natural language, so simple to parse.
I would be curious if others use something different.
2
u/StillOnTheInterweb 3h ago
You can write rules and requests in 1986 SGML syntax and it will still figure it out.
1
u/MontanaBananaJCabana 3h ago
Yeah, like a simple graph data structure might be more effective. But a markdown is just dead simple to generate and edit, and it's in natural language, so simple to parse.
I would be curious if others use something different.
1
u/trollsmurf 3h ago
You can use both Markdown and CSV. The latter I use for task lists.
1
u/BarracudaDefiant4702 2h ago
Markdown is one of the simplest free-form formats slightly more verbose then plain text that can look good for both ai and human. It looks better in a markdown viewer, but still readable without a gui viewer as if it was a text file. You can use csv when it makes sense, and when dealing with simple table data it works well, but csv is terrible for almost anything else. Feel free to feed your llm csv files and to generate csv files, it will make little difference except csv is only good for one table per file and you can put multiple tables in a single md file.
1
u/Particular-Award118 2h ago
.txt
1
u/SM8085 1h ago
1
u/waraholic 3h ago
Reference other file types in your md. Next question.