Skip to content

A lightweight interactive AI app built with Chainlit and powered by the Mistral 7B language model. Designed for flexible experimentation and rapid prototyping.

License

Notifications You must be signed in to change notification settings

edcalderin/mistral-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MistralChain

A lightweight interactive AI app built with Chainlit and powered by the Mistral 7B language model. Designed for flexible experimentation and rapid prototyping.

Chat Screenshot 1 Chat Screenshot 2

Features

🧠 Powered by the open-source Mistral 7B model

⚡ Rapid prototyping via Chainlit UI

💬 Interactive chat-based interface

🧪 Ideal for testing and integrating custom prompts or workflows

🧼 Includes linting tools for clean and consistent code

Installation

1. Clone the repository

git clone https://github.com/edcalderin/mistral-chain.git
cd mistral-chain

2. Create and activate the Poetry environment

# Create the env directory within the project
poetry config virtualenvs.create false --local

# Create a new Poetry environment
poetry install --no-root

# Activate the environment
poetry env activate

3. Verify the installation

# Verify that the environment is active
poetry env info

# The activated environment should appear first.

Usage

Run

python -m chainlit run src/chainlit.py

Lint

Style the code with Ruff:

ruff format .
ruff check . --fix

Removing the environment

When you're done working on the project, remove the Poetry environment:

poetry env remove

Optional

Remove the downloaded model from your system.

  • Go to .cache/huggingface/hub/ and delete the model directory.

Acknowledgments

Thanks to the Medium community, Chainlit contributors, and the open-source ML ecosystem that enables continuous learning and innovation.

Contact

LinkedIn: https://www.linkedin.com/in/erick-calderin-5bb6963b/
e-mail: [email protected]

Enjoyed this content?

Explore more of my work on Medium

I regularly share insights, tutorials, and reflections on tech, AI, and more. Your feedback and thoughts are always welcome!

About

A lightweight interactive AI app built with Chainlit and powered by the Mistral 7B language model. Designed for flexible experimentation and rapid prototyping.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages