A lightweight interactive AI app built with Chainlit and powered by the Mistral 7B language model. Designed for flexible experimentation and rapid prototyping.
🧠 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
git clone https://github.com/edcalderin/mistral-chain.git
cd mistral-chain# 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# Verify that the environment is active
poetry env info
# The activated environment should appear first.Run
python -m chainlit run src/chainlit.pyStyle the code with Ruff:
ruff format .
ruff check . --fixWhen you're done working on the project, remove the Poetry environment:
poetry env removeRemove the downloaded model from your system.
- Go to
.cache/huggingface/hub/and delete the model directory.
Thanks to the Medium community, Chainlit contributors, and the open-source ML ecosystem that enables continuous learning and innovation.
LinkedIn: https://www.linkedin.com/in/erick-calderin-5bb6963b/
e-mail: [email protected]
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!

