Loading repository data…
Loading repository data…
extrawest / repository
This repository contains a collection of demonstration projects showcasing various capabilities and applications of LlamaIndex, a powerful data framework for building LLM applications with custom data. Each tutorial focuses on a specific aspect of LlamaIndex functionality, ranging from basic usage to advanced features like RAG, chatbots, etc.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This repository contains a collection of demonstration projects showcasing various capabilities and applications of LlamaIndex, a powerful data framework for building LLM applications with custom data. Each tutorial focuses on a specific aspect of LlamaIndex functionality, ranging from basic usage to advanced features like RAG (Retrieval Augmented Generation), chatbots, and function-calling agents.
A minimal introduction to LlamaIndex's core functionality.
🧠 What You'll Learn:
⚙️ How to Run:
# Install dependencies
pip install -r simple_demo/requirements.txt
# Create a data directory and add some text files
mkdir -p data
# Add some text files to the data directory
python simple_demo/llama_index_simple_demo.py
📦 Dependencies:
Requirements are specified in simple_demo/requirements.txt:
llama-index>=0.9.48
llama-index-core>=0.9.48
llama-index-readers-file>=0.1.0
python-dotenv>=1.0.0
pathlib>=1.0.1
This tutorial demonstrates how to create a RAG system using locally running open-source models.
🧠 What You'll Learn:
📁 File Structure:
llama_rag_system.py: RAG implementation with file-based storagellama_rag_system_psql.py: RAG implementation with PostgreSQL vector storerequirements.txt: Dependencies list⚙️ How to Run:
# Install dependencies
pip install -r rag_system/requirements.txt
# First download the Mistral model
mkdir -p ../llm
# Download Mistral model to ../llm/mistral-7b-instruct-v0.1.Q2_K.gguf
# For file-based storage
mkdir -p ../data ../index
# Add PDF files to ../data directory
python rag_system/llama_rag_system.py
# For PostgreSQL-based storage (requires PostgreSQL running)
# Ensure PostgreSQL is running with the right credentials
python rag_system/llama_rag_system_psql.py
📦 Dependencies:
Requirements are specified in rag_system/requirements.txt:
# Core dependencies
transformers>=4.37.0
torch>=2.1.0
llama-index>=0.9.48
llama-index-core>=0.9.48
llama-cpp-python>=0.2.23
sentence-transformers>=2.2.2
llama-index-embeddings-huggingface>=0.1.0
# PostgreSQL support (for llama_rag_system_psql.py)
psycopg2-binary>=3.2.0
sqlalchemy>=2.0.27
llama-index-vector-stores-postgres>=0.1.0
# Optional utilities
tiktoken>=0.5.2
python-dotenv>=1.0.0
pathlib>=1.0.1
tqdm>=4.65.0
This tutorial demonstrates how to build an interactive chatbot that can analyze multiple documents and answer questions using OpenAI models.
🧠 What You'll Learn:
📁 File Structure:
llama_chatbot.py: Complete chatbot implementationrequirements.txt: Dependencies list⚙️ How to Run:
# Install dependencies
pip install -r chatbot/requirements.txt
# Create necessary directories
mkdir -p ../data ../storage
# Add HTML files named UBER_YYYY.html to the data directory
# (Where YYYY represents years like 2019, 2020, 2021, 2022)
# Set your OpenAI API key
export OPENAI_API_KEY="your-api-key-here"
# Run the chatbot
python chatbot/llama_chatbot.py
📦 Dependencies:
llama-index>=0.10.0
llama-index-core>=0.10.0
llama-index-readers-file>=0.1.0
llama-index-embeddings-openai>=0.1.0
llama-index-agent-openai>=0.1.0
llama-index-llms-openai>=0.1.0
llama-index-question-gen-openai>=0.1.0
unstructured>=0.10.0
python-dotenv>=1.0.0
tqdm>=4.66.2
numpy>=1.26.4
This tutorial demonstrates how to build an AI agent with function-calling capabilities using Mistral AI and LlamaIndex.
🧠 What You'll Learn:
📁 File Structure:
llama_function_calling.py: Complete function-calling agent implementationrequirements.txt: Dependencies list⚙️ How to Run:
# Install dependencies
pip install -r function_calling/requirements.txt
# Set your Mistral API key
export MISTRAL_API_KEY="your-mistral-api-key-here"
# Create data directory structure
mkdir -p data/10k
# Add Uber 10-K PDF to data/10k/uber_2021.pdf
# Run the function calling agent demo
python function_calling/llama_function_calling.py
📦 Dependencies:
llama-index>=0.10.0
llama-index-core>=0.10.0
llama-index-llms-llama-cpp>=0.4.0
llama-index-llms-mistralai # Not listed but required
llama-index-embeddings-mistralai # Not listed but required
transformers
torch
numpy>=1.26.4
tqdm>=4.66.2
python-dotenv
🐍 Python Environment:
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
📥 Install the base dependencies:
pip install llama-index python-dotenv
🧩 Model Setup:
📊 Data Preparation:
📂 Directory Structure:
Developed by extrawest. Software development company