You can filter the books to eliminate bibliogarphy and use last book page (suboptimal) or improve LLM prompt to better use toc info to infer that
You can filter the books to eliminate bibliogarphy and use last book page (suboptimal) or improve LLM prompt to better use toc info to infer that