Skip to content
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

/embedding API #571

Open
invisiblepancake opened this issue Sep 28, 2024 Discussed in #469 · 0 comments
Open

/embedding API #571

invisiblepancake opened this issue Sep 28, 2024 Discussed in #469 · 0 comments

Comments

@invisiblepancake
Copy link

Discussed in #469

Originally posted by hari-Guptha12 June 10, 2024
Can anyone provide a sample cURL request to obtain the image embedding generated by CLIP? I have tried this:

{
 "model": "LLaMA_CPP",
 "messages": [
   {
     "role": "system",
     "content": "You are LLAMAfile, an AI assistant. Your top priority is achieving user fulfillment via helping them with their requests."
   },
   {
     "role": "user",
     "content": "[img-12]explain the image",
     "image_data": {
         "data": "data:image/webp;base64,UklGRpADAABXRUJQVlA4WAoAAAAIAAAAkgAAYQAAVlA4ILACAAAQGwCdASqTAGIAPm0wk0akJSGhLxD58KANiWkA0q9OfnkJletYa/x3B+/1j0xhB5gDZzNCZtWLmg0EFiIE5KYXkvW5boezgoR8MSA9gEkMkQEnrgVi2juVSLqs0MBttL8Ux4hMT1Emn5BI51+FOhp1ECAibgNiLC/ryxnsP5gU/GLemxtg221qhdt0YyzN7u9euwmJDqvUw086nhbPBEj3FvK/lONKrBygvUl0nF617CtOS/HYhzzznEnZOVVmlu6DfuD/JXrmRABzRrkVdQLRU3nVWXq7Hr85zhvaGcKQyAAA/vt1/GYY9y67x7EhQ7exQyXDgNOIiHSRRi2raQNgjZ+o50bBtxp9E3XO2EYTMakLZZmzj7NP2UbGQ8/YYvzYXiualQts2N9ThsnOb274V+oS4iGDt1x8d5baztNOc1R21XiDxc3h7ylnLQCleFxDRR+EdFRKE+SQIv0SQvsdargyOFpfXdPhLiLs9VO5OEOpX1Pm032n1wqcEzXxdYIB0ArYG72HJs174Mhy/9RQx/V0glkrvgP3xJ0bys1tpis5pBRU8cpI1d4jyJ1xSkBvsdnXeozz6lNWxlpV8NNpi7xnMUz2cUDQ4Xtykvxg/S1WRpcElhFrxvuvHNj1XKxq2JoXZ6gVBWIwoKGJS+pET6qzGtK4HmCmAjEbg3SDoTfCt6SPHxeEEMFy80OTGx15D7RAvOqhbiNxwRv8BL9t0Za+68CWCB4ANI9j22bHVKtQF4ax/XPR4wmpPnR7QOlHgZCGua7whnzzc4C44yQf96MtrymTYP3GCNkIOtjBY77GoE6zOi3ELvgQvx2mG4BwSEVG2QNb/uz8Pz6xilRM9iWM6/ljIqIqIWW1iD7AvwvDMjl0WghlBq6QKMi5VXi+u/sFtpxSY5IAAAAAAAAARVhJRroAAABFeGlmAABJSSoACAAAAAYAEgEDAAEAAAABAAAAGgEFAAEAAABWAAAAGwEFAAEAAABeAAAAKAEDAAEAAAACAAAAEwIDAAEAAAABAAAAaYcEAAEAAABmAAAAAAAAAEgAAAABAAAASAAAAAEAAAAGAACQBwAEAAAAMDIxMAGRBwAEAAAAAQIDAACgBwAEAAAAMDEwMAGgAwABAAAA//8AAAKgBAABAAAAkwAAAAOgBAABAAAAYgAAAAAAAAA=",
         "id": 12
       }
   }
 ]
}
But its showing **"File Not Found"**</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant