Prometheux chain is a Python SDK designed to build, evolve and deploy your new knowledge graphs.
Project description
Prometheux_chain
Description
Prometheux Chain is a Python SDK designed to help you create, evolve, and deploy knowledge graphs with ease. The SDK offers the following capabilities:
- Data Ingestion: Seamlessly integrate data from various sources, including databases and files.
- Reasoning & Knowledge Augmentation: Perform logical reasoning to derive new insights and augment your existing knowledge base.
- Explainability: Gain clear explanations of the results generated by the system.
For more information refer to the documentation
Features
- Supports a wide range of data sources.
- Built-in reasoning engine for deriving new knowledge.
- Easy-to-understand explanations for enhanced interpretability.
- Ready-to-use configurations for fast deployment.
Installation
Requirements
- Python 3.7 or higher
Install Using pip
- Set Up a Virtual Environment (recommended):
python3 -m venv myenv
source myenv/bin/activate # On Windows: myenv\Scripts\activate
- Install the SDK via pip:
pip install --upgrade prometheux_chain
Usage
This guide demonstrates how to get started with the Prometheux Chain SDK. The example below outlines a typical workflow, including creating a project, defining concept logic, and running concepts to generate results.
Workflow
Import the prometheux_chain
import prometheux_chain as px
import os
Define the PMTX_TOKEN environment variable for authentication
os.environ['PMTX_TOKEN'] = 'my_pmtx_token'
Configure the backend connection using your Prometheux account
px.config.set('JARVISPY_URL', "https://platform.prometheux.ai/jarvispy/'my_organization'/'my_username'")
Create a new project
project_id = px.save_project(project_name="test_project")
Define concept logic using Vadalog syntax and save it
concept_logic = """
company("Apple", "Redwood City, CA").
company("Google", "Mountain View, CA").
company("Microsoft", "Redmond, WA").
company("Amazon", "Seattle, WA").
company("Facebook", "Menlo Park, CA").
company("Twitter", "San Francisco, CA").
company("LinkedIn", "Sunnyvale, CA").
company("Instagram", "Menlo Park, CA").
location(Location) :- company(_,Location).
@output("location").
"""
px.save_concept(project_id=project_id, concept_logic=concept_logic)
Run the concept to generate results
px.run_concept(project_id=project_id, concept_name="location")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prometheux_chain-0.2.6.tar.gz.
File metadata
- Download URL: prometheux_chain-0.2.6.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b0f7c7b6c9f22b22809988b3a98f45502a4e3a0963502f739d5b3ed880d193
|
|
| MD5 |
dd0e1cc1a0fbe19e066bebea260d3010
|
|
| BLAKE2b-256 |
73316bd2de2d45d2e3a39b922c4294d75a33abc60bc428f508b097f817d3f3e1
|
File details
Details for the file prometheux_chain-0.2.6-py3-none-any.whl.
File metadata
- Download URL: prometheux_chain-0.2.6-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcbfd3df0ada511447b4411fd3db2f9ec261f394341da2b21fec8bb26bb24065
|
|
| MD5 |
9a25cae3087a8f6757b6ef9004ac5617
|
|
| BLAKE2b-256 |
f4d0478c8abc0d3bb2a4ba139e7a8fec1634af578c19fb5d52a86d18c35d92bb
|