Embeddings
Generate vector embeddings from an input text
.
- curl
- Python
curl http://localhost:8088/api/v1/embeddings \
--header "content-type: application/json" \
--data \
'{
"text": "Write a joke about llamas."
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
client = tg.Api()
response = client.embeddings("Write a joke about llamas.")
for vector in response:
print(vector)