Skip navigation
curl This is our Meta-Prompt. It allows LLMs to understand our Reader, Embeddings, Reranker, and…
0:00 / 1:42

curl This is our Meta-Prompt. It allows LLMs to understand our Reader, Embeddings, Reranker, and…

Jina AI

@JinaAI_18K followers

Visit on X
656 likesDownloadOriginal post

209,239 views

curl This is our Meta-Prompt. It allows LLMs to understand our Reader, Embeddings, Reranker, and Classifier APIs for improved codegen. Using the meta-prompt is straightforward. Just copy the prompt into your preferred LLM interface like ChatGPT, Claude, or whatever works for you, add your instructions, and you're set. In this example, we copied the entire prompt into Anthropic Claude and asked it to grab every sentence from Hacker News front page and visualize them using UMAP with matplotlib. This task is nontrivial as it combines multiple APIs from our Search Foundation, like Reader and Embedding where Claude may not have knowledge of. So if you asked Claude directly, it probably wouldn't give an optimal answer. But with the meta-prompt, Claude now has good knowledge about our APIs and can generate much better code! We can copy paste the code directly to Google Colab and with minimum modification, the code just works!

10 Comments

Comments from the original post on X (Twitter)

  • Jina AI's profile picture

    @JinaAI_

    and here's something cool - there's this handy CLI tool called llm from @simonw that lets you pipe the meta-prompt into an LLM right from your termail. So just do curl | llm -s 'TASK: grab all sentence from hackernews frontpage and embed and visualize the results in a 2d umap with matplotlib' -m claude-3-sonnet You'll get clean generated code output in your terminal. If you're using Cursor IDE, you can also add the meta prompt from to its docs index to help it understand our search foundation APIs better.

    65 likes

  • Jina AI's profile picture

    @JinaAI_

    The meta-prompt is maintained under We'd love to hear your thoughts on how we can improve the meta-prompt. So give it a try and let us know how it works for you.

    54 likes

  • Jesse Wursten's profile picture

    @JesseWursten

    Are there any docs in how to create such a meta prompt? Looks amazing

    4 likes

  • Linas | true.eth's profile picture

    @LinasLekavicius

    @domasbitvinskas you need to do a metaprompt like this for @superinterfaces too

    4 likes

  • Trelis Research's profile picture

    @TrelisResearch

    Smart. Many more should do this.

    2 likes

  • 🇮🇳 𐄳 इन्द्रजाल 𐄳's profile picture

    @indrapraharana

    This is fantastic! I hope this becomes a trend. More and more API maintainers should be doing this (a win-win). Is the meta-prompt hand-crafted, or is there a more efficient way to generate/maintain it for a given API. Does having OpenAPI support help?

    2 likes

  • veryvanya's profile picture

    @veryvanya

    @weremeow new standards

    2 likes

  • Parker Rex's profile picture

    @ParkerRex

    Whats the prompt for generating the meta prompt? Super valuable resource for any set of technical docs.

    2 likes

  • Muratcan Koylan's profile picture

    @youraimarketer

    Genius

  • Murillo Camargo's profile picture

    @MuCamargo

    Nice job