curl docs.jina.ai: load default version defined indefault- Specific version:
curl docs.jina.ai/v1 - Pipe into
llm:
curl docs.jina.ai/v1 | llm -s 'grab all sentences from Hacker News, embed them, and visualize the results in a 2D UMAP with matplotlib' -m claude-3.5-sonnet- Opening docs.jina.ai in a browser gives you a
text/htmlresponse, but programmatic access gives you a cleantext/plainresponse. This is due to theuser-agentvalue. - For browser JS
fetchwhere you can't change theuser-agentor in scenarios where you pretend to be a browser byuser-agentspoofing, you can add 'accept': 'text/plain' to the header to force thetext/plainresponse.
- Upload your prompt to
v{x}.txtin the repository root. - Use
curl docs.jina.ai/v{x}to fetch your prompt:- No need to include
.txt; simply usecurl docs.jina.ai/v1,curl docs.jina.ai/v2,curl docs.jina.ai/v3, etc. index.htmlis thetext/htmlresponse template with placeholder variables inside; this file is only for browser/bot view and for human readability. Eye-candy stuff.headers.jsondefines some response header that may be respected by AI-browsers/apps in the future; one can usecurl -svo. docs.jina.aito check them.
- No need to include