Skip to content

Brainloop is using LLM from multiple providers to enhance human brain with external memory looped into your internal ones

License

Notifications You must be signed in to change notification settings

slaveOftime/Brainloop

Repository files navigation

Brainloop 🧠⇄💻

License: MIT Version

Create intelligent loops that combine LLM reasoning with actionable tools to amplify your brain.

Simple but powerful patterns to get things done with LLMs:

  1. Support LLM models from OpenAI, Ollama, Google, MistralAI, HuggingFace.
  2. Integrate tools from build in functions, OpenApi or MCP.
  3. Define any agents: prompt + models + tools
  4. Create loops to invoke agent to do something

brainloop screenshot

There are the video links for the demo

How to Use

  • download binaries to run directly on Windows/Mac/Linux from releases

    Unzip it and find file Brainloop to run it.

    Below is the default configuration (appsettings.Production.json) which is using SqlLite for data and memory vector embedding, but you can open it and modify it accordingly:

    {
        "HTTP_PORTS": 11435,
        "AppOptions": {
            "DataDbProvider": "SqlLite",
            "DataDbConnectionString": "Data Source=brainloop.db",
            "VectorDbProvider": "SqlLite",
            "VectorDbConnectionString": "Data Source=brainloop.db",
            "VectorCollectionName": "memory"
        }
    }

    For Qdrant, the "VectorDbConnectionString" can be "Endpoint=http://xxx;Key=xxx" or just "http://xxx" if it has no api key required

    After it run, you just access the url with the port in you in the config file like "http://localhost:11435" with your browser.

  • docker host, from the root dir run:

    docker compose build
    docker compose up -d

🧩 Ecosystem Integration

Component Supported Providers
Storage MsSqlServer, PostgreSQL, SqlLite
Vector DBs MsSqlServer, PostgreSQL, SqlLite, Qdrant
LLMs OpenAI, Ollama, Google, MistralAI, HuggingFace
MCP SSE, STDIO

⚒️ Build in functions

  • Get current time
  • Render html string in iframe
  • Send http request
  • Search memory by natural language
  • Read uploaded document as text
  • Execute command
  • Create a task for a specific agent
  • Create a task scheduler for a specific agent

Local dev requirements

  • dotnet 9 SDK
  • VSCode (+ extension: Ionide for F#) or VS2022 above

You can run (posgres for data + qdrant for vector):

dotnet run --project ./Brainloop.DevHost/Brainloop.DevHost.csproj

Or you can run directly (sqlite for data and vector) if you do not want to use docker:

dotnet run --project ./Brainloop/Brainloop.fsproj

About

Brainloop is using LLM from multiple providers to enhance human brain with external memory looped into your internal ones

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published