mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-23 12:11:02 +02:00
More API doc hacking
This commit is contained in:
parent
4b699159fe
commit
2e6356d2b8
2 changed files with 79 additions and 19 deletions
|
|
@ -69,3 +69,63 @@ e.g.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For a multi-part response, a number of responses are provided with the
|
||||||
|
same ID until the final message which has the `complete` field set to
|
||||||
|
true.
|
||||||
|
|
||||||
|
e.g.
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "blrqotfefnmnh7de-20",
|
||||||
|
"service": "agent",
|
||||||
|
"request": {
|
||||||
|
"question": "What does NASA stand for?"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Responses:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "blrqotfefnmnh7de-20",
|
||||||
|
"response": {
|
||||||
|
"thought": "I need to query a knowledge base"
|
||||||
|
},
|
||||||
|
"complete": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "blrqotfefnmnh7de-20",
|
||||||
|
"response": {
|
||||||
|
"observation": "Based on the provided text, NASA stands for National Aeronautics and Space Administration."
|
||||||
|
},
|
||||||
|
"complete": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "blrqotfefnmnh7de-20",
|
||||||
|
"response": {
|
||||||
|
"thought": "I now know the final answer"
|
||||||
|
},
|
||||||
|
"complete": false
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"id": "blrqotfefnmnh7de-20",
|
||||||
|
"response": {
|
||||||
|
"answer": "National Aeronautics and Space Administration"
|
||||||
|
},
|
||||||
|
"complete": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@ scrape_configs:
|
||||||
# The job name is added as a label `job=<job_name>` to any timeseries
|
# The job name is added as a label `job=<job_name>` to any timeseries
|
||||||
# scraped from this config.
|
# scraped from this config.
|
||||||
|
|
||||||
|
- job_name: 'pulsar'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 'pulsar:8080'
|
||||||
|
|
||||||
- job_name: 'pdf-decoder'
|
- job_name: 'pdf-decoder'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|
@ -26,122 +32,116 @@ scrape_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'chunker:8000'
|
- 'chunker:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'vectorize'
|
- job_name: 'vectorize'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'vectorize:8000'
|
- 'vectorize:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'embeddings'
|
- job_name: 'embeddings'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'embeddings:8000'
|
- 'embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'kg-extract-definitions'
|
- job_name: 'kg-extract-definitions'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'kg-extract-definitions:8000'
|
- 'kg-extract-definitions:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'kg-extract-topics'
|
- job_name: 'kg-extract-topics'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'kg-extract-topics:8000'
|
- 'kg-extract-topics:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'kg-extract-relationships'
|
- job_name: 'kg-extract-relationships'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'kg-extract-relationships:8000'
|
- 'kg-extract-relationships:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'metering'
|
- job_name: 'metering'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'metering:8000'
|
- 'metering:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'metering-rag'
|
- job_name: 'metering-rag'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'metering-rag:8000'
|
- 'metering-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'store-graph-embeddings'
|
- job_name: 'store-graph-embeddings'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'store-graph-embeddings:8000'
|
- 'store-graph-embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'store-triples'
|
- job_name: 'store-triples'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'store-triples:8000'
|
- 'store-triples:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'text-completion'
|
- job_name: 'text-completion'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'text-completion:8000'
|
- 'text-completion:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'text-completion-rag'
|
- job_name: 'text-completion-rag'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'text-completion-rag:8000'
|
- 'text-completion-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'graph-rag'
|
- job_name: 'graph-rag'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'graph-rag:8000'
|
- 'graph-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'prompt'
|
- job_name: 'prompt'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'prompt:8000'
|
- 'prompt:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'prompt-rag'
|
- job_name: 'prompt-rag'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'prompt-rag:8000'
|
- 'prompt-rag:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'query-graph-embeddings'
|
- job_name: 'query-graph-embeddings'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'query-graph-embeddings:8000'
|
- 'query-graph-embeddings:8000'
|
||||||
|
|
||||||
|
|
||||||
- job_name: 'query-triples'
|
- job_name: 'query-triples'
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'query-triples:8000'
|
- 'query-triples:8000'
|
||||||
|
|
||||||
|
- job_name: 'agent-manager'
|
||||||
- job_name: 'pulsar'
|
|
||||||
scrape_interval: 5s
|
scrape_interval: 5s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'pulsar:8080'
|
- 'agent-manager:8000'
|
||||||
|
|
||||||
|
- job_name: 'api-gateway'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 'api-gateway:8000'
|
||||||
|
|
||||||
|
- job_name: 'workbench-ui'
|
||||||
|
scrape_interval: 5s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- 'workbench-ui:8000'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue