Types
ChatRequest ¶
Bases: BaseModel
Represents a chat request.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message |
str
|
The message from user. |
required |
openai_model |
str
|
The OpenAI model to use. Defaults to "ft:gpt-3.5-turbo-1106:aitomatic-inc:gen-agent-v2:8dPNxr8r". |
required |
temperature |
float
|
The temperature of the model's output. Higher values make the output more random, while lower values make it more focused and deterministic. Defaults to 1.0. |
required |
certainty_threshold |
float
|
The threshold for considering a question as certain. Defaults to 0.9. |
required |
uncertainty_threshold |
float
|
The threshold for considering a question as uncertain. Defaults to 0.6. |
required |
Source code in docqa/types.py
RetrievalReference ¶
Bases: BaseModel
Represents a reference.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
str
|
The source of the reference. |
required |
content |
str
|
The content of the reference. |
required |
Source code in docqa/types.py
PipelineOutput ¶
Bases: BaseModel
Represents the output of the pipeline.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
answer |
str
|
The answer to the question. |
required |
references |
list[RetrievalReference]
|
A list of RetrievalReference objects containing the related references. |
required |
metadata |
dict
|
Additional metadata associated with the answer. |
required |