AI Knowledge Base Reader: Functionality and Operation
The AI Knowledge Base Reader searches for data within a data set with predefined accuracy.
Properties
| Defines the operation executed by the adapter. Possible values:
|
Parameters
| Main adapter class (do not change!) Possible values: de.softproject.integration.nativeadapter.NativeAdapter: Main class (Default) |
| The virtual repository of the adapter project. Possible values:
|
| Used protocol (HTTP oder HTTPS) Possible values:
|
| Name of AI gateway host Possible values: Any valid character string without protocol specification (e.g. |
| Number of AI gateway port Possible values: Any integer (e.g. |
| Is required to establish a Keycloak connection. Possible values: unique access token The access token needs to be generated in Keycloak. |
| List of data records used for the response, comma-separated. Possible values: Any character string for existing data records in the system, comma-separated. Example:
|
| (optional) Specifies the maximum number of matching data chunks to be included in the output. If chunkLimit is set to e.g. 5, the output can contain up to 5 matching chunks. Possible values:
|
| (optional) A numerical value between 0 and 1 (with the exception of 0 and 1) that specifies the maximum score threshold for the selection of matching chunks. Lower values correspond to higher accuracy. Possible values:
|
Status values
| The operation was executed successfully. |
| The operation was executed successfully, but without result. |
| The operation failed due to a technical error. |
Input
The adapter expects an XML document with the following structure as input:
<?xml version="1.0" encoding="UTF-8"?>
<x4ai_adapter>
<query>Tell me something about Don Quixote</query>
</x4ai_adapter>
The following elements are included in the input:
Element | Description |
|---|---|
| Enclosing element for the |
| Searched sentence for which metadata is displayed in the output. |
Output
The adapter generates a XML document as output:
<output>
<documents>
<document>
<content>matching document chunk</content>
<metadata>
<id>uuid</id>
<source>document name</source>
<page>page</page>
<source_url>url</source_url>
<version>document version</version>
<similarity_score>number between (0; 1)</similarity_score>
</metadata>
</document>
<document>
<content></content>
<metadata>
<id></id>
<source></source>
<page></page>
<source_url></source_url>
<version></version>
<similarity_score></similarity_score>
</metadata>
</document>
</documents>
</output>
The following elements are included in the output:
Element | Description |
|---|---|
| Enclosing element for the |
| Enclosing element for the element |
| Contains information on the document accessed, the content and the metadata. |
| Document contents |
| Meta data of document with the elements:
|