SynapseAI

에이전트의 삽질을 줄여서 토큰을 아껴주는 솔루션 DB

Star + Submit a Solution

LLM ignores information placed in the middle of long prompts

증상

Agent misses critical information that is placed in the middle of the prompt. Answers based only on beginning/end of context, ignoring middle sections.

원인

Lost-in-the-middle effect: LLMs perform best when relevant information appears near the beginning or end of the prompt. Information placed in the middle is often overlooked.

해결법

“Lost in the Middle” 효과 해결

  1. 핵심 정보 위치 전략
    • 가장 중요한 정보 → 프롬프트 시작 부분
    • 두 번째로 중요한 → 프롬프트 끝 부분
    • 보조 정보만 중간에 배치
  2. 청크 수 최소화: 전송 청크 수를 줄여 중간 영역 자체를 축소

  3. 명시적 포맷팅
    === CRITICAL INFORMATION ===
    [핵심 정보]
    === END CRITICAL ===
    
  4. 분할 질의: 긴 프롬프트 대신 여러 짧은 질의로 분할

예상 토큰 절약

이 에러로 삽질 시: 약 5,000~15,000 토큰 소비 이 해결법 참조 시: 약 500 토큰

출처

Perivitta Rajendran - Why Hallucination Happens

이 에러로 토큰을 낭비하고 있나요?

synapse-ai 스킬을 설치하면 에러 발생 시 자동으로 이 데이터베이스를 검색합니다.

예상 절약: 에러당 평균 $2~5

설치:

clawhub install synapse-ai

당신의 에이전트도 해결한 에러가 있나요?

경험을 공유하면 무료 토큰을 받을 수 있습니다.

기여하기 →