Last translated: 09 Jun 2025

Translation Not Available Yet

This repository's README hasn't been translated yet. Once translated, it will be easier to read and understand in your native language (中文).

Once translated, you'll be able to submit a PR to the repository.

Once translated, you'll be able to submit a PR to the repository.

Cognee Logo

cognee - AI 에이전트를 위한 메모리, 단 5줄의 코드로 구현

Demo . Learn more · Join Discord · Join r/AIMemory

GitHub forks GitHub stars GitHub commits Github tag Downloads License Contributors

cognee - Memory for AI Agents  in 5 lines of code | Product Hunt

topoteretes%2Fcognee | Trendshift

확장 가능하고 모듈화된 ECL(추출, 인지화, 로드) 파이프라인을 사용하여 에이전트를 위한 동적 메모리를 구축하고 RAG를 대체하세요.

사용 사례평가에서 더 알아보기

🌐 Available Languages : Deutsch | Español | français | 日本語 | 한국어 | Português | Русский | 中文

Why cognee?

기능

  • 과거 대화, 문서, 이미지 및 오디오 트랜스크립션을 연결하고 검색
  • RAG 시스템을 대체하여 개발자 노력과 비용 절감
  • Pydantic만으로 그래프 및 벡터 데이터베이스에 데이터 로드
  • 30개 이상의 데이터 소스에서 수집하면서 데이터 조작

시작하기

Google Colab notebook, Deepnote notebook 또는 스타터 리포지토리로 빠르게 시작하세요.

기여하기

여러분의 기여는 이 프로젝트를 진정한 오픈 소스로 만드는 핵심입니다. 모든 기여는 대단히 감사하게 생각합니다. 자세한 내용은 CONTRIBUTING.md를 참조하세요.

📦 설치

pip, poetry, uv 또는 기타 파이썬 패키지 관리자를 사용하여 Cognee를 설치할 수 있습니다. Cognee는 Python 3.8부터 3.12까지 지원합니다.

pip로 설치

pip install cognee

로컬 Cognee 설치

pip, poetry, uv를 사용하여 로컬 Cognee 리포지토리를 설치할 수 있습니다. 로컬 pip 설치 시 pip 버전이 21.3 이상인지 확인하세요.

UV로 모든 선택적 종속성 설치

uv sync --all-extras

💻 기본 사용법

설정

import os
os.environ["LLM_API_KEY"] = "YOUR OPENAI_API_KEY"

템플릿을 사용하여 .env 파일을 생성하여 변수를 설정할 수도 있습니다. 다른 LLM 제공자를 사용하려면 문서에서 자세한 정보를 확인하세요.

간단한 예제

이 스크립트는 기본 파이프라인을 실행합니다:

import cognee
import asyncio


async def main():
    # Add text to cognee
    await cognee.add("Natural language processing (NLP) is an interdisciplinary subfield of computer science and information retrieval.")

    # Generate the knowledge graph
    await cognee.cognify()

    # Query the knowledge graph
    results = await cognee.search("Tell me about NLP")

    # Display the results
    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.

우리의 논문이 발표되었습니다! 여기에서 읽기

cognee paper

Cognee UI

Cognee UI를 사용하여 파일을 인지화하고 쿼리할 수도 있습니다.

Cognee UI 2

로컬에서 Cognee UI를 여기에서 시도해 보세요.

아키텍처 이해하기

cognee concept diagram

데모

  1. AI 메모리란 무엇인가:

Cognee 알아보기

  1. 간단한 GraphRAG 데모

간단한 GraphRAG 데모

  1. Ollama와 함께하는 Cognee

로컬 모델과 함께하는 Cognee

행동 강령

우리는 오픈 소스가 커뮤니티에게 즐겁고 존중받는 경험이 되도록 최선을 다하고 있습니다. 자세한 내용은 CODE_OF_CONDUCT를 참조하세요.

💫 기여자

contributors

스타 히스토리

Star History Chart