A basic utility for uploading images and conducting similarity searches in the Weaviate database, serving as a practical example of its use.
yarn && yarn build
docker-compose up
yarn upload-memes
Here's a brief explanation of the scripts defined in the package.json
:
-
dev
: This script watches for changes in thesrc/main.ts
and builds it without creating source maps. It cleans the build directory before starting the build. -
build
: This script builds the production version of the application. It cleans the build directory, compiles thesrc/main.ts
into JavaScript, minifies the result, and stores it in thedist
directory. -
clean
: This script removes thedist
directory usingrimraf
. -
memmer
: This script runs the main script of the application usingts-node
. -
upload-memes
: This script uploads memes from the./fixtures
directory. -
find-image
: This script deletes thefound
directory, creates a new one, and runs thefind-image
command which stores its result in thefound
directory. Example:yarn find-image ./path
yarn memer [options] [command]
Weaviate CLI for creating schemas and data.
-V, --version
- output the version number--host <host>
- Weaviate host (default: "localhost:8080")--scheme <host>
- Weaviate scheme (default: "http")-h, --help
- display help for command
upload-memes <directory>
- Upload images as memesdelete-memes
- Delete memesfind-image [options]
- Put found images into './found' directorycreate-schema
- Create Meme schemahelp [command]
- display help for command