β’ Presentation: https://nst-ai.aryanvbw.live/
β’ Demo video: https://youtu.be/PgualJtHqiE
Welcome to NST AI β your AI-powered study buddy designed specifically for Newton School of Technologies! With NST AI, you can ask questions, summarize lectures, and interact with your notes offline using state-of-the-art language models like Mistral 7b LLM and Nomic Embed Text. Follow the steps below to set up NST AI on macOS.
- π¬ Ask AI Anything: Get instant answers to questions about your lectures and notes.
- π Summarize Notes: Automatically summarize classes, lectures, and key study topics.
- π Offline Access: Access powerful LLM capabilities without an internet connection.
Before you start, make sure the following are installed on your Mac:
- π Python 3.11 Download here
- πΊ Homebrew Install Homebrew
Follow these steps to install and set up NST AI:
First, update pip
to the latest version:
pip install pip --upgrade
Install Poetry to manage project dependencies:
pip install poetry
poetry --version
- Visit Ollamaβs official website and download the macOS version.
- After downloading, unzip the file, open it, and follow the instructions to move Ollama to your Applications folder.
- Important: Quit Ollama from the taskbar by selecting Quit Ollama.
NST AI uses Mistral 7b LLM and Nomic Embed Text models for offline functionality. Pull these models with:
ollama pull mistral
ollama pull nomic-embed-text
Start the Ollama service:
ollama serve
Step 6: π οΈ Install Ollama LLM with Poetry
In a new terminal window, install NST AIβs dependencies:
poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"
To start NST AI, use:
PGPT_PROFILES=ollama make run
Access NST AI in your browser at http://localhost:8001.
π Troubleshooting
β’ π’ Slow CPU or GPU Issues:
If NST AI is slow or if you experience GPU issues, modify the timeout setting:
Open components/llm/llm_component.py
and add:
request_timeout=300
π₯ Video Tutorial
π Final Note
NST AI is here to enhance student learning at NST, making studying easier and more efficient. If you have any questions or need assistance, feel free to reach out. Enjoy exploring the world of personalized AI learning! π