아이디어 1

아이디어1 - 실험 1

from langchain_core.prompts import ChatPromptTemplate
from langchain_openai import ChatOpenAI

prompt = ChatPromptTemplate.from_messages(
    [
        (
            "system",
            "Evaluate the following question and decide if it is specific enough to answer directly or requires more information.\\n\\nIf specific, respond with 'Specific'. If it requires more information, respond with 'Not Specific'.\\n\\n",
        ),
        ("human", "{input}"),
    ]
)

chain = prompt | llm

chain.invoke(
    {
        "input": "부산에 있는 맛집을 알려줘",
    }
)