WisdomAI provides a GraphQL API for defining and maintaining domain knowledge. Knowledge entries represent domain-specific terminology and workflows that guide how the system interprets data and generates responses.Documentation Index
Fetch the complete documentation index at: https://docs.wisdom.ai/llms.txt
Use this file to discover all available pages before exploring further.
When to use Knowledge management
- Defining Regional Terms: For example, establishing that “Regions are Territories.”
- Outlining Sales Stages: Defining a sequence like “Prospect, Negotiation, Closed.”
- Specifying Contract Types: Categorizing items such as “Standard, Enterprise, Custom.”
Create Knowledge
Add one or more knowledge items to a domain. To add knowledge:- Use the
addKnowledgemutation. - Provide the
domainIdand yourknowledgeEntries.
Example Request
descriptionis required;nameis optional.- Duplicate knowledge (identified by the description) is automatically filtered out.
- You can add multiple items in a single request.
Read Knowledge
Retrieve all knowledge items currently associated with a domain. To retrieve knowledge:- Execute the
GetDomainKnowledgequery. - Input the relevant
domainId.
Example Request
Example Response
Update Knowledge
Modify an existing knowledge item. You must provide the exact original description to identify which item to update. To update an item:- Identify the
oldKnowledgeentry using its exact description. - Define the
updatedKnowledgewith your new values.
Example Request
Delete Knowledge
Remove a knowledge item from a domain. To delete an item:- Provide the
domainId. - Provide the exact description of the item you wish to remove.
Example Request
Common scenarios
Below are typical workflows for maintaining and restructuring domain knowledge.Bulk import Knowledge
You can add multiple knowledge items at once by listing them within theknowledgeEntries array.
Mutation:
Replace all Knowledge
To completely refresh a domain’s knowledge base:- Query the domain to retrieve all current knowledge items.
- Delete each item individually using the delete mutation.
- Add the new set of knowledge items.