How to Fix a Stretched Camera Preview in Flutter on Rotation

thumb cloudinary start fixed 3

Are you experiencing a stretched or distorted camera preview in your Flutter app when the device rotates, even though you’re only supporting portrait mode? This is a common issue when using the camera package. This article provides a practical solution to lock the camera orientation and prevent unwanted stretching. Understanding the Problem The camera package, … Read more

Host Your Own LLM Using Gradio and Ollama

image

In this tutorial, we’ll walk through the process of creating a chat interface using Gradio and Ollama to interact with a large language model (LLM). Gradio is a Python library that allows you to quickly create user interfaces for machine learning models, while Ollama is a tool that simplifies the deployment and management of LLMs. … Read more

Error: Building wheel for llama-cpp-python

error: subprocess-exited-with-error × Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.│ exit code: 1╰─> [128 lines of output] This solution worked for my case. My System is Linux. No GPU. pip install –no-cache-dir llama-cpp-python==0.2.85 –extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu122 Github Link Also Consider this solution if this doesn’t work. Github Link

Error: Externally Managed Environment

This error occurs because your Python environment is externally managed, meaning the system Python installation is protected to prevent breaking critical dependencies. Solution 1: Use a Virtual Environment (Recommended) Either Venv or Conda. Virtual environments ensure: Using virtual environments is the safest and most flexible way to manage Python dependencies. Solution 2: Verify Correct Pip … Read more

Deploy LLM in HuggingFace Spaces For Free Using Ollama

In this tutorial, we’ll explore how to deploy Large Language Models (LLMs) for free using Ollama and LangChain on Hugging Face Spaces. This approach allows you to leverage powerful language models without the need for expensive GPU resources or complex infrastructure. Prerequisites Step 1: Setting Up the Project First, let’s create our project structure: Step … Read more

Building a RAG-based CLI Chatbot System: LlamaIndex & Qdrant

image

In this article, we’ll walk through the process of building a Retrieval-Augmented Generation (RAG) based Command-Line Interface (CLI) Chatbot System using the LlamaIndex framework. This system allows users to interact with a chatbot that can answer questions based on a corpus of documents, utilizing advanced natural language processing techniques. Table of Contents 1. Introduction to … Read more

AWS BedRock Claude API Tutorial

image

Amazon Bedrock is a fully managed service that offers a choice of high-performing foundation models, including Claude, via a single API, along with a broad set of capabilities you need to build generative AI applications with security, privacy, and responsible AI. Claude AI is a powerful large language model developed by Anthropic. With its impressive … Read more

Chat With YouTube Videos Using LlamaIndex

In this article, we are using the LlamaIndex to chat with YouTube videos. LlamaIndex is a data framework for Large Language Models (LLMs) based applications that allow users to ingest data from various sources such as APIs, databases, PDFs, and more via flexible data connectors. This data is indexed into intermediate representations, which are numerical … Read more

Chat With Your Website Using Langchain

image 8

Imagine chatting with a website to extract information, similar to conversing with a human. This is where LangChain comes into play. LangChain is a powerful tool for natural language processing (NLP), enabling AI-based conversational interfaces. In this article, we’ll explore how to use LangChain to create a chat interface that interacts with content extracted from … Read more

Exploring Sentiment Analysis with Nepali Text

image 4

Sentiment analysis, a crucial component of natural language processing (NLP), has seen exponential growth in its applications, spanning from understanding customer feedback to social media monitoring. In this blog, I delve into a project that tackled sentiment analysis of Nepali text, illustrating the process, challenges, and achievements along the way. Background Nepali, an Indo-Aryan language, … Read more