GithubHelp home page GithubHelp logo

shubham0204 / android-document-qa Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 1.0 97.23 MB

A custom RAG pipeline for multi-document QA from PDF/DOCX documents, in Android

License: Apache License 2.0

Kotlin 100.00%
android large-language-models on-device-ml question-answering retrieval-augmented-generation

android-document-qa's Introduction

github_banner

Shubham Panchal

Reach me at

Profiles

OSS Projects

Rust

  • text-predictor-android: Next word prediction and word auto-complete for Android - with the power of Rust
  • tfidf-summarizer.rs tfidf-text-summarizer downloads: Simple, efficient and cross-platform TFIDF-based text summarizer in Rust
  • postagger.rs postagger downloads: NLTK inspired Parts-of-Speech Tagger (Perceptron Tagger) in Rust
  • pq.rs: Pure Rust implementation of Product Quantization for Approximate Nearest Neighbor Search
  • diff-tool.rs: A simple terminal-based diff tool written in Rust

On-Device ML

Web

Backend

Data Structures / Algorithms

Kotlin/Android

Blogs

Google Colab Notebooks - Tutorials

Spotlight

Collaborations / Pull Requests

android-document-qa's People

Contributors

shubham0204 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dat0106

android-document-qa's Issues

Android 14 Issue

Seems like TextEmbedder causes the application to crash on Android 14

Question about the distance function

I'm seeing you are using the default distance function (Euclidean), as it is not specified:
@HnswIndex(dimensions = 100) var chunkEmbedding: FloatArray = floatArrayOf()

I'm not sure which embedding model you are using. In RAG, often Cosine is preferable. Or, if you know that vectors are normalized, you could use the faster DotProduct.

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.