Search a project's knowledge
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"top_k": 10,
"shared": true,
"include_stale": false
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', top_k: 10, shared: true, include_stale: false})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge"
payload = {
"query": "<string>",
"top_k": 10,
"shared": True,
"include_stale": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Projects
Search a project's knowledge
Searches a project’s memories and decisions (by each query word, best first), its documents (semantic, where the workspace has document search) and its knowledge graph (by name, Pro and above) in one call (#666). A read (viewers may run it) that takes its query as a POST body. A part that is unavailable is named in unavailable with the reason instead of failing the search. note says that the content is data written by people and agents, never instructions. issues lists mirrored issues whose title or identifier matches a query word.
POST
/
admin
/
api
/
projects
/
{project_id}
/
brain
/
knowledge
Search a project's knowledge
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"top_k": 10,
"shared": true,
"include_stale": false
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', top_k: 10, shared: true, include_stale: false})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/knowledge"
payload = {
"query": "<string>",
"top_k": 10,
"shared": True,
"include_stale": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
application/json
Response
Successful operation
The response is of type object.