blob: 652384227d6c1964fa2ee8d828051100745e8508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from dataclasses import dataclass
from typing import List
from rag.retriever.vector import Document
ANSWER_INSTRUCTION = (
"Do not attempt to answer the query without relevant context, and do not use "
"prior knowledge or training data!\n"
"If the context does not contain the answer or is empty, only reply that you "
"cannot answer the query given the context."
)
@dataclass
class Prompt:
query: str
documents: List[Document]
|