Tasks
Search Knowledge Library
Searches through your knowledge library.
Basic usage
Search all of your knowledge library articles for ~~stubpost.message
.
Parameters
required string
branch the branch to search in
Object
query the query to search with
Show child attributes
Object
text_small the text_small query, corresponding to the text_small vector
Show child attributes
required string
content the string/text content of the text_small query
Object
gpt_assist optional gpt_assist configuration for the text_small query, this will enrich the query with GPT
Show child attributes
string
model the model for the gpt_assist
Default: gpt-4o
string
system_prompt the system prompt for the gpt_assist. We will use this as the system prompt when enriching the query with GPT
Object
filter allows filtering of the search using arbitrary data
Show child attributes
Object
by_categorization Show child attributes
Object
knowledge_library filter by knowledge library categorization
Show child attributes
boolean
enabled whether to enable the knowledge library filter
StringBooleanMap
libraries the libraries to filter by
StringBooleanMap
rooms the rooms to filter by
StringBooleanMap
shelves the shelves to filter by
Object
by_score filter by score
Show child attributes
number
min_threshold the minimum score threshold for the search
Object
return the return configuration, controls what data this task returns
Show child attributes
number
limit the maximum number of results to return
string
results_array_key the key to use for the results array in the return payload
boolean
debug whether to return debug information
Object.<string, string> string
item_structure allows modifying the structure of the returned items using variable substitution
Object
gpt_assist optional gpt_assist configuration for the returned results, this will summarize the results. See gpt_assist in the return payload
Show child attributes
string
model the model for the gpt_assist
string
system_prompt the system prompt for the gpt_assist, which will be used to summarize all the results into a single text response
Result
Properties
Array.<Object>
results an array of matching points that were found.
if params.return.results_array_key is set, the results will be under that key instead of results
Show child attributes
float
score how closely the snippet matched the query
Object
payload object containing additional data that was stored along with the point
Show child attributes
Object
article contains info about the article this snippet came from
Show child attributes
string
articleuuid the unique identifier for the article
Object
categorization categorization details for the article
Show child attributes
Object
knowledge_library Show child attributes
string
library what library the article is in
string
room what room the article is in
string
shelf what shelf the article is in
Object
details Show child attributes
string
name the name of the article the snippet belongs to
Object
snippet represents a small part of the article that matched the query
Show child attributes
Object
text_small Show child attributes
string
content the piece of text that matched the query
string
hash the hash of the text that matched the query
Object
gpt_assist object containing the summarized gpt assist response
Show child attributes
string
content if return.gpt_assist
is set, this will be the summarized gpt assist response
Object
debug if return.debug
is set, this will contain debug information.
This can be useful to understand how query.text_small.gpt_assist
was used in the search.
Examples
Advanced usage of gpt_assist
, filter
and return
params
Result