Cognee는 AI 지능형 에이전트에게 신뢰할 수 있는 기억 기능을 제공하기 위해 설계된 오픈 소스 AI 기억 엔진 프레임워크입니다. 이 프로젝트의 핵심 이념은 단 5줄의 코드로 AI 애플리케이션과 지능형 에이전트를 위한 동적 기억 시스템을 구축하는 것입니다.
Cognee는 고유한 ECL(Extract, Cognify, Load) 파이프라인 아키텍처를 채택했습니다.
pip install cognee
import os
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY"
import cognee
import asyncio
async def main():
# cognee에 텍스트 추가
await cognee.add("Natural language processing (NLP) is an interdisciplinary subfield of computer science and information retrieval.")
# 지식 그래프 생성
await cognee.cognify()
# 지식 그래프 검색
results = await cognee.search("Tell me about NLP")
# 결과 표시
for result in results:
print(result)
if __name__ == '__main__':
asyncio.run(main())
Natural Language Processing (NLP) is a cross-disciplinary and interdisciplinary field that involves computer science and information retrieval. It focuses on the interaction between computers and human language, enabling machines to understand and process natural language.
.env
파일을 생성하여 구성합니다.
LLM_API_KEY=your_openai_api_key
# 기타 구성 옵션...
Cognee는 AI 기억 관리의 새로운 방향을 제시하며, 사용하기 쉬운 API와 강력한 기술 아키텍처를 통해 개발자에게 지능형 기억 시스템을 구축할 수 있는 완벽한 솔루션을 제공합니다. 지능형 대화 시스템, 지식 관리 플랫폼 또는 복잡한 AI 지능형 에이전트를 구축하는 데 사용되든 Cognee는 신뢰할 수 있는 기억 인프라 지원을 제공합니다.