search

Hybrid Post

POST
Performs search, using a combination of syntactic and semantic search.

Request

This endpoint expects an object.
namespace
enumRequired
The namespaces for hybrid search.
query
stringRequired
The query string.
limit
integerOptional
The maximum number of items to return in a page. The default is '10'.
semantic_weight
doubleOptional
The weightage for semantic search. Values between 0 and 1 are accepted.

Response

This endpoint returns an object
results
list of unions
The search results.
POST
1curl -X POST https://api.devrev.ai/search.hybrid \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "namespace": "article",
6 "query": "query"
7}'
200Successful
1{
2 "results": []
3}