Skip to content

jina-ai/meta-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0d1c3a1 · Jan 20, 2025

History

68 Commits
Nov 6, 2024
Oct 29, 2024
Oct 28, 2024
Nov 11, 2024
Jan 20, 2025
Oct 31, 2024
Oct 31, 2024
Oct 31, 2024
Oct 30, 2024
Oct 30, 2024
Oct 31, 2024
Oct 31, 2024
Jan 20, 2025

Repository files navigation

Meta-Prompt for Jina Search Foundation APIs

Usage

  • curl docs.jina.ai: load default version defined in default
  • 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

Note

  • Opening docs.jina.ai in a browser gives you a text/html response, but programmatic access gives you a clean text/plain response. This is due to the user-agent value.
  • For browser JS fetch where you can't change the user-agent or in scenarios where you pretend to be a browser by user-agent spoofing, you can add 'accept': 'text/plain' to the header to force the text/plain response.

Developer's Guide

  • Upload your prompt to v{x}.txt in the repository root.
  • Use curl docs.jina.ai/v{x} to fetch your prompt:
    • No need to include .txt; simply use curl docs.jina.ai/v1, curl docs.jina.ai/v2, curl docs.jina.ai/v3, etc.
    • index.html is the text/html response template with placeholder variables inside; this file is only for browser/bot view and for human readability. Eye-candy stuff.
    • headers.json defines some response header that may be respected by AI-browsers/apps in the future; one can use curl -svo. docs.jina.ai to check them.