https://blog.langchain.dev/few-shot-prompting-to-improve-tool-calling-performance/
위 내용을 참고하여, 다음과 같이 few shot prompting 구조를 개선합니다.
- as-is: examples가 one long string으로 promt에 들어감
- to-be: system prompt와 human prompt 사이에 list of messages로 들어감
References
https://js.langchain.com/v0.2/docs/tutorials/llm_chain/
https://blog.langchain.dev/few-shot-prompting-to-improve-tool-calling-performance/
위 내용을 참고하여, 다음과 같이 few shot prompting 구조를 개선합니다.
References
https://js.langchain.com/v0.2/docs/tutorials/llm_chain/