Skip to content

Instantly share code, notes, and snippets.

View Shamik-07's full-sized avatar
🏠
Working from home

Shamik Shamik-07

🏠
Working from home
View GitHub Profile
@Shamik-07
Shamik-07 / L3_Chains MultiPromptRouterTemplate.py
Last active January 18, 2025 11:33
Langchain LLM App Development L3_Chains MultiPromptRouterTemplate
MULTI_PROMPT_ROUTER_TEMPLATE = """Given a raw text input to a
language model select the model prompt best suited for the input.
You will be given the names of the available prompts and a
description of what the prompt is best suited for.
You may also revise the original input if you think that revising
it will ultimately lead to a better response from the language model.
<< FORMATTING >>
Return a string snippet enclosed by triple backticks a JSON object formatted to look like below:
```json