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(Extract, Cognify, Load)パイプラインを使用して、エージェントのための動的メモリを構築し、RAGを置き換えます。

詳細はユースケース評価をご覧ください。

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

Why cognee?

特徴

  • 過去の会話、ドキュメント、画像、音声文字起こしを相互接続して検索可能
  • RAGシステムを置き換え、開発者の労力とコストを削減
  • Pydanticのみを使用してグラフデータベースとベクターデータベースにデータをロード
  • 30以上のデータソースからデータを取り込みながら操作可能

はじめに

Google Colab notebookDeepnote notebook、またはスターターレポジトリで簡単に始められます。

貢献について

この真のオープンソースプロジェクトの核心は皆様の貢献です。どんな貢献も大歓迎です。詳細はCONTRIBUTING.mdをご覧ください。

📦 インストール

Cogneeはpippoetryuvまたはその他のPythonパッケージマネージャーを使用してインストールできます。 CogneeはPython 3.8から3.12をサポートしています。

pipでのインストール

pip install cognee

ローカルでのCogneeインストール

pippoetryuvを使用してローカルの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