FaqGen¶
Helm chart for deploying FaqGen service.
FaqGen depends on LLM and tgi microservice, refer to llm-uservice and tgi for more config details.
Verify¶
To verify the installation, run the command kubectl get pod
to make sure all pods are running.
Curl command and UI are the two options that can be leveraged to verify the result.
Verify the workload through curl command¶
Then run the command kubectl port-forward svc/faqgen 8888:8888
to expose the service for access.
Open another terminal and run the following command to verify the service if working:
curl http://localhost:8888/v1/faqgen \
-H "Content-Type: application/json" \
-d '{"messages": "Text Embeddings Inference (TEI) is a toolkit for deploying and serving open source text embeddings and sequence classification models. TEI enables high-performance extraction for the most popular models, including FlagEmbedding, Ember, GTE and E5."}'
Verify the workload through UI¶
The UI has already been installed via the Helm chart. To access it, use the external IP of one your Kubernetes node along with the NGINX port. You can find the NGINX port using the following command:
export port=$(kubectl get service faqgen-nginx --output='jsonpath={.spec.ports[0].nodePort}')
echo $port
Open a browser to access http://<k8s-node-ip-address>:${port}
to play with the ChatQnA workload.
Values¶
Key |
Type |
Default |
Description |
---|---|---|---|
image.repository |
string |
|
|
service.port |
string |
|
|
tgi.LLM_MODEL_ID |
string |
|
Models id from https://huggingface.co/, or predownloaded model directory |
global.monitoring |
bool |
|
Enable usage metrics for the service components. See ../monitoring.md before enabling! |