Limit max recursion depth for rag analyzer#3318 (#13637)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yingfeng
2026-03-16 22:49:56 +08:00
committed by GitHub
parent 5403f142ae
commit 73bc9b91de
2 changed files with 23 additions and 4 deletions

View File

@@ -121,7 +121,8 @@ private:
std::vector<std::vector<std::pair<std::string, int>>>& token_list,
std::vector<std::string>& best_tokens,
double& max_score,
bool memo_all) const;
bool memo_all,
int depth = 0) const;
void TokenizeInner(std::vector<std::string>& res, const std::string& L) const;