Giter Site home page Giter Site logo

jamino30 / dandi-search-response-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 81.67 MB

Interactive UI to showcase and evaluate performance of Dandi Search

Home Page: https://llmsearch.dandiarchive.org/

License: MIT License

Python 30.97% HTML 10.81% JavaScript 10.89% CSS 5.41% Dockerfile 0.19% Jupyter Notebook 41.73%

dandi-search-response-ui's Introduction

Dandi Search UI

llmsearch.dandiarchive.org Push Docker image to ECR

image

Running Locally

  1. Create envfile.txt (in root directory) and fill with the following environment variables.
QDRANT_HOST=
QDRANT_PORT=
QDRANT_API_KEY=
OPENAI_API_KEY=
DANDI_API_KEY=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
  1. To launch the services in docker-compose.yml, execute the following:
docker compose up --build

Deployment

In order to deploy a new version, please invoke the deploy_new_version workflow with your desired branch in GitHub Actions.

Stress-testing

In order to stress test the app locally, we include a setup for Locust tooling.

Steps:

  1. Edit the stress-test/locustfile.py to reflect simulating endpoints that can be invoked via the Locust test
  2. Launch the Locust UI via docker-compose -f docker-compose.locust.yml up --scale worker=4 -- note: you may need to bring up/down the containers locally to enable hot-reloading in your locustfile.py

Purpose

  • Dandi's LLM-powered search enhances user experience by enabling precise retrieval of relevant dandisets based on scientific inquiries, surpassing basic text and semantic search methods
  • The Dandi Search Response UI empowers users to actively contribute to the evaluation of semantic search performance and the creation of valuable testing datasets for model assessment.
  • Through the optimization of semantic search performance and the identification of the most effective LLM-powered processes, an optimal search engine can be tailored for the Dandi Archive.

LLM Search Roadmap

Todo

  • Avoid showing a fixed number of dandisets (but place a limit) to allow for more accurate results/responses (e.g. no relevant dandisets, 2 relevant dandisets). There is no point in forcing a fixed number of dandisets if they have no relevance at all.
  • Allow users to upload their own Dandiset IDs that do not appear in the list (but may be relevant to the query or may seem like they are related to the query but are not).
  • Show confidence levels of dandisets chosen via similarity search (and place a threshold at which dandisets should be considered "relevant" or "not relevant").
  • Improve vector embeddings used for similarity search to allow for identification of dandisets relevant to scientific or quantatitve queries (e.g. "Show me dandisets that contain two or more species.")
  • Llama 2 for text embeddings (alongside ada-002)

dandi-search-response-ui's People

Contributors

jamino30 avatar aaronkanzer avatar

Watchers

 avatar

Forkers

aaronkanzer

dandi-search-response-ui's Issues

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.