Giter Site home page Giter Site logo

brainbridge's Introduction

BrainBridge: A Neural API CLI ๐Ÿง ๐ŸŒ‰

BrainBridge seamlessly connects you to advanced neural models directly from your command line. It's designed for single and multi-turn interactions, saving conversations as you go, allowing you to maintain the context of your chats.

Directory Structure

brainbridge/
โ”‚
โ”œโ”€โ”€ brainbridge/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ””โ”€โ”€ brainbridge.py
โ”‚
โ”œโ”€โ”€ setup.py
โ””โ”€โ”€ README.md

Features

  1. Command Line Interface: Directly interact with the neural models from your terminal.
  2. Maintain Conversations: Hold multi-turn interactions, capturing and extending from previous messages.
  3. Easy Integration: Perfect for integrating with other tools and scripts. Easily capture outputs using standard command-line operations.

Installation

To install BrainBridge, clone the repo and use pip:

git clone https://github.com/m-c-frank/brainbridge
cd brainbridge
pip install .

Usage

First Interaction

brainbridge "Who won the world series in 2020?" > conversation.json

This saves the entire conversation, including the system message, into conversation.json.

Subsequent Interactions

Use the saved conversation.json for context in your following questions:

brainbridge "Where was it played?" --conversation "$(cat conversation.json)" > conversation.json

This appends the latest interaction to conversation.json, ensuring you maintain the context of your conversations.

Configuration

Before you begin, make sure you've set up the API in your environment variable

Or just replace 'YOUR_API_KEY' with your actual API key.

Contributions & Feedback

We welcome contributions and feedback on how to improve BrainBridge. Please open an issue or submit a PR on our GitHub repository.

Licence

Check out the GOS licence in this project.

brainbridge's People

Contributors

m-c-frank 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.