Giter Site home page Giter Site logo

abhay-pratap12 / chino Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samad101/chino

0.0 0.0 0.0 1.81 MB

Chino is a terminal-based chatbot based on ChatGPT.

Home Page: https://pypi.org/project/chinoai/

License: MIT License

Python 100.00%

chino's Introduction

Chino ๐ŸŒธ

Chino is a terminal-based chatbot. Powered by OpenAI.
Uses RAG to generate responses based on user-provided documents.

Version License Commits Repo Size Code Size Code Style: Black

Material Bread logo


๐Ÿ Python Version Support

This project is designed to be compatible with specific versions of Python for optimal performance and stability.

Supported Python Version

  • Python 3.11.7

โ—๏ธ For the best experience and performance, it is recommended to use the version mentioned above.

Before diving into the project, ensure that you have the correct Python version installed. To check the version of Python you currently have, execute the following command in your terminal:

python --version

๐Ÿ Installing Python 3.11.7 with pyenv

Protip: Managing multiple Python versions is a breeze with pyenv. It allows you to seamlessly switch between different Python versions without the need to reinstall them.

If you haven't installed pyenv yet, follow their official guide to set it up.

Once you have pyenv ready, install the recommended Python version by running:

pyenv install 3.11.7

When you navigate to this project's directory in the future, pyenv will automatically select the recommended Python version, thanks to the .python-version file in the project root.

Installation ๐Ÿ› ๏ธ

Install using pip:

pip install chinoai

Build from source:

  • Clone the repository:

    git clone https://github.com/SAMAD101/Chino.git
  • Navigate to the project Directory:

    cd Chino
  • Install using:

    pip install .

๐Ÿ“ฆ Setup for development

Setting Up the Project for development

Contributing to the Project:

Refer to the Contributing Guide for detailed information on how to contribute to this project, including setup instructions for development. And also refer to the Code of Conduct for the community guidelines.

  • Fork the Repository:

    Get your own fork/copy of the project from GitHub by clicking the "Fork" button.

  • Clone the forked Repository

    git clone <your-fork-url>
  • Navigate to the Project Directory:

    cd Chino
  • Install the Project (from source):

    Use PDM to run the project:

    python3 -m pip install -e .
  • Install pre-commit hooks:

    pre-commit install
  • Run the project:

    chino --help

โš ๏ธ Note:

You will need an OpenAI API key to make it work. Get your API key from OpenAI website and set it as an environment variable:

export OPENAI_API_KEY="<your_api_key>"

Usage ๐Ÿ“–

Commands and options are available by running:

chino --help

For using the Retrieval Augmented Generation (RAG) features, follow these steps:

  1. You will need to put your documents in the ~/.local/share/chino/data directory. If not there, make one.

  2. Also,make sure you have a directory: ~/.local/share/chino/chroma. This directory will contain the OpenAI embeddings (embedding vectors) for the documents.

  3. Process the documents and create the embeddings using the following command:

    chino migrate

The directory data and chroma directories will be made more configurable in the future releases.

Using Query mode:

Once your documents are processed. You can use the query mode to give prompts for the documents [RAG]. Start Chino by running:

chino start

and use \q: before your prompt to use it in query mode.

chino's People

Contributors

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