DocArrayInMemorySearch는 Docarray에서 제공하는 document index로, 문서를 메모리에 저장합니다. 데이터베이스 서버를 실행하고 싶지 않은 소규모 데이터셋에 적합한 시작점입니다.이 노트북은
DocArrayInMemorySearch와 관련된 기능을 사용하는 방법을 보여줍니다.
Setup
아직 설치하지 않았다면 아래 셀의 주석을 해제하여 docarray를 설치하고 OpenAI api key를 가져오거나 설정하세요.DocArrayInMemorySearch 사용하기
Similarity search
Similarity search with score
반환되는 distance score는 cosine distance입니다. 따라서 낮은 score일수록 더 좋습니다.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.