Spaces:
No application file
No application file
Download docs/examples/rest-api/query.mdx from rajesh1501/embedchain: direct link, hf CLI and curl.
- Browser
- Download file 315 Bytes
-
https://huggingface.co/spaces/rajesh1501/embedchain/resolve/main/docs/examples/rest-api/query.mdx
- Command line
-
hf download hf://spaces/rajesh1501/embedchain/docs/examples/rest-api/query.mdx
-
curl -L -o query.mdx https://huggingface.co/spaces/rajesh1501/embedchain/resolve/main/docs/examples/rest-api/query.mdx
315 Bytes
| openapi: post /{app_id}/query | |
| <RequestExample> | |
| ```bash Request | |
| curl --request POST \ | |
| --url http://localhost:8080/{app_id}/query \ | |
| -d "query=who is Elon Musk?" | |
| ``` | |
| </RequestExample> | |
| <ResponseExample> | |
| ```json Response | |
| { "response": "Net worth of Elon Musk is $218 Billion." } | |
| ``` | |
| </ResponseExample> | |