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()
여러 지식 레이어를 가로질러 검색하고, 하나의 혼합 결과 배열로 반환합니다. 필요에 따라 타입별로 필터링해 사용하세요.
파라미터
포함할 타입 (“knowledge” | “episode” | “topic” | “entity” | “relation”)
반환값
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 사용