Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Default SerpApi tool results to Markdown - #6

Open
skatkov wants to merge 1 commit into
serpapi:mainfrom
skatkov:feat/serpapi-markdown-default
Open

skatkov wants to merge 1 commit into
serpapi:mainfrom
skatkov:feat/serpapi-markdown-default

Conversation

@skatkov

@skatkov skatkov commented Nov 23, 2026 •

Copy link
Copy Markdown

Default the MCP and direct REST search tools to Markdown. This is "native LLM" language that takes up less tokens (e.g. easier on context).

Proposal

Switch to markdown as default, but keep the option to force --json output. This brings 57% savings in my eval benchmarks.

Format Response size Estimated tokens (o200k_base)
Compact JSON 45,407 bytes 18,727
Markdown 16,644 bytes 8,055
Markdown savings 63% 57%

@skatkov

skatkov commented Nov 23, 2026

Copy link
Copy Markdown
Author

I did run into a very strange situation here. JSON had 20 listing names, and I could match 17 in Markdown. Were the other three missing or just rendered differently? I don’t know yet. This needs more investigation.

@skatkov

skatkov commented Nov 24, 2026 •

Copy link
Copy Markdown
Author

I took some time to double check this and was unable to reproduce an issue with 20/17 count. Could it be some issue on back-end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant