Giter Club home page Giter Club logo

memorai's Introduction

MemorAI

MemorAI is a conversational AI chatbot that uses its memory to provide more context-aware and personalized responses. By leveraging OpenAI's GPT-4, MemorAI can store and recall information from previous interactions to enhance the user experience.

Features

  • Context-aware conversation using stored memory
  • Utilizes GPT-4 for natural language understanding and generation
  • Extensible memory storage system with support for Pinecone and Weaviate databases
  • Easy to use and interact with through a simple command-line interface

Getting Started

Prerequisites

  • Python 3.8 or higher
  • An API key for OpenAI's GPT-4
  • Either a local Weaviate DB or a Pinecone API key

Installation

  1. Clone the repository:
git clone https://github.com/your-username/MemorAI.git
  1. Change to the MemorAI directory:
cd MemorAI
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Rename Config.example.py to Config.py and configure API keys:
OPENAI_API_KEY = "your_openai_api_key"
PINECONE_API_KEY = "your_pinecone_api_key" # Only required for BRAIN_TYPE="Pinecone"

# Choose between 'Pinecone' and 'Weaviate'
BRAIN_TYPE = "Pinecone"

# Pinecone settings
PINECONE_ENVIRONMENT = "your_pinecone_environment" # Only required for BRAIN_TYPE="Pinecone"

# Weaviate settings
WEAVIATE_URL = "your_weaviate_url"

Usage

  1. Run the main script:
python Main.py
  1. Interact with MemorAI using the command-line interface:
User: Hi, my name is Christopher. Nice to meet you!
MemorAI: Hello Christopher, it's nice to meet you too! How may I assist you today?
  1. MemorAI will learn from conversation and will remember details between sessions.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

OpenAI for providing the GPT API Weaviate and Pinecone for their vector database software and services.

memorai's People

Contributors

cj1m avatar

Stargazers

 avatar

Watchers

 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.