Send prompt to Pebblo server for classification. Then send prompt to Daxa cloud(If api_key is present).
asend_prompt(
self,
app_name: str,
retriever: VectorStoreRetriever,
question: str,
answer: str,
auth_context: Optional[AuthContext],
docs: List[Document],
prompt_entities: Dict[str, Any],
prompt_time: str,
prompt_gov_enabled: bool = False
) -> None| Name | Type | Description |
|---|---|---|
app_name* | str | Name of the app. |
retriever* | VectorStoreRetriever | Retriever instance. |
question* | str | Question asked in the prompt. |
answer* | str | Answer generated by the model. |
auth_context* | Optional[AuthContext] | Authentication context. |
docs* | List[Document] | List of documents retrieved. |
prompt_entities* | Dict[str, Any] | Entities present in the prompt. |
prompt_time* | str | Time when the prompt was generated. |
prompt_gov_enabled | bool | Default: FalseWhether prompt governance is enabled. |