GithubHelp home page GithubHelp logo

itsharex / ai-brainstore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mckaywrigley/ai-brainstore

0.0 0.0 0.0 554 KB

A proof-of-concept of a brain for an AI agent.

License: MIT License

TypeScript 100.00%

ai-brainstore's Introduction

AI Brainstore

This is a proof-of-concept of a brain for an AI agent.

See a demo.

AI BRAINSTORE

How It Works

Ask the agent a question.

If it knows the answer, then it will recall it from memory.

If it doesn't know the answer, then it will browse the web and learn about it.

As it learns, it will save its memories to its brain.

Running Locally

1. Clone Repo

git clone https://github.com/mckaywrigley/ai-brainstore.git

2. Install Dependencies

npm i

3. Configure Settings

Create a local .env file in the root of the repo with the following:

OPENAI_API_KEY=YOUR_KEY_HERE # required
DEFAULT_MODEL=gpt-3.5-turbo # or gpt-4
COLLECTION_NAME=ai-brainstore # name for your brainsstore
REVIEW_MEMORIES=true # false to disable
SERPAPI_API_KEY=YOUR_KEY_HERE # optional (works way better if used!)

4. Install & Run Chroma

This project uses a local Chroma instance as its vector database, but you can use any vector database you want.

Note: You will need Docker to run Chroma locally.

git clone https://github.com/chroma-core/chroma.git
cd chroma
docker-compose up -d --build

5. Run Script

npm run agent

6. Use It

You should now be able to interact with the agent via the terminal.

Contact

If you have any questions, feel free to reach out to me on Twitter.

ai-brainstore's People

Contributors

mckaywrigley avatar jayscambler avatar dskarasev 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.