⚙︎ ArticleExtenderService
The ArticleExtenderService provides methods to extend an article with additional information. The main purpose is to retrieve questions for a given article to be rendered in the ArticleExtender Widget on ArticlePages.
service ArticleExtenderService {
rpc GetQuestions(GetQuestionsRequest) returns (GetQuestionsResponse) {}
rpc GetAnswer(GetAnswerRequest) returns (GetAnswerResponse) {}
}
⚙︎ GetQuestions
rpc GetQuestions(GetQuestionsRequest) returns (GetQuestionsResponse) {}
Returns an array of questions if the given id
exists, in the vector store,
an Error
, otherwise.
Field name | Type | Description |
---|---|---|
id | int64 | [required] Unique id of the article, questions should be returned for. |
message GetQuestionsRequest {
int64 id = 1;
}
message GetQuestionsResponse {
repeated string questions = 1;
}
enum QuestionSource
Information about the source of the question. User questions must be treated differently than questions that we provided.
Enum value | Description |
---|---|
QUESTION_SOURCE_UNSPECIFIED | unspecified |
INITIAL_QUESTIONS | The question was part of the initial server-side response. |
USER | The question is an input from the user. |
enum QuestionSource {
QUESTION_SOURCE_UNSPECIFIED = 0;
INITIAL_QUESTIONS = 1;
USER = 2;
}