Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🚀 VectorDB Engine: From-Scratch Indexing & Local RAG Visualizer

Python Version Framework Local AI License

An advanced, full-stack Vector Database, Semantic Search, and RAG Engine built entirely from scratch. This project features an interactive custom UI dashboard that visualizes high-dimensional embeddings mapped into a 2D PCA spatial layout, coupled with an active local LLM pipeline.


🌟 Core Highlights

  • From-Scratch Multi-Algorithm Indexing:
    • HNSW (Hierarchical Navigable Small World): Custom multi-layer proximity graph construction for fast approximate nearest neighbor retrieval.
    • KD-Tree: Dimensional space-partitioning tree built for precise spatial coordinates.
    • Brute Force: Pure linear scan mapping exact KNN baselines to dynamically audit benchmark performance.
  • Vector Metrics Support: Flexible metric evaluation via Cosine Similarity, Euclidean Distance, and Manhattan Distance.
  • Real-time 2D PCA Projection: High-dimensional vectors (up to 768D from Ollama) are dynamically projected using Principal Component Analysis down to a stunning 2D interactive canvas.
  • Production-Grade Local RAG: Fully functional Document Chunking, Embedding Creation (nomic-embed-text), and Question Answering pipeline powered safely on-device by llama3.2:1b.

🏗️ System Architecture

graph TD
    A[User UI Dashboard] -->|1. Raw Query / Document| B(Flask Backend)
    B -->|2. Get Embeddings| C[Local Ollama Instance]
    C -->|3. Return Vectors| B
    B -->|4. Index / Search| D{Vector Storage}
    D -->|HNSW Graph| E[Results & Latency Metrics]
    D -->|KD-Tree / BruteForce| E
    E -->|5. 2D PCA Projection Data| A
Loading

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages