Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/do-me/qdrant-frontend
A universal Qdrant table frontend based on transformers.js
https://github.com/do-me/qdrant-frontend
huggingface qdrant semanticsearch transformerjs transformers vectordb
Last synced: 5 days ago
JSON representation
A universal Qdrant table frontend based on transformers.js
- Host: GitHub
- URL: https://github.com/do-me/qdrant-frontend
- Owner: do-me
- License: mit
- Created: 2024-02-21T16:12:18.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-26T07:37:02.000Z (8 months ago)
- Last Synced: 2024-04-24T00:13:31.453Z (7 months ago)
- Topics: huggingface, qdrant, semanticsearch, transformerjs, transformers, vectordb
- Language: JavaScript
- Homepage: https://do-me.github.io/qdrant-frontend/
- Size: 2.17 MB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qdrant Frontend
A universal Qdrant table frontend based on transformers.js![Qdrant SDG snapshot in qdrant-frontend](https://github.com/do-me/qdrant-frontend/assets/47481567/92d58512-5aca-4b5d-a4f0-2708a20de871)
## Usage
Simply go to https://do-me.github.io/qdrant-frontend/ and type in your Qdrant URL:
- On localhost: http://localhost:6333/collections/yourcollection
- Remote connection: http://yourserver.com:6333/collections/yourcollection
In the latter case make sure that your reverse proxy (nginx, caddy etc.) is configured to allow CORS.Choose the model you used in the collection (unfortunately afaik there is no collectiopn metadata property for this yet) and decide whether you want to use smaller models (quantized) or larger but accurate models.
Enter your search query and a row limit.Note that you can just bookmark the URL so that all input fields are filled out for you next time!
## Idea
The model is loaded to your browser with transformers.js so your search query gets inferenced on the fly. The resulting vector is then used in the Qdrant search query.## Motivation
Qdrant's Web-UI is great but unfortunately it still requires an additional server for inferencing as Qdrant's fastembed is not yet integrated in a convenient way [1](https://github.com/qdrant/fastembed/discussions/117), [2](https://github.com/qdrant/qdrant-web-ui/issues/162). This static page is supposed to provide a minimalistic interface for quickly querying Qdrant collections.## Installation
If you want to develop or build locally clone the repo and run:
- `npm install`
- `npm run start` for development or
- `npm run build` for a local build resulting in an index.html and index.js file you can deploy anywhere.## To Do
- Improve UI
- Use Qdrant JS client instead of hardcoding the request
- Testing
- Add dimenstionality reduction feature based on bhtsne-wasm for the top results like in https://do-me.github.io/SemanticFinder/PR's very welcome!