Skip to main content

Chino 🌸

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

Version License GitHub Issues GitHub Pull Requests Commits Last Commit Contributors 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

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

Metadata

Release files for chinoai 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chinoai 1.0.0
File Size Uploaded
chinoai-1.0.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chinoai 1.0.0
File Interpreter ABI Platform
chinoai-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.1 kB

Release files / chinoai-1.0.0.tar.gz

Download URL chinoai-1.0.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d313fff40004a2d30030d7b86349ec83e519bd7c4213cfe4b98e72f376a02d70
BLAKE2b-256 checksum
How to use checksums
293145ac79f67045fe270a71de3977b99b5d9aa961871c735cbc9b01a5370e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release files / chinoai-1.0.0-py3-none-any.whl

Download URL chinoai-1.0.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fb3b12a202fe722b0fcf1406d1c17107a9da039ca4c34ec409e836c140edddf
BLAKE2b-256 checksum
How to use checksums
2cebfc04bf35ecb4e30903db3fb9a190a7a1afa4817d6a517a8507a2ecc0e56b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page