Giter Site home page Giter Site logo

everyoneisgross / mnemosynebot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

a simple offline chat agent with dynamic contextual memory recall and "forgetting".

Python 100.00%
chatbot-framework cognition embedding-vectors gpt4all gpt4all-api philosophy philosophyofmind ai

mnemosynebot's Introduction

mnemosyneBOT

==============================

Mnemosyne

mnemosyneBOT, inspired by the Greek goddess of memory, is a sketch of a conversational agent using local GPT4ALL. It manages conversational context by integrating sentiment analysis and a memory decay mechanism. This allows it to gauge the vibe of user input and prioritize interactions based on their emotional significance and temporality. The bot's approach aims to create a more human-like conversational experience, viewing conversations as emotional narratives influenced by time, rather than isolated exchanges. This was just me following an idea until I had it run while getting my own memory aligned to the idea of vectors. ๐Ÿ“Ž๐Ÿง ๐Ÿ’…

Features


mnemosyneFLOW py

Memory Decay Mechanism:

The agent uses a decay function to give more weight to recent interactions and reduce the influence of older interactions. This simulates the concept of "forgetting" in human memory, ensuring that the agent's responses are more aligned with recent context.

Sentiment-Based Context Selection:

Depending on the sentiment of the user's input, the agent chooses between different methods to retrieve relevant conversational context. This ensures that the agent's responses are more emotionally attuned to the user's sentiments.

Embedding & Data Handling:

The agent uses TF-IDF Vectorization to convert text data into embeddings. These embeddings are then used to calculate similarities and retrieve relevant conversational contexts.

History Handling:

The agent maintains a history of recent interactions to avoid repetitive responses and to provide contextually relevant answers.

Data Persistence:

Embeddings, vectorizers, and interaction data are persistently stored in files, allowing the agent to maintain its state across sessions.

GPT4ALL Integration:

The agent is built on top of the GPT4ALL python api, using a local model.

mnemosynebot's People

Contributors

everyoneisgross 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.