Query Corpus (Hybrid Keyword + Semantic)
curl --request POST \
--url https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"max_sources": 10,
"deep": false,
"mode": "research"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', max_sources: 10, deep: false, mode: 'research'})
};
fetch('https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query"
payload = {
"query": "<string>",
"max_sources": 10,
"deep": False,
"mode": "research"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Query Corpus (Hybrid Keyword + Semantic)
Run cited hybrid keyword and semantic search with relevance ranking strictly scoped to a single corpus.
POST
https://api.zerodrive.dev
/
v1
/
brain
/
corpora
/
{corpus_id}
/
query
Query Corpus (Hybrid Keyword + Semantic)
curl --request POST \
--url https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"max_sources": 10,
"deep": false,
"mode": "research"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', max_sources: 10, deep: false, mode: 'research'})
};
fetch('https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/brain/corpora/{corpus_id}/query"
payload = {
"query": "<string>",
"max_sources": 10,
"deep": False,
"mode": "research"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Body
application/json
Response
Cited corpus sources and formatted markdown
The response is of type object.

