Skip to content
Saurab-ShresthaPublic

About

This is a Chat with pdf system using Llama Index, Ollama and Qdrant as vector store.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

LocalGPT

LocalGPT is a Retrieval-Augmented Generation (RAG) system built using LlamaIndex for managing documents, Ollama for language model inference, and Qdrant for vector-based search and retrieval. This project enables efficient, context-aware Q&A from your local document files using advanced LLMs and vector databases.

Table of Contents

Features

  • LlamaIndex Integration: Enables document ingestion, chunking, and semantic search for relevant information.
  • Ollama for LLM Inference: Use locally hosted Llama models through Ollama API for language generation tasks.
  • Qdrant Integration: Fast and efficient vector-based search using Qdrant for document indexing and retrieval.
  • Gradio Interface: Simple web interface for uploading documents, interacting with the chatbot, and retrieving answers from your knowledge base.

Requirements

  • Docker (if using Docker-based installation)
  • Python 3.8 or later (for manual setup)
  • Qdrant: Vector database, preferably running on localhost.
  • Ollama: For local Llama-based models.
  • Gradio: Web UI for interacting with the chatbot.

Installation

  1. Clone the Repository:
   git clone https://github.com/Saurab-Shrestha/LocalGPT.git
   cd localgpt
  1. Create a Virtual Environment:
   python3 -m venv env
   source env/bin/activate
  1. Install Python Dependencies:
   pip install -r requirements.txt
  1. Install and Run Qdrant:
docker run -p 6333:6333 qdrant/qdrant
  1. Install and Configure Ollama: Install and Configure Ollama: Follow Ollama installation instructions for your operating system.

  2. Run the Application:

gradio app.py

Usage

Configuration

Before running the app, you need to configure the settings for the LLM, Qdrant and the other services.

  1. Edit the Configuration File: Update the config.py file to specify the correct host, port and model setting for you setup.
  2. Model Configuration: Make sure you have your LLM model and embedding running in the Ollama, configured as per you needs.

About

This is a Chat with pdf system using Llama Index, Ollama and Qdrant as vector store.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages