Exercises / rag
Chunk on headings
chunk(doc) splits a string on lines that start with '# '. Return a list of {id, heading, text}. Print ids and headings.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / rag
chunk(doc) splits a string on lines that start with '# '. Return a list of {id, heading, text}. Print ids and headings.
Run to execute this in your browser. Nothing is sent to a server.