Git Product home page Git Product logo

helpai's Introduction

HelpAI Command Line Tool

Overview

HelpAI is a command-line interface tool designed to interact with an AI language model. It is specifically configured to work with the 'llm' command and the 'mistral-7b-openorca' model. The tool is intended for a Linux x64 environment and offers a streamlined interface for AI interactions.

Key Features

  • Contextual Interaction: Maintains a history of user prompts and AI responses to provide context for subsequent interactions.
  • History Management: Supports commands to reset the interaction history and enable debug mode.
  • Markdown Output: Dynamically generates a Markdown file from the dialogue history for easy reading and sharing.
  • Character Handling: Manages special characters to ensure the integrity of prompts and responses.
  • Performance Metrics: Measures and displays the response time of the AI model.

Usage

Compile helpai.cs into a standalone executable and run it from the command line. The tool accepts the prompt for the AI as an argument.

Command Line Options

  • -r or --reset: Resets the interaction history.
  • -d or --debug: Enables debug mode to output additional information.

Example

./helpai "What is the capital of France?"
./helpai -r "Start a new session"
./helpai -d "Debug mode example"

Implementation Details

  • History File: Exchanges (prompts and responses) are stored in a text file to provide context to the AI model.
  • Character Limit: The history file is trimmed if it exceeds a specified character limit to prevent buffer overflow.
  • Special Character Handling: Ensures prompts and responses are free from syntax or format issues.
  • Markdown Formatting: Creates a readable transcript in Markdown format, with appropriate formatting for various elements.

Author

Nicolas Pepin

Date

2023

Version

1.0

Note

Ensure that the 'llm' command and the 'mistral-7b-openorca' model are properly configured and accessible in the environment where this tool is executed.

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.