Wrapper for Pebblo Retrieval API.
PebbloRetrievalAPIWrapper(
self,
**kwargs: Any = {},
)Send app discovery request to Pebblo server & cloud.
Send prompt to Pebblo server for classification. Then send prompt to Daxa cloud(If api_key is present).
Send prompt to Pebblo server for classification. Then send prompt to Daxa cloud(If api_key is present).
Check the validity of the given prompt using a remote classification service.
This method sends a prompt to a remote classifier service and return entities present in prompt or not.
Check the validity of the given prompt using a remote classification service.
This method sends a prompt to a remote classifier service and return entities present in prompt or not.
Make a request to the Pebblo server/cloud API.
Update the payload with response, prompt and context from Pebblo response.
Make a async request to the Pebblo server/cloud API.
Build the QA payload for the prompt.
Args: 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): Whether prompt governance is enabled.