Exa Search 레퍼런스 — 파라미터와 구조화 출력

Exa Search 레퍼런스

/search 엔드포인트의 전체 API 레퍼런스입니다. 모든 주요 파라미터를 제공합니다.

출처: Search API Reference — 공식문서

구조화 출력 예시

deep 타입과 output_schema 를 함께 쓰면 복잡한 구조화 데이터를 얻습니다.

result = exa.search(
  "top aerospace companies",
  type="deep",
  output_schema={
    "type": "object",
    "required": ["companies"],
    "properties": {
      "companies": {
        "type": "array",
        "items": {
          "type": "object",
          "required": ["company_name", "ceo_name"],
          "properties": {
            "company_name": {"type": "string"},
            "ceo_name": {"type": "string"}
          }
        }
      }
    }
  }
)

output_schema, system_prompt, stream 은 모든 검색 타입에서 동작합니다. 더 어려운 합성에는 deep-litedeep 계열을 권장합니다.

카테고리 활용

company_results = exa.search("agtech companies in the US that have raised series A",
                             type="auto", category="company", contents={"highlights": True})
people_results = exa.search("software engineers that work at fintech companies",
                            type="auto", category="people", contents={"highlights": True})

더 알아보기