{"id":21000450,"url":"https://github.com/matteofasulo/weaviate-search-engine","last_synced_at":"2025-06-14T05:06:09.840Z","repository":{"id":193142478,"uuid":"626354413","full_name":"MatteoFasulo/Weaviate-Search-Engine","owner":"MatteoFasulo","description":"Vector database (Weaviate) to build an image search engine powered by a deep neural network ","archived":false,"fork":false,"pushed_at":"2024-03-18T01:50:41.000Z","size":703,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T23:36:42.608Z","etag":null,"topics":["deep-neural-networks","docker","docker-compose","python","streamlit","weaviate"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatteoFasulo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"MatteoFasulo","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"paypal.com/paypalme/MatteoFasulo"}},"created_at":"2023-04-11T09:51:07.000Z","updated_at":"2024-02-19T09:10:27.000Z","dependencies_parsed_at":"2025-05-14T23:41:56.670Z","dependency_job_id":null,"html_url":"https://github.com/MatteoFasulo/Weaviate-Search-Engine","commit_stats":null,"previous_names":["matteofasulo/weaviate-search-engine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatteoFasulo/Weaviate-Search-Engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoFasulo%2FWeaviate-Search-Engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoFasulo%2FWeaviate-Search-Engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoFasulo%2FWeaviate-Search-Engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoFasulo%2FWeaviate-Search-Engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatteoFasulo","download_url":"https://codeload.github.com/MatteoFasulo/Weaviate-Search-Engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoFasulo%2FWeaviate-Search-Engine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259763073,"owners_count":22907408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-neural-networks","docker","docker-compose","python","streamlit","weaviate"],"created_at":"2024-11-19T08:10:44.223Z","updated_at":"2025-06-14T05:06:09.825Z","avatar_url":"https://github.com/MatteoFasulo.png","language":"Python","funding_links":["https://github.com/sponsors/MatteoFasulo","paypal.com/paypalme/MatteoFasulo"],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\n    \u003cdiv align=\"left\"\u003e\n        \u003cimg alt='Streamlit logo' src='https://upload.wikimedia.org/wikipedia/commons/7/77/Streamlit-logo-primary-colormark-darktext.png' width='260' align='left' /\u003e\n    \u003c/div\u003e\n    \u003cdiv align=\"right\"\u003e\n        \u003cimg alt='Weaviate logo' src='https://weaviate.io/img/site/weaviate-logo-light.png' width='160' align='right' /\u003e\n    \u003c/div\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003c/div\u003e\n\n# Weaviate Image Search Engine\nVector database (Weaviate) to build an image search engine powered by a deep neural network. It uses Weaviate optimizer for images with **ResNet50 (PyTorch)** as vectorizer and retriever. Currently only PyTorch ResNet50 supports **CUDA-GPU** but in a **single-threaded** manner. You can also use the **keras-based ResNet50 CPU** with **multi-threaded** inference.\n\n## Steps to run it\n1. Install Docker (skip this if already installed)\n```sh\ncurl -fsSL https://get.docker.com -o get-docker.sh \u0026\u0026 sh get-docker.sh\n```\n\n2. Spin up docker compose file:\n```sh\ndocker compose up -d\n```\n\n3. Activate the environment:\n```sh\npip3 install pipenv \u0026\u0026 pipenv install \u0026\u0026 pipenv shell\n```\n\n4. Launch `start.sh` script to create Weaviate schema, convert images from `img` folder to base64 and upload them in Weaviate:\n```sh\n./start.sh\n```\n\n5. Navigate to URL that streamlit outputs and upload an image. The program will query Weaviate for a vectorized search of similar images. If you are running this in local environment then just navigate at:\n```\nhttp://127.0.0.1:8501/\n```\n\n6. (Optional) CORS and XsrfProtection Streamlit. Run this if you have **Socket Errors** while connecting to streamlit app URL:\n```\nstreamlit run streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false\n```\n\n## Images\nFeel free to insert your images in `img` folder and see if the database suggests you similar images.\n\n## Weaviate Schema\nThis is the schema implemented in Weaviate. You can modify the class name, change the vectorizer or insert more properties.\n```python\nschemaConfig = {\n    'class': 'MyImages', # class name for schema config in Weaviate (change it with a custom name for your images)\n    'vectorizer': 'img2vec-neural',\n    'vectorIndexType': 'hnsw',\n    'moduleConfig': {\n        'img2vec-neural': {\n            'imageFields': [\n                'image'\n            ]\n        }\n    },\n    'properties': [\n        {\n            'name': 'image',\n            'dataType': ['blob']\n        },\n        {\n            'name': 'text',\n            'dataType': ['string']\n        }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteofasulo%2Fweaviate-search-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatteofasulo%2Fweaviate-search-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatteofasulo%2Fweaviate-search-engine/lists"}