How BambooAI processes queries
mainBambooAI follows a six-step lifecycle to transform natural language into data insights:
- Initiation: Starts with a user prompt and maintains a conversation loop.
- Task Routing: Uses an LLM to classify questions and route them to either a text response handler or a code generation handler.
- User Feedback: The model can pause to ask for clarification if instructions are vague or if it encounters ambiguity during the process.
- Dynamic Prompt Build: Evaluates data needs, formulates an analysis plan, performs semantic searches for similar questions, and generates code using the selected LLM.
- Debugging and Execution: Executes the generated code and uses LLM-based self-healing to correct errors and retry until successful.
- Results and Knowledge Base: Ranks answers for quality, stores high-quality solutions in a vector database, and presents results or visualizations.