Giter Site home page Giter Site logo

acumennations / cognee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from topoteretes/cognee

0.0 0.0 0.0 27.57 MB

Memory management for the AI Applications and AI Agents

Home Page: https://www.cognee.ai

License: Apache License 2.0

Shell 0.15% Python 12.81% Jupyter Notebook 86.96% Dockerfile 0.07%

cognee's Introduction

cognee

Make data processing for LLMs easy

Cognee logo

Open-source framework for creating knowledge graphs and data models for LLMs.

cognee forks cognee stars cognee pull-requests cognee releases

๐Ÿš€ It's alive

Try it yourself on Whatsapp with one of our partners by typing /save {content you want to save} followed by /query {knowledge you saved previously} For more info here are the docs

๐Ÿ“ฆ Installation

With pip:

pip install cognee

With poetry:

poetry add cognee

๐Ÿ’ป Usage

Check out our demo notebook here

  • Set OpenAI API Key as an environment variable
import os

# Setting an environment variable
os.environ['OPENAI_API_KEY'] = ''


  • Add a new piece of information to storage
import cognee
cognee.add(absolute_data_path, dataset_name)
  • Use LLMs and cognee to create graphs
cognee.cognify(dataset_name)
  • Render the graph after adding your Graphistry credentials to .env
graph_url = await render_graph(graph, graph_type = "networkx")
print(graph_url)
  • Query the graph for a piece of information
query_params = {
    SearchType.SIMILARITY: {'query': 'your search query here'}
}
cognee.search(graph, query_params) 

Demo

Architecture

How Cognee Enhances Your Contextual Memory

Our framework for the OpenAI, Graph (Neo4j) and Vector (Weaviate) databases introduces three key enhancements:

  • Query Classifiers: Navigate information graph using Pydantic OpenAI classifiers.
  • Document Topology: Structure and store documents in public and private domains.
  • Personalized Context: Provide a context object to the LLM for a better response.

Image

cognee's People

Contributors

vasilije1990 avatar borisarzentar avatar burnash avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.