Giter Club home page Giter Club logo

ghost's Introduction

Ghost

Ghost is a small footprint AI assistant, built to run locally in your computer. It is meant as an interface for developers and everything is minimal and can be changed easily to suit your personal needs.

Ghost AI code assistant that runs on your laptop

Ghost AI code assistant that runs on your laptop

Ghost refactoring itself!

Ghost refactoring itself!

Ghost searching on the Internet

Ghost searching on the Internet

Ghost is written using Langchain and has configured the following tools by default:

  1. Python REPL Tool
  2. Shell Tool
  3. DuckDuckSearch Tool
  4. Requests tool

It is also configured for several ChatGPT Plugins. Please check the tools.py file for more details.

It is fully customisable and extensible. In fact, while Ghost can be used out-of-the-box, it is meant to be customised for your own personal usage and style. Feel free to add or remove tools accordingly or change everything to what you want!

Setup

After you have clone the repo, rename the .env.example file to .env and provide the necessary API key and other information from your provider.

Then set up the packages needed to run Ghost with pip.

$ pip install -r requirements.txt

You can consider setting up its own environment using Conda or pyenv or any of these similar tools.

Then you can run the app by doing this at the command line:

$ python ghost.py

Ghost specifications

You can change how Ghost behaves by changing specs.md or pointing the specs to a different file in the .env file. The specifications determine how Ghost will react to your prompts.

Google VertexAI

Ghost can also work with Google Cloud Platform (GCP) Vertex AI PaLM. GCP offers an enterprise version of PaLM through Vertex AI. The following instructions assumes you already have an account that has the necessary credentials to use Vertex AI.

To use Google Cloud Platform Vertex AI PaLM you can do the following:

  1. If you don't already have the gcloud command-line interface (CLI), you can install it by following instructions here https://cloud.google.com/sdk/docs/install
  2. Once you have gcloud, run this command in the command line
$ gcloud auth application-default login
  1. This will open up a browser for you to log into the account with the credentials to access Vertex AI. Follow the instructions and click through to login and approve.
  2. Once you you're done, an application_default_credentials.json file wil be created at the default location. Ghost will know how to locate this file (it's just using Google's default location to find it) to log into Vertex.

Saving output

By default, Ghost saves all your output to markdown format in a file named output.md. You can change it in the .env file.

ghost's People

Contributors

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