trustgraph/tests.manual
Cyber MacGeddon d25c2f4d10 Updated tests
2025-07-11 16:43:27 +01:00
..
query Updated tests 2025-07-11 16:43:27 +01:00
README.prompts Updated tests 2025-07-11 16:43:27 +01:00
report-chunk-sizes Updated tests 2025-07-11 16:43:27 +01:00
test-agent Updated tests 2025-07-11 16:43:27 +01:00
test-config Updated tests 2025-07-11 16:43:27 +01:00
test-doc-embeddings Updated tests 2025-07-11 16:43:27 +01:00
test-doc-prompt Updated tests 2025-07-11 16:43:27 +01:00
test-doc-rag Updated tests 2025-07-11 16:43:27 +01:00
test-embeddings Updated tests 2025-07-11 16:43:27 +01:00
test-flow Updated tests 2025-07-11 16:43:27 +01:00
test-flow-get-class Updated tests 2025-07-11 16:43:27 +01:00
test-flow-put-class Updated tests 2025-07-11 16:43:27 +01:00
test-flow-start-flow Updated tests 2025-07-11 16:43:27 +01:00
test-flow-stop-flow Updated tests 2025-07-11 16:43:27 +01:00
test-get-config Updated tests 2025-07-11 16:43:27 +01:00
test-graph-embeddings Updated tests 2025-07-11 16:43:27 +01:00
test-graph-rag Updated tests 2025-07-11 16:43:27 +01:00
test-graph-rag2 Updated tests 2025-07-11 16:43:27 +01:00
test-lang-definition Updated tests 2025-07-11 16:43:27 +01:00
test-lang-kg-prompt Updated tests 2025-07-11 16:43:27 +01:00
test-lang-relationships Updated tests 2025-07-11 16:43:27 +01:00
test-lang-topics Updated tests 2025-07-11 16:43:27 +01:00
test-llm Updated tests 2025-07-11 16:43:27 +01:00
test-llm2 Updated tests 2025-07-11 16:43:27 +01:00
test-llm3 Updated tests 2025-07-11 16:43:27 +01:00
test-load-pdf Updated tests 2025-07-11 16:43:27 +01:00
test-load-text Updated tests 2025-07-11 16:43:27 +01:00
test-milvus Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-analyze Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-extraction Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-french-question Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-knowledge Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-question Updated tests 2025-07-11 16:43:27 +01:00
test-prompt-spanish-question Updated tests 2025-07-11 16:43:27 +01:00
test-rows-prompt Updated tests 2025-07-11 16:43:27 +01:00
test-run-extract-row Updated tests 2025-07-11 16:43:27 +01:00
test-triples Updated tests 2025-07-11 16:43:27 +01:00

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" ] } }'