Matrix Applications in NLP: Vector Databases Simplified with FAISS and GRADIO

Authors

  • Madhavilata Mangipudi Department of Humanities and Mathematics, G. Narayanamma Institute of Technology and Science (For Women), Shaikpet, Hyderabad, Telangana, 500104, India. Author
  • Uma Iyer epartment of Humanities and Mathematics, G. Narayanamma Institute of Technology and Science (For Women), Shaikpet, Hyderabad, Telangana, 500104, India. Author
  • Bavandla Prahasya Sri epartment of Humanities and Mathematics, G. Narayanamma Institute of Technology and Science (For Women), Shaikpet, Hyderabad, Telangana, 500104, India. Author
  • Sai Sri Aishwarya Venkatesh epartment of Humanities and Mathematics, G. Narayanamma Institute of Technology and Science (For Women), Shaikpet, Hyderabad, Telangana, 500104, India. Author

DOI:

https://doi.org/10.47392/IRJAEH.2025.0560

Keywords:

Natural Language Processing, Gradio, FAISS, Linear Algebra, Vector Database

Abstract

Vector Databases (VDBs) are now an essential building block in Natural Language Processing (NLP), facilitating the efficient storage and retrieval of high-dimensional semantic embeddings. Linear algebra is at the core of these systems, where matrix operations form the basis of embedding creation, similarity computation, and indexing. We discuss the mathematical underpinnings of VDBs from a matrix-based formulation in this paper. We show how similarity measures like cosine similarity

mceclip1.png

 and distance metrics like Euclidean and Mahalanobis distances drive nearest-neighbor retrieval. With FAISS for indexing and Gradio for prototyping, we introduce a comparative examination of exact vs. approximate search approaches in NLP retrieval tasks. Our work is a hybrid approach that unites mathematical precision with practical assessment, closing the gap between abstract matrix derivations and interactive use of VDBs.

Downloads

Download data is not yet available.

Downloads

Published

2025-10-01

How to Cite

Matrix Applications in NLP: Vector Databases Simplified with FAISS and GRADIO. (2025). International Research Journal on Advanced Engineering Hub (IRJAEH), 3(10), 3857-3861. https://doi.org/10.47392/IRJAEH.2025.0560

Similar Articles

41-50 of 294

You may also start an advanced similarity search for this article.