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