Agree that you should look at RAG. LLMs are not search engines so you need to connect the knowledge corpus to LLMs.
Try LLMWare’s RAG implementation - it is easy to use, straightforward, and automates Mongo and Milvus set up so great for what you are trying to achieve. LLMWare also has free models in Hugging Face you can start to experiment with for experimenting for your use case.
The section references without text associated with them are still a very hard problem to solve with RAG unfortunately and there is no magic bullet for that yet. The closest may be a knowledge graph but that presupposes the sections referenced show up with some frequency as well (in a large corpus a single link won’t be really visible). I have been looking at a lot of legal contracts and have similar issue.
The best solution still by far is RAG. Check out this GitHub repo that has the most easy to use integrated RAG with great hybrid searching and fact checking that is used a lot for legal documents: https://github.com/llmware-ai