Code Monkey home page Code Monkey logo

rag-arxiv's Introduction

Document Search/RAG System For Articles Published in arXiv

Small learning project in how to create a document search / RAG system for articles that are published in arxiv. I decided to everything from scratch for my own curiousity.

Setup

There are some environment variables that need to be set for the system to work.

  • ARXIV_RAW_DIR - where to store the raw data from the extraction step.
  • ARXIV_CLEAN_FP - where to store the cleaned file from the load step.
  • ARXIV_DOC_FP - where to store the documents from the transform step.

Data: ELT Pipeline

Extraction

Raw data is fetched from kaggle using the Kaggle Public API. You will need to get an API token store it at $HOME/.kaggle/kaggle.json. For more information see here under Getting Started: Installation & Authentication.

Code is in data/extraction directory. To run this step, run the data/extraction/extraction.sh script.

Load

The raw JSON downloaded in the previous stepped is transformed into a tabular format and cleaned up, to later be stored as a parquet file.

Transform

The relevant articles are filtered out and a column body is created in the format "{title}, written by {authors}, {abstract}" is created. This column is what is used for indexing later.

Vector Database

The vector database implementation can be found in db. This only really implements functionality for a vector database, storage is handled by the client.

Ingestion

Clustering & Topic Modelling

Querying

Demo Application

rag-arxiv's People

Contributors

ximonsson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.