Create a Praxos client instance and initialize an environment:
Copy
Ask AI
from praxos_python import SyncClient# Initialize the client with your API keyclient = SyncClient(api_key=API_KEY)# Create a new environmentenv = client.create_environment(name="MyEnvironment")
To learn more about client please review this page.
Query the knowledge graph to retrieve relevant context:
Copy
Ask AI
# Query the knowledge graphcontext = env.get_context("what is the name of knowledge graph tool?")print(context.sentence)
Example output:
Copy
Ask AI
a KnowledgeGraphTool, (which is a Tool), (category: Physical), identified as '67B770787F48A6Eac8C8B578 683A42Bb3983E0Bef0E2D031 683A42Bb3983E0Bef0E2D030 0 Tool Praxoskg', which has attribute ToolName 'Praxos knowledge graph' (base: NameType), and has attribute ToolFunctionalityDescription 'powerful tool for managing and retrieving contextual information' (base: DescriptionType). has attribute ToolName 'Praxos knowledge graph' (base: NameType).
The retrieved context can be utilized to enhance LLM responses for your specific use case.