You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once this dataprep microservice is started, user can use the below commands to invoke the microservice to convert images and videosand their transcripts (optional) to embeddings and save to the Redis vector store.
115
+
Once this dataprep microservice is started, user can use the below commands to invoke the microservice to convert images, videos, text, and PDF files to embeddings and save to the Redis vector store.
115
116
116
117
This microservice provides 3 different ways for users to ingest files into Redis vector store corresponding to the 3 use cases.
117
118
118
119
### 4.1 Consume _ingest_with_text_ API
119
120
120
-
**Use case:** This API is used when videos are accompanied by transcript files (`.vtt` format) or images are accompanied by text caption files (`.txt` format).
121
+
**Use case:** This API is used for videos accompanied by transcript files (`.vtt` format), images accompanied by text caption files (`.txt` format), and PDF files containing a mix of text and images.
121
122
122
123
**Important notes:**
123
124
124
125
- Make sure the file paths after `files=@` are correct.
125
126
- Every transcript or caption file's name must be identical to its corresponding video or image file's name (except their extension - .vtt goes with .mp4 and .txt goes with .jpg, .jpeg, .png, or .gif). For example, `video1.mp4` and `video1.vtt`. Otherwise, if `video1.vtt` is not included correctly in the API call, the microservice will return an error `No captions file video1.vtt found for video1.mp4`.
127
+
- It is assumed that PDFs will contain at least one image. Each image in the file will be embedded along with the text that appears on the same page as the image.
0 commit comments