For simplicity, let's assume the stack trace is saved in a file (or allow users to paste it on STDIN)
Run it through the LLM and ask it to identify the files and functions from the user's codebase that the stack trace refers to.
Then do a similarity search for a prompt that includes those file and function names.
For simplicity, let's assume the stack trace is saved in a file (or allow users to paste it on STDIN)
Run it through the LLM and ask it to identify the files and functions from the user's codebase that the stack trace refers to.
Then do a similarity search for a prompt that includes those file and function names.