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 document preparation microservice for VDMS is started, user can use below command to invoke the microservice to convert the document to embedding and save to the database.
125
125
126
126
Make sure the file path after `files=@` is correct.
127
127
128
128
- Single file upload
129
129
130
-
```bash
131
-
curl -X POST \
132
-
-H "Content-Type: multipart/form-data" \
133
-
-F "files=@./file1.txt" \
134
-
http://localhost:6007/v1/dataprep
135
-
```
130
+
```bash
131
+
curl -X POST \
132
+
-H "Content-Type: multipart/form-data" \
133
+
-F "files=@./file1.txt" \
134
+
http://localhost:6007/v1/dataprep
135
+
```
136
136
137
-
You can specify chunk_size and chunk_size by the following commands.
137
+
You can specify `chunk_size` and `chunk_overlap` by the following commands.
138
138
139
-
```bash
140
-
curl -X POST \
141
-
-H "Content-Type: multipart/form-data" \
142
-
-F "files=@./LLAMA2_page6.pdf" \
143
-
-F "chunk_size=1500" \
144
-
-F "chunk_overlap=100" \
145
-
http://localhost:6007/v1/dataprep
146
-
```
139
+
```bash
140
+
curl -X POST \
141
+
-H "Content-Type: multipart/form-data" \
142
+
-F "files=@./LLAMA2_page6.pdf" \
143
+
-F "chunk_size=1500" \
144
+
-F "chunk_overlap=100" \
145
+
http://localhost:6007/v1/dataprep
146
+
```
147
147
148
148
- Multiple file upload
149
149
150
-
```bash
151
-
curl -X POST \
152
-
-H "Content-Type: multipart/form-data" \
153
-
-F "files=@./file1.txt" \
154
-
-F "files=@./file2.txt" \
155
-
-F "files=@./file3.txt" \
156
-
http://localhost:6007/v1/dataprep
157
-
```
158
-
159
-
- Links upload (not supported for llama_index now)
docker compose -f comps/dataprep/vdms/multimodal_langchain/docker-compose-dataprep-vdms.yaml up -d
78
78
```
79
79
80
-
# 🚀3. Status Microservice
80
+
##🚀3. Status Microservice
81
81
82
82
```bash
83
83
docker container logs -f dataprep-vdms-server
84
84
```
85
85
86
-
# 🚀4. Consume Microservice
86
+
##🚀4. Consume Microservice
87
87
88
88
Once data preparation microservice for VDMS is started, user can use below command to invoke the microservice to convert the videos to embedding and save to the database.
89
89
90
90
Make sure the file path after `files=@` is correct.
91
91
92
92
- Single file upload
93
93
94
-
```bash
95
-
curl -X POST \
96
-
-H "Content-Type: multipart/form-data" \
97
-
-F "files=@./file1.mp4" \
98
-
http://localhost:6007/v1/dataprep
99
-
```
94
+
```bash
95
+
curl -X POST \
96
+
-H "Content-Type: multipart/form-data" \
97
+
-F "files=@./file1.mp4" \
98
+
http://localhost:6007/v1/dataprep
99
+
```
100
100
101
101
- Multiple file upload
102
102
103
-
```bash
104
-
curl -X POST \
105
-
-H "Content-Type: multipart/form-data" \
106
-
-F "files=@./file1.mp4" \
107
-
-F "files=@./file2.mp4" \
108
-
-F "files=@./file3.mp4" \
109
-
http://localhost:6007/v1/dataprep
110
-
```
103
+
```bash
104
+
curl -X POST \
105
+
-H "Content-Type: multipart/form-data" \
106
+
-F "files=@./file1.mp4" \
107
+
-F "files=@./file2.mp4" \
108
+
-F "files=@./file3.mp4" \
109
+
http://localhost:6007/v1/dataprep
110
+
```
111
111
112
112
- List of uploaded files
113
113
114
-
```bash
115
-
curl -X GET http://localhost:6007/v1/dataprep/get_videos
116
-
```
114
+
```bash
115
+
curl -X GET http://localhost:6007/v1/dataprep/get_videos
116
+
```
117
117
118
118
- Download uploaded files
119
119
120
-
Please use the file name from the list
120
+
Use the file name from the list
121
121
122
-
```bash
123
-
curl -X GET http://localhost:6007/v1/dataprep/get_file/${filename}
124
-
```
122
+
```bash
123
+
curl -X GET http://localhost:6007/v1/dataprep/get_file/${filename}
0 commit comments