Summary
Let API consumers choose which SearchType to use per request via a query parameter.
Blocked by
Blocks
Nothing
Steps
- Add
search_type query parameter to GET /documents/search with allowed values: insights, graph_completion, chunks, summaries
- Default to
graph_completion if not specified
- Map the string param to
cognee.SearchType enum
- Update Pydantic response model to handle different result shapes (or use a union type)
- Update API docs/examples for each search type
- Write tests: each search type returns results in the expected format
Acceptance Criteria
Summary
Let API consumers choose which SearchType to use per request via a query parameter.
Blocked by
Blocks
Nothing
Steps
search_typequery parameter toGET /documents/searchwith allowed values:insights,graph_completion,chunks,summariesgraph_completionif not specifiedcognee.SearchTypeenumAcceptance Criteria
GET /documents/search?q=test&search_type=chunksreturns raw chunksGET /documents/search?q=test&search_type=insightsreturns tripletsgraph_completionCloses #79