pykoi package#
Subpackages#
- pykoi.chat package
- pykoi.rlhf package
- pykoi.component package
- pykoi.interactives package
- pykoi.telemetry package
- Submodules
- pykoi.telemetry.events module
AppStartEvent
AppStartEvent.name
AppStartEvent.start_time
AppStartEvent.date_time
AppStartEvent.gpu
AppStartEvent.cloud_provider
AppStartEvent.system
AppStartEvent.release
AppStartEvent.cloud_provider
AppStartEvent.date_time
AppStartEvent.gpu
AppStartEvent.name
AppStartEvent.release
AppStartEvent.start_time
AppStartEvent.system
AppStopEvent
TelemetryEvent
identify_cloud_provider()
- pykoi.telemetry.telemetry module
- Module contents
- tests package
Submodules#
pykoi.application module#
Application module.
- class pykoi.application.Application(share: bool = False, debug: bool = False, username: None | str | List = None, password: None | str | List = None, host: str = '127.0.0.1', port: int = 5000, enable_telemetry: bool = True)[source]#
Bases:
object
The Application class.
- add_component(component: Any)[source]#
Add a component to the application.
- Parameters:
component (Any) – The component to be added.
- create_chatbot_comparator_route(app: FastAPI, component: Dict[str, Any])[source]#
Create chatbot comparator routes for the application.
- Parameters:
app (FastAPI) – The FastAPI application.
component (Dict[str, Any]) – The component for which the routes are being created.
- create_chatbot_route(app: FastAPI, component: Dict[str, Any])[source]#
Create chatbot routes for the application.
- Parameters:
app (FastAPI) – The FastAPI application.
component (Dict[str, Any]) – The component for which the routes are being created.
- create_feedback_route(app: FastAPI, component: Dict[str, Any])[source]#
Create feedback routes for the application.
- Parameters:
app (FastAPI) – The FastAPI application.
component (Dict[str, Any]) – The component for which the routes are being created.
- create_nvml_route(app: FastAPI, component: Dict[str, Any])[source]#
Create NVML routes for the application.
- Parameters:
app (FastAPI) – The FastAPI application.
component (Dict[str, Any]) – The component for which the routes are being created.
- class pykoi.application.ComparatorInsertRequest(*, data: List[ModelAnswer])[source]#
Bases:
BaseModel
- data: List[ModelAnswer]#
- class pykoi.application.ModelAnswer(*, model: str, qid: int, rank: int, answer: str)[source]#
Bases:
BaseModel
- answer: str#
- model: str#
- qid: int#
- rank: int#
- class pykoi.application.RankingTableUpdate(*, question: str, up_ranking_answer: str, low_ranking_answer: str)[source]#
Bases:
BaseModel
- low_ranking_answer: str#
- question: str#
- up_ranking_answer: str#