Closed dhuebner closed 2 months ago
RegEx pattern defined in extractToolUse function here seem to be bogus to me.
extractToolUse
A backslash is missing before the }.
}
Is: /\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?})/s Should be: /\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?\})/s
/\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?})/s
/\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?\})/s
Example input to test with:
Thought: I need to rephrase the input. Action: my_db Input: { \\query\\: "What is LLamaIndex?" }
Same in extractJsonStr(text) function?
extractJsonStr(text)
hey @himself65 and @dhuebner , new to project, can I take this one?
yeah
RegEx pattern defined in
extractToolUse
function here seem to be bogus to me.A backslash is missing before the
}
.Is:
/\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?})/s
Should be:/\s*Thought: (.*?)\nAction: ([a-zA-Z0-9_]+).*?\.*Input: .*?(\{.*?\})/s
Example input to test with: