Learn more about features of knowledge bases available via SQL API.
1
Create a knowledge base
Use the
create()
function to create a knowledge base, specifying all its components.2
Insert data into the knowledge base
In this example, we use a simple dataset containing customer notes for product orders which will be inserted into the knowledge base.Use the
insert_query()
function to ingest data into the knowledge base from a query.3
Run semantic search on the knowledge base
Query the knowledge base using semantic search.This query returns:
4
Get the most relevant search results
Query the knowledge base using semantic search and define the This query returns:
relevance
parameter to receive only the best matching data for your use case.5
Filter results by metadata
Add metadata filtering to focus your search.This query returns: