-
Notifications
You must be signed in to change notification settings - Fork 0
MMQnA Doc Updates for Latest Release #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
92425a2
2c3b8e5
6a237c4
cdb71a9
e65062a
113a98c
5eea7c3
08d7827
ce1e3c1
3db7382
0dcc45b
1ce154b
7c52011
f778be2
16c0ec9
f0ae498
8157e80
a5963e8
941df61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
mhbuehler marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,10 @@ lvm | |
| === | ||
| Port 9399 - Open to 0.0.0.0/0 | ||
|
|
||
| whisper | ||
| === | ||
| port 7066 - Open to 0.0.0.0/0 | ||
|
|
||
| dataprep-multimodal-redis | ||
| === | ||
| Port 6007 - Open to 0.0.0.0/0 | ||
|
|
@@ -83,8 +87,6 @@ export WHISPER_PORT=7066 | |
| export WHISPER_SERVER_ENDPOINT="http://${host_ip}:${WHISPER_PORT}/v1/asr" | ||
| export WHISPER_MODEL="base" | ||
| export MAX_IMAGES=1 | ||
| export ASR_ENDPOINT=http://$host_ip:$WHISPER_PORT | ||
| export ASR_PORT=9099 | ||
| export ASR_SERVICE_PORT=3001 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left them in just in case but maybe not
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see these vars on main, so we'd be adding them. If they aren't used, we should remove them |
||
| export ASR_SERVICE_ENDPOINT="http://${host_ip}:${ASR_SERVICE_PORT}/v1/audio/transcriptions" | ||
| export REDIS_DB_PORT=6379 | ||
|
okhleif-10 marked this conversation as resolved.
|
||
|
|
@@ -164,7 +166,7 @@ docker build --no-cache -t opea/lvm:latest --build-arg https_proxy=$https_proxy | |
| docker build --no-cache -t opea/dataprep-multimodal-redis:latest --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f comps/dataprep/multimodal/redis/langchain/Dockerfile . | ||
| ``` | ||
|
|
||
| ### 5. Build asr images | ||
| ### 5. Build Whisper Server Image | ||
|
|
||
| Build whisper server image | ||
|
|
||
|
|
@@ -270,7 +272,7 @@ curl http://${host_ip}:${REDIS_RETRIEVER_PORT}/v1/multimodal_retrieval \ | |
| -d "{\"text\":\"test\",\"embedding\":${your_embedding}}" | ||
| ``` | ||
|
|
||
| 4. asr | ||
| 4. whisper | ||
|
|
||
| ```bash | ||
| curl ${WHISPER_SERVER_ENDPOINT} \ | ||
|
|
@@ -406,15 +408,15 @@ curl http://${host_ip}:${MEGA_SERVICE_PORT}/v1/multimodalqna \ | |
| Test the MegaService with an audio query: | ||
|
|
||
| ```bash | ||
| curl http://${host_ip}:8888/v1/multimodalqna \ | ||
| curl http://${host_ip}:${MEGA_SERVICE_PORT}/v1/multimodalqna \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{"messages": [{"role": "user", "content": [{"type": "audio", "audio": "UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"}]}]}' | ||
| ``` | ||
|
|
||
| Test the MegaService with a text and image query: | ||
|
|
||
| ```bash | ||
| curl http://${host_ip}:8888/v1/multimodalqna \ | ||
| curl http://${host_ip}:${MEGA_SERVICE_PORT}/v1/multimodalqna \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{"messages": [{"role": "user", "content": [{"type": "text", "text": "Green bananas in a tree"}, {"type": "image_url", "image_url": {"url": "http://images.cocodataset.org/test-stuff2017/000000004248.jpg"}}]}]}' | ||
| ``` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please view this README in a separate tab. Let me know if I should fix the screenshot sizes