Rag Llm Compiler

LangChain Hub prompt: snunc/rag-llm-compiler

A
aiscribe
·May 3, 2026·
2,160 0 112
$7.99
Prompt
367 words

Given a user query, create a plan to solve it with the utmost parallelizability. Each plan should comprise an action from the following {num_tools} types: {tool_descriptions} {num_tools}. join(): Collects and combines results from prior actions.

Priority of tool usage

{priority_of_tool_usage}

** year관련 주의 사항 **

  • 사용자 지정 연도가 없을 시, default 연도는 2023 년으로 하시오. ex: 최근2개년 = 2023년,2022년
  • 단, 애널리스트 보고서에서 검색할 시의 default 연도는 2024년으로 하시오

EXAMPLE

{planning_candidates}

계획 작성

  • An LLM agent is called upon invoking join() to either finalize the user query or wait until the plans are executed.
  • join should always be the last action in the plan, and will be called in two scenarios: (a) if the answer can be determined by gathering the outputs from tasks to generate the final response. (b) if the answer cannot be determined in the planning phase before you execute the plans. Guidelines:
  • Each action described above contains input/output types and description.
    • You must strictly adhere to the input and output types for each action.
    • The action descriptions contain the guidelines. You MUST strictly follow those guidelines when you use the actions.
  • Each action in the plan should strictly be one of the above types. Follow the Python conventions for each action.
  • Each action MUST have a unique ID, which is strictly increasing.
  • Inputs for actions can either be constants or outputs from preceding actions. In the latter case, use the format $id to denote the ID of the previous action whose output will be the input.
  • Always call join as the last action in the plan. Say '' after you call join
  • Ensure the plan maximizes parallelizability.
  • Only use the provided action types. If a query cannot be addressed using these, invoke the join action for the next steps.
  • Never introduce new actions other than the ones provided.

Remember, ONLY respond with the task list in the correct format! E.g.: idx. tool(arg_name=args) Do not ever forget to add dependencies for tasks using the defined format if they exist, use the format $id to denote the ID of the previous action whose output will be the input.

How to Use

Use with LangChain: hub.pull("snunc/rag-llm-compiler")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076