trustgraph/tests
cybermaggedon 36cdeab588
Feature/agent manager (#146)
* Agent schema
* Agent working through client
* Add agent-manager-react command line
* test-agent test script
* Add tg-invoke-agent CLI
2024-11-10 11:44:01 +00:00
..
query Tidied scripts, added 2 query scripts (#53) 2024-09-05 16:45:22 +01:00
README.prompts Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
report-chunk-sizes Add a docker-compose for just the stores (#13) 2024-08-21 16:20:21 +01:00
test-agent Feature/agent manager (#146) 2024-11-10 11:44:01 +00:00
test-doc-embeddings Added doc embedding support (#41) 2024-08-26 23:45:23 +01:00
test-doc-prompt Added doc embedding support (#41) 2024-08-26 23:45:23 +01:00
test-doc-rag Template rejig (#48) 2024-09-03 00:09:15 +01:00
test-embeddings - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-graph-embeddings - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-graph-rag - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-graph-rag2 - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-lang-definition Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-lang-kg-prompt - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-lang-relationships - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +01:00
test-lang-topics Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-llm Feature/agent manager (#146) 2024-11-10 11:44:01 +00:00
test-llm2 Generate all YAML files (#24) 2024-08-22 21:20:17 +01:00
test-llm3 Generate all YAML files (#24) 2024-08-22 21:20:17 +01:00
test-milvus Breakout store queries (#8) 2024-08-13 17:30:59 +01:00
test-prompt-analyze Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-prompt-extraction Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-prompt-french-question Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-prompt-knowledge Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-prompt-question Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-prompt-spanish-question Prompt refactor (#125) 2024-10-26 22:17:43 +01:00
test-rows-prompt Extract rows and apply object embeddings (#42) 2024-08-27 21:55:12 +01:00
test-run-extract-row Extract rows and apply object embeddings (#42) 2024-08-27 21:55:12 +01:00
test-triples - Change flawed _client timeout logic which was causing major lags 2024-08-20 17:54:11 +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" ] } }'