⚙︎ 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;
}