class documentation
class AIInterface(ABC):
Known subclasses: qA_Ap.app.ai.interfaces.cerebras.CerebrasAIInterface, qA_Ap.app.ai.interfaces.ollama.OllamaAIInterface
Abstract base class for AI interfaces.
| Method | format |
Format the history list to fit the specific AIInterface used. |
| Method | query |
Undocumented |
@abstractmethod
def query(self, prompt: str, history: list[ dict[ str, str]] = None, metadatas: dict = None):
¶
overridden in
qA_Ap.app.ai.interfaces.cerebras.CerebrasAIInterface, qA_Ap.app.ai.interfaces.ollama.OllamaAIInterfaceUndocumented