raid-guild / gaianet-rag-api-pipeline

Supercharge your Gaianet node by generating a vector knowledge base from any API. Demo slides: https://hackmd.io/@santteegt/ByoykY4nC#/ Link to Docs below
https://raid-guild.github.io/gaianet-rag-api-pipeline/
MIT License
1 stars 0 forks source link

2.2.1 Setup prompts and conduct Output Testing with knowledge base #21

Closed earth2travis closed 2 months ago

earth2travis commented 3 months ago

Conduct comprehensive testing of the outputs generated by the pipeline and Gaia node. The testing process will include validating the accuracy and completeness of the data embeddings, ensuring that the system performs as expected under different conditions. Identifying and addressing any issues during this phase is crucial for delivering a reliable and robust solution.

santteegt commented 2 months ago

Gaia config params:

Script to start the rag-api-server with snapshot:

cmd=(wasmedge --dir .:./dashboard \
        --env NODE_VERSION=$installer_version \
        --nn-preload default:GGML:AUTO:$chat_model_name \
        --nn-preload embedding:GGML:AUTO:$embedding_model_name \
        rag-api-server.wasm \
        --model-name $chat_model_stem,$embedding_model_stem \
        --ctx-size $chat_ctx_size,$embedding_ctx_size \
        --batch-size $chat_batch_size,$embedding_batch_size \
        --prompt-template $prompt_type,embedding \
        --rag-policy $rag_policy \
        --qdrant-collection-name $embedding_collection_name \
        --qdrant-limit $qdrant_limit \
        --qdrant-score-threshold $qdrant_score_threshold \
        --web-ui ./ \
        --socket-addr 0.0.0.0:$llamaedge_port)
        --rag-prompt" "$rag_prompt" # if not empty
        --reverse-prompt "$reverse_prompt" # if not empty

rag-api-server entrypoint: