Skip to main content
POST
/
api
/
v1
/
search
Search
curl --request POST \
  --url https://api.cognee.ai/api/v1/search \
  --header 'Content-Type: application/json' \
  --data '{
  "searchType": "GRAPH_COMPLETION",
  "datasets": [
    "<string>"
  ],
  "datasetIds": [],
  "query": "What is in the document?",
  "topK": 123
}'
[
  "<any>"
]

Body

application/json
searchType
enum<string>
Available options:
SUMMARIES,
INSIGHTS,
CHUNKS,
RAG_COMPLETION,
GRAPH_COMPLETION,
GRAPH_SUMMARY_COMPLETION,
CODE,
CYPHER,
NATURAL_LANGUAGE,
GRAPH_COMPLETION_COT,
GRAPH_COMPLETION_CONTEXT_EXTENSION,
FEELING_LUCKY
datasets
string[] | null
datasetIds
string<uuid>[] | null
Examples:
[]
query
string
default:What is in the document?
topK
integer | null
default:10

Response

Successful Response

The response is of type any[].

I