English
cURL
curl --request PATCH \ --url https://geekai.dev/api/v1/agent/{uuid}/embed \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form embed_files=/E:/Documents/file.pdf \ --form embed_files.items='@example-file'
{ "message": "File uploaded successfully, processing in progress.", "data": { "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "pending", "progress": 50 } }
Embed local training files into the specified agent’s knowledge base.
curl --location --request PATCH 'https://geekai.dev/api/v1/agent/be9062c1-68d5-48ee-b74e-fab6d864bc29/embed' \ --header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \ --form 'embed_files=@"/E:/Documents/GeekAI/Training File1.txt"' \ --form 'embed_files=@"/E:/Documents/GeekAI/Training File2.txt"' \ --form 'embed_files=@"/E:/Documents/GeekAI/Training File3.txt"'
token
uuid
local training files
["/E:/Documents/file.pdf"]
successful response
response message
"File uploaded successfully, processing in progress."
Show child attributes
task ID
task status
pending
processing
completed
failed
task progress(0-100)
0 <= x <= 100
Was this page helpful?