balphi·2 years ago·discussHow are you using regex to end the while loop? Are you detecting a specific substring or is it something more complex?
balphi·2 years ago·discussI think its unintuitive relative to the standard implementation of RAG today (e.g. vector-based similarity)