...

Package functiontesting

import "github.com/ansys/allie-flowkit/pkg/functiontesting"
Overview
Index

Overview ▾

func TestAnsysGPTACSSearchIndex

func TestAnsysGPTACSSearchIndex(indexName string, query string)

TestAnsysGPTACSSearchIndex tests the AnsysGPTACSSemanticHybridSearch function. The function takes an index name and a query string as input. The function performs vector embedding on the query string and extracts fields from the query. The function then performs a semantic hybrid search on the index using the embedded query and extracted fields. The function prints the output of the search.

Parameters:

  • indexName: the name of the index to search
  • query: the query string to search for