메인 콘텐츠로 건너뛰기
Agentic Search는 지식, 에피소드, 토픽, 엔티티, 관계를 하나의 결과 배열로 반환합니다.

개요

const client = new NdxClient({
  apiKey: process.env.NEURADEX_API_KEY,
  projectId: 'your-project-id',
});

const result = await client.search.agentic('인증 논의', {
  limit: 20,
  includeTypes: ['knowledge', 'episode', 'topic', 'entity', 'relation'],
});

메서드 목록

메서드설명
agentic(query, options?)통합 검색 (단일 배열 반환)

agentic()

여러 지식 레이어를 가로질러 검색하고, 하나의 혼합 결과 배열로 반환합니다. 필요에 따라 타입별로 필터링해 사용하세요.

파라미터

query
string
필수
자연어 검색 쿼리
options.limit
number
전체 결과 최대 개수
options.perTypeLimit
number
타입별 최대 개수
options.includeTypes
string[]
포함할 타입 (“knowledge” | “episode” | “topic” | “entity” | “relation”)
options.expandGraph
boolean
관련 맥락 확장 여부
options.maxHops
number
관련 맥락 깊이
options.expandLimit
number
확장에 사용하는 기준 개수
options.relationLimit
number
관계 최대 개수

반환값

interface AgenticSearchResponse {
  results: AgenticSearchResult[];
  meta: {
    query: string;
    projectId: string;
    usedTypes: AgenticSearchType[];
    expandGraph: boolean;
    counts: Record<AgenticSearchType, number>;
  };
}

사용 예시

const result = await client.search.agentic('배포 실패 원인', {
  limit: 15,
  includeTypes: ['episode', 'knowledge', 'relation'],
});

const episodes = result.results.filter((item) => item.type === 'episode');
const knowledges = result.results.filter((item) => item.type === 'knowledge');

다음 단계

Knowledge API

지식 상세 조회 및 업데이트

MCP 도구

MCP에서 Agentic Search 사용