microsoft / promptflow-rag-project-template

An end-to-end sample of RAG showcasing development, evaluation, experimentation, and deployment using Promptflow, search products like CosmosDB, PostgresSQL, and Azure AI Search
MIT License
42 stars 8 forks source link

python test client for with promptflow serving #37

Closed journeyman-msft closed 4 months ago

journeyman-msft commented 4 months ago

Description

Providing a test script as a client for working with promptflow serving endpoint. Follow the README in deployment_utilities/test_client to basically run the two test files named test_client.py and test_client_stream.py. You may deploy your own endpoint or you can use

https://appliedai-chatbot-webapp.azurewebsites.net/score

It is deployed with rag-azure-search without streaming. For streaming, you will want to follow instructions in README and deploy to test the script. (I got it to render streaming in the console btw!)

Type of change

Please remove options that are not relevant.

Test and checks

Please describe how you've tested your file