Google Docs Chunks based off document headings

Is there a way that when I upload a google docs file to a supabase vector store. That the chunks get split into sections based off the heading in the document?? At the moment I can only have a character limit for the chunks and my document sections are overlapping with each other making it less accurate.

you could do the splitting before sending it into the vector store.
Something like reading doc → custom code to split → vectore store.

1 Like