- Users can upload images, text, audios or videos to add as data to be searched
- LLM models (customisable) help tag, describe and index the data
- Embeddings from this are then added to a vector database (configurable)
- Search APIs that help relevant data (across all multimedia types) from the vector database.
Instructions to run the UI
- Navigate to the root folder of the repo
- poetry shell && poetry lock && poetry install
- streamlit run deepsearchai/streamlit_app.py
Alternately, you can run
from deepsearch.app import App
app = App()
app.run()
Instructions to add local data from the CLI
- Open Python Shell and run the following commands
from deepsearch.app import App
app = App()
app.add_data(<LOCAL_PATH>)
Instructions to add S3 data from the CLI
- Open Python Shell and run the following commands
from deepsearch.app import App
app = App()
app.add_data(<S3_PATH>)
Audio Usage
- Having ffmpeg installed is a prerequisite. All major package installers include ffmpeg, but if you need to manually install it, see here. You may refer https://github.com/openai/whisper/blob/main/README.md
You can only have 1 model per datatype. For example: Clip for images and Whisper for Audio. Only one vector_database. Embedding from each datatype will go into a new collection.
The collection names would default to audio_collection, image_collection but can be overriden with a database config file.
Video Usage
- We currently support loading a youtube channel
- A youtube channel ID can be obtained from https://www.youtube.com/account_advanced
- For a channel you dont own, the channel ID is the last part of the URL. For example, the channel ID for https://www.youtube.com/channel/UCXuqSBlHAE6Xw-yeJA0Tunw is UCXuqSBlHAE6Xw-yeJA0Tunw
Setting up Keys for Video
Set 'GOOGLE_CLIENT_API_KEY' environment variable.
Pytorch issues
- Install pytorch via pip causes issues for Mac M1/M2 machines. For such cases, you might have to install pytorch via conda. Please refer https://www.geeksforgeeks.org/how-to-install-pytorch-on-macos/
Triton Issues
- Installing triton can be tricky with Mac M1. This happens when attempting to install the audio dependency for the package. Please remote triton manually from the poetry.lock file if the issue persists.
Citation
If you utilize this repository, please consider citing it with:
@misc{deepsearch,
author = {Rupesh Bansal, Shiwangi Shah},
title = {Deepsearch: Semantic search on multimedia sources like audio, video and images},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/deepsearch-ai/deepsearch}},
}
License
This project is licensed under the Apache License, Version 2.0. Please see the LICENSE: LICENSE file for more information.
Metadata
Release files for deepsearchai 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deepsearchai-0.3.4.tar.gz | 306.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deepsearchai-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 621.4 kB
Release files / deepsearchai-0.3.4.tar.gz
| Download URL | deepsearchai-0.3.4.tar.gz |
|---|---|
| Size | 306.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8589bc718da54ec301ce87e37aa2ebd06d109b2ef6771f9780be27c41aea2f0d
|
|
BLAKE2b-256 checksum How to use checksums |
96d29398ffcbf59676fa4c22ebbc8cc6ea68ed67046603d2f26456ac054080f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.5 Darwin/21.1.0
|
Release files / deepsearchai-0.3.4-py3-none-any.whl
| Download URL | deepsearchai-0.3.4-py3-none-any.whl |
|---|---|
| Size | 315.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7b29d30c3c4fda2876a1e0c1ad9db6791bd60d5bcf97d681de46bbbc6c0b9c1
|
|
BLAKE2b-256 checksum How to use checksums |
a6fa48953b84175addfc061e3660dc585ec09c85feb0f86b27e01599844e9f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.11.5 Darwin/21.1.0
|