| 145 | |
| 146 | @dataclass |
| 147 | class RAGAnswer(adal.DataClass): |
| 148 | rationale: str = field(default="", metadata={"desc": "Chain of thoughts for the answer."}) |
| 149 | answer: str = field(default="", metadata={"desc": "Answer to the user query, formatted in markdown for beautiful rendering with react-markdown. DO NOT include ``` triple backticks fences at the beginning or end of your answer."}) |
| 150 | |
| 151 | __output_fields__ = ["rationale", "answer"] |
| 152 | |
| 153 | class RAG(adal.Component): |
| 154 | """RAG with one repo. |