govuk-chat: Rake tasks
These rake tasks come from the desc descriptions in govuk-chat’s lib/tasks folder.
To change what’s shown here, change the description in the code.
bigquery:export
Run an export of data to Bigquery
k exec deploy/govuk-chat -- rake bigquery:export
View source (lib/tasks/bigquery.rake)
bigquery:backfill_table
Backfill an export of a particular table up until last exported until
k exec deploy/govuk-chat -- rake bigquery:backfill_table[table_name]
View source (lib/tasks/bigquery.rake)
bigquery:delete_table
Delete a table from BigQuery
k exec deploy/govuk-chat -- rake bigquery:delete_table[table_name]
View source (lib/tasks/bigquery.rake)
bigquery:reset
Delete all of our known Big Query tables and our data of exports
k exec deploy/govuk-chat -- rake bigquery:reset
View source (lib/tasks/bigquery.rake)
bigquery:delete_opted_out_end_user_data
Delete all BigQuery exports for an opted-out user
k exec deploy/govuk-chat -- rake bigquery:delete_opted_out_end_user_data[end_user_id]
View source (lib/tasks/bigquery.rake)
brakeman
Run Brakeman
k exec deploy/govuk-chat -- rake brakeman
View source (lib/tasks/brakeman.rake)
data_retention:delete_old_questions
Delete questions older than 1 year & all conversations with no questions
k exec deploy/govuk-chat -- rake data_retention:delete_old_questions
View source (lib/tasks/date_retention.rake)
embeddings:generate_titan
Generate Titan embeddings for documents where the field is missing
k exec deploy/govuk-chat -- rake embeddings:generate_titan
View source (lib/tasks/embeddings.rake)
evaluation:generate_answer
Generate a single answer to a question returned as JSON, for 3rd party evaluation tools
k exec deploy/govuk-chat -- rake evaluation:generate_answer[answer_strategy]
View source (lib/tasks/evaluation.rake)
evaluation:generate_jailbreak_guardrail_response
Produce the output of the jailbreak response for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_jailbreak_guardrail_response
View source (lib/tasks/evaluation.rake)
evaluation:generate_output_guardrail_response
Produce the output guardrails response for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_output_guardrail_response[guardrail_type]
View source (lib/tasks/evaluation.rake)
evaluation:generate_rag_structured_answer_response
Produce the output of a RAG response for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_rag_structured_answer_response
View source (lib/tasks/evaluation.rake)
evaluation:generate_question_routing_response
Produce the output of question routing for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_question_routing_response
View source (lib/tasks/evaluation.rake)
evaluation:search_results_for_question
Query the index for results matching a user input
k exec deploy/govuk-chat -- rake evaluation:search_results_for_question
View source (lib/tasks/evaluation.rake)
evaluation:generate_topics_for_question
Produce topics for a user question
k exec deploy/govuk-chat -- rake evaluation:generate_topics_for_question
View source (lib/tasks/evaluation.rake)
evaluation:generate_request_types_for_question
Produce request types for a user question
k exec deploy/govuk-chat -- rake evaluation:generate_request_types_for_question
View source (lib/tasks/evaluation.rake)
evaluation:batch_process
Batch process a YAML file of questions using any single-input rake task
k exec deploy/govuk-chat -- rake evaluation:batch_process[task_name]
View source (lib/tasks/evaluation.rake)
evaluation:generate_answer_relevancy_evaluation
Run answer relevancy evaluation for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_answer_relevancy_evaluation
View source (lib/tasks/evaluation.rake)
evaluation:generate_coherence_evaluation
Run answer coherence evaluation for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_coherence_evaluation
View source (lib/tasks/evaluation.rake)
evaluation:generate_faithfulness_evaluation
Run faithfulness evaluation for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_faithfulness_evaluation
View source (lib/tasks/evaluation.rake)
evaluation:generate_context_relevancy_evaluation
Run context relevancy evaluation for a user input
k exec deploy/govuk-chat -- rake evaluation:generate_context_relevancy_evaluation
View source (lib/tasks/evaluation.rake)
message_queue:create_published_documents_queue
Intended for dev environments - create a queue to listen to all messages on the published_documents exchange
k exec deploy/govuk-chat -- rake message_queue:create_published_documents_queue
View source (lib/tasks/message_queue.rake)
message_queue:published_documents_consumer
Run worker to consume published documents from Publishing API message queue
k exec deploy/govuk-chat -- rake message_queue:published_documents_consumer
View source (lib/tasks/message_queue.rake)
search:create_chunked_content_index
Create an index for chunked_content
k exec deploy/govuk-chat -- rake search:create_chunked_content_index
View source (lib/tasks/search.rake)
search:recreate_chunked_content_index
Delete an existing chunked content opensearch index and create a new one
k exec deploy/govuk-chat -- rake search:recreate_chunked_content_index
View source (lib/tasks/search.rake)
search:update_chunked_content_mappings
Update the chunked context index mappings
k exec deploy/govuk-chat -- rake search:update_chunked_content_mappings
View source (lib/tasks/search.rake)
search:populate_chunked_content_index_from_seeds
Populate the Chunked Content OpenSearchIndex with data from seed files
k exec deploy/govuk-chat -- rake search:populate_chunked_content_index_from_seeds
View source (lib/tasks/search.rake)
search:delete_all_excluded_chunks
Remove all chunks configured to be excluded from the index
k exec deploy/govuk-chat -- rake search:delete_all_excluded_chunks
View source (lib/tasks/search.rake)
search:print_document_types
Print a list of document types that are indexed, use ANNOTATED=true for further details
k exec deploy/govuk-chat -- rake search:print_document_types
View source (lib/tasks/search.rake)
slack:send_test_message
Send a test message to the Slack channel
k exec deploy/govuk-chat -- rake slack:send_test_message[message]
View source (lib/tasks/slack.rake)
slack:send_previous_days_activity
Post the Chat activity for the previous day to the Slack channel
k exec deploy/govuk-chat -- rake slack:send_previous_days_activity
View source (lib/tasks/slack.rake)