balphi··on Answering Legal Questions with LLMsHow are you using regex to end the while loop? Are you detecting a specific substring or is it something more complex?
balphi··on Answering Legal Questions with LLMsI think its unintuitive relative to the standard implementation of RAG today (e.g. vector-based similarity)