OpenSearchKB runs a multi_match query against an OpenSearch or Elasticsearch index.
| 16 | |
| 17 | // OpenSearchKB runs a multi_match query against an OpenSearch or Elasticsearch index. |
| 18 | type OpenSearchKB struct { |
| 19 | name string |
| 20 | cfg config.KnowledgeBaseConfig |
| 21 | client *http.Client |
| 22 | fields []string |
| 23 | } |
| 24 | |
| 25 | // NewOpenSearchKB builds an adapter for knowledge_bases type "opensearch" or "elasticsearch". |
| 26 | func NewOpenSearchKB(kb config.KnowledgeBaseConfig) (*OpenSearchKB, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected