Giter Club home page Giter Club logo

ai-companion's Introduction

AI companion

Currently, the project is being rewritten, version 0.9.8, is still based on the previous code

logo

License Downloads

AI Companion is a project that aims to provide users with their own personal AI chatbot on their computer. It allows users to engage in friendly and natural conversations with their AI, creating a unique and personalized experience. This software can also be used as a backend or API for other projects that require a personalised AI chatbot.

Features

  • works locally - does not require API keys for other services, which makes it completely free to use (well, apart from electricity costs - your computer must work somehow), also does not require the Internet to work
  • privacy - all conversations are kept locally in the SQLite database, which means that your conversations or the characteristics of your AI stay only on your computer
  • API - you can use it as a backend for your other projects that requires LLMs, custom ai chatbots or custom ai characters
  • speed - wrote in Rust shows good efficiency when it comes to CPU (nothing slows your generation) and RAM (you don't need to use weaker ai models)
  • ease of use - everything can be changed in web user interface, and everything is compiled into a single binary file that can be launched on your machine (no need for playing with hundreds of confusing files, and no need to fight with wrong library/interpreter/framework versions)
  • customization - you can change the AI's name, personality, appearance and the first message sent. Also short term and long term memory of ai can be modified
  • short-term memory - artificial intelligence remembers recently received/sent messages
  • long-term memory - AI can remember conversations even thousands of prompts later using long-term memory - associating things with different words, phrases or sentences
  • real-time learning - when chatting with the AI, it is able to create "memories" as well as learn about the people it chats with (what their profession is, what they like to eat, drink and so on)
  • feeding ai with custom data - using the API, it is possible to save to the AI's long-term memory, e.g. fragments of documents, articles, song lyrics, poems
  • roleplay - ai chatbot can (if enabled) perform actions between asterisks (*) e.g. moves closer, waves hello
  • you can load character files in .json or .png (character cards) format. For example, you can create your own here
  • import and export messages via json
  • you can use {{char}} and {{user}} in companion's persona, example dialogue, first message and user persona (if you change username or companion name, you don't need to change these, it will automatically change)

API documentation

API documentation can be found here

Projects based on ai-companion Backend/API/Library

Use as python library (Deprecated)

If you are looking for a Python library that allows you to use the ai-companion backend in your projects, it is available here ai-companion-py

installation

Recommended

go to https://github.com/Hukasx0/ai-companion/releases/tag/0.9.8 and depending on your system select download_linux.sh or download_windows.bat, after running the script, all files will be downloaded and placed in the correct folders

Manual installation

create a folder AI_companion, navigate to it, then install AI_companion or AI_companion.exe (depending on your system), then create a folder 'models/' and put AI model there, on linux that's it, on windows you still need: download sqlite from here and extract in the same folder where AI_companion.exe is located

Supported AI models

small list of tested and working AI models:

  • Only GGUF models are supported

Compilation from source code:

To build an executable file you need: Node.js and npm, Rust and cargo

make a git clone of the repository:

git clone https://github.com/Hukasx0/ai-companion

go to the folder

cd ai-companion/

install node modules

npm i

compile everything into one binary

npm run build-full

(after compilation the binary should be in ai-companion/backend/target/release)

and then proceed the same as for manual installation

ai-companion's People

Contributors

hukasx0 avatar dependabot[bot] avatar

Stargazers

 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.