Query
query SearchKnowledgeSources($searchQuery: String!) {
searchKnowledgeSources(searchQuery: $searchQuery) {
__typename
... on IndexedDocumentSearchResult {
content
indexedDocument {
id
url
knowledgeSourceId
labelTypes {
__typename
}
status {
__typename
... on IndexedDocumentStatusIndexed {
__typename
}
}
createdAt {
__typename
}
}
}
}
}Variables
{
"searchQuery": "string"
}Response
{
"data": {
"searchKnowledgeSources": [
{
"__typename": "IndexedDocumentSearchResult",
"content": "string",
"indexedDocument": {
"id": "id",
"url": "string",
"knowledgeSourceId": "id",
"labelTypes": [
{
"__typename": "LabelType"
}
],
"status": {
"__typename": "IndexedDocumentStatusIndexed"
},
"createdAt": {
"__typename": "DateTime"
}
}
}
]
}
}Queries
searchKnowledgeSources
Perform a semantic (vector) search across your workspace’s knowledge sources and help center articles.
Matches up to pageSize chunks (default 10, max 50), then returns one result per source containing its
full indexed text, ordered by each source’s most relevant chunk. Use options to restrict
results by label type, content type (indexed documents vs help center articles), or to include
help center articles that are not publicly accessible.
QUERY
searchKnowledgeSources(searchQuery: String!, pageSize: Int, options: SearchKnowledgeSourcesOptions): [KnowledgeSourceSearchResult!]!Arguments
searchQuery
String!
required
pageSize
Int
Returns
Query
query SearchKnowledgeSources($searchQuery: String!) {
searchKnowledgeSources(searchQuery: $searchQuery) {
__typename
... on IndexedDocumentSearchResult {
content
indexedDocument {
id
url
knowledgeSourceId
labelTypes {
__typename
}
status {
__typename
... on IndexedDocumentStatusIndexed {
__typename
}
}
createdAt {
__typename
}
}
}
}
}Variables
{
"searchQuery": "string"
}Response
{
"data": {
"searchKnowledgeSources": [
{
"__typename": "IndexedDocumentSearchResult",
"content": "string",
"indexedDocument": {
"id": "id",
"url": "string",
"knowledgeSourceId": "id",
"labelTypes": [
{
"__typename": "LabelType"
}
],
"status": {
"__typename": "IndexedDocumentStatusIndexed"
},
"createdAt": {
"__typename": "DateTime"
}
}
}
]
}
}Was this page helpful?

