trustgraph/tests/test-embeddings
Cyber MacGeddon 20f983eec9 - Change flawed _client timeout logic which was causing major lags
- Moved clients to trustgraph.clients to tidy the parent directory
- Version bump
2024-08-20 17:54:11 +01:00

15 lines
262 B
Python
Executable file

#!/usr/bin/env python3
import pulsar
from trustgraph.clients.embeddings_client import EmbeddingsClient
embed = EmbeddingsClient(pulsar_host="pulsar://localhost:6650")
prompt="Write a funny limerick about a llama"
resp = embed.request(prompt)
print(resp)