Requirements: apt update && apt install python3-pip -y mkdir llm-chatbot cd llm-chatbot cat >requirements.txt <<EOF transformers==4.48.3 torch==2.6.0 accelerate==1.4.0 einops==0.8....
Requirements: apt update apt install python3-pip -y cat >requirements.txt <<EOF transformers==4.48.3 torch==2.6.0 accelerate==1.8.1 einops==0.8.1 jinja2==3.1.6 EOF pip install -r requireme...
Building a Speech To Text System Requirements To convert speech to text, the two most important libraries we need are: torch transformers And to load an audio file, we will need the soundfi...
FuzzAI The tool implements various attack techniques to test how LLMs respond to adversarial prompts, including: Taxonomy-based paraphrasing - Using persuasive language techniques to bypass sa...
Text Classification Text classification is the task of assigning a label or category to a piece of text, such as an email, document, or sentence. In Natural Language Processing, text classification...
Requirements: apt update && apt install python3-pip -y cat >requirements.txt <<EOF transformers==4.48.0 torch==2.6.0 accelerate==1.8.1 einops==0.8.1 jinja2==3.1.6 EOF pip install -...
pytest-evals Powerful testing framework designed specifically for AI model evaluation. We’ll implement a mock LLM system to enable testing without requiring external API keys. As AI models become i...
Text Classification A Retrieval Augmented Generation system usually works on top of an LLM, with additional documents, so it can answer user queries based on the content present inside the document...
Simple Scrapper import requests import sys from bs4 import BeautifulSoup def scrape(url, max_chars): response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') ...
Understanding the Ollama API Ollama provides a simple REST API accessible at http://localhost:11434/api. The main endpoints include: /api/generate - Generate text from a prompt /api/chat - H...