More API doc hacking

This commit is contained in:
Cyber MacGeddon 2024-12-28 16:09:10 +00:00
parent 5c00b8e71b
commit 9549878a9a
4 changed files with 165 additions and 10 deletions

View file

@ -19,8 +19,7 @@ The request contains the following fields:
## REST service
The REST service accepts a request object containing the question field.
The response is a JSON object containing the `answer` field. Interim
responses are not provided.
The response is a JSON object containing the `answer` field.
e.g.
@ -41,7 +40,7 @@ Response:
## Websocket
Agent requests have a `request` object containing the `text` field.
Embeddings requests have a `request` object containing the `text` field.
Responses have a `response` object containing `vectors` field.
e.g.
@ -82,7 +81,7 @@ Responses:
## Pulsar
The Pulsar schema for the Agent API is defined in Python code here:
The Pulsar schema for the Embeddings API is defined in Python code here:
https://github.com/trustgraph-ai/trustgraph/blob/master/trustgraph-base/trustgraph/schema/models.py