kernelfoundry.algorithm.prompts.feedback_llm¶
Handler for LLM that provides feedback based on console output and documentation.
Classes
|
Loads and retrieves documentation snippets referenced by keyword tags. |
|
Coordinates prompting an LLM for feedback based on the eval log. |
- class kernelfoundry.algorithm.prompts.feedback_llm.DocumentationHandler(doc_path: str = 'data/rag/docs/sycl_specification.json')[source]¶
Loads and retrieves documentation snippets referenced by keyword tags.
- class kernelfoundry.algorithm.prompts.feedback_llm.FeedbackHelper(use_feedback_llm: bool, language: str, server_config, use_docs_via_keywords: bool = False)[source]¶
Coordinates prompting an LLM for feedback based on the eval log.
- __init__(use_feedback_llm: bool, language: str, server_config, use_docs_via_keywords: bool = False)[source]¶
Initialize feedback behavior and optional documentation enrichment.
- load_parent_and_get_feedback(problem_logger: ProblemLogger, parent_program=None)[source]¶
Call feedback LLM that analyses the console output, or fall back to the console output itself.