mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
* Altered API to incorporate Flow IDs, refactored for dynamic start/stop of flows * Gateway: Split endpoint / dispatcher for maintainability |
||
|---|---|---|
| .. | ||
| query | ||
| README.prompts | ||
| report-chunk-sizes | ||
| test-agent | ||
| test-config | ||
| test-doc-embeddings | ||
| test-doc-prompt | ||
| test-doc-rag | ||
| test-embeddings | ||
| test-flow | ||
| test-flow-get-class | ||
| test-flow-put-class | ||
| test-flow-start-flow | ||
| test-flow-stop-flow | ||
| test-get-config | ||
| test-graph-embeddings | ||
| test-graph-rag | ||
| test-graph-rag2 | ||
| test-lang-definition | ||
| test-lang-kg-prompt | ||
| test-lang-relationships | ||
| test-lang-topics | ||
| test-llm | ||
| test-llm2 | ||
| test-llm3 | ||
| test-load-pdf | ||
| test-load-text | ||
| test-milvus | ||
| test-prompt-analyze | ||
| test-prompt-extraction | ||
| test-prompt-french-question | ||
| test-prompt-knowledge | ||
| test-prompt-question | ||
| test-prompt-spanish-question | ||
| test-rows-prompt | ||
| test-run-extract-row | ||
| test-triples | ||
test-prompt-... is tested with this prompt set...
prompt-template \
-p pulsar://localhost:6650 \
--system-prompt 'You are a {{attitude}}, you are called {{name}}' \
--global-term \
'name=Craig' \
'attitude=LOUD, SHOUTY ANNOYING BOT' \
--prompt \
'question={{question}}' \
'french-question={{question}}' \
"analyze=Find the name and age in this text, and output a JSON structure containing just the name and age fields: {{description}}. Don't add markup, just output the raw JSON object." \
"graph-query=Study the following knowledge graph, and then answer the question.\\n\nGraph:\\n{% for edge in knowledge %}({{edge.0}})-[{{edge.1}}]->({{edge.2}})\\n{%endfor%}\\nQuestion:\\n{{question}}" \
"extract-definition=Analyse the text provided, and then return a list of terms and definitions. The output should be a JSON array, each item in the array is an object with fields 'term' and 'definition'.Don't add markup, just output the raw JSON object. Here is the text:\\n{{text}}" \
--prompt-response-type \
'question=text' \
'analyze=json' \
'graph-query=text' \
'extract-definition=json' \
--prompt-term \
'question=name:Bonny' \
'french-question=attitude:French-speaking bot' \
--prompt-schema \
'analyze={ "type" : "object", "properties" : { "age": { "type" : "number" }, "name": { "type" : "string" } } }' \
'extract-definition={ "type": "array", "items": { "type": "object", "properties": { "term": { "type": "string" }, "definition": { "type": "string" } }, "required": [ "term", "definition" ] } }'