12 lines
274 B
Python
12 lines
274 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class GraphRAGResponse:
|
|
question: str
|
|
answer: str
|
|
evidence: str = ""
|
|
|
|
def __str__(self) -> str:
|
|
return f"GraphRAGResponse(question={self.question!r}, answer={self.answer!r}, evidence={self.evidence!r})"
|