Reference
Orpheus Python SDK
Wisecube SDK - Version - 1.0.0
Overview
The Wisecube SDK provides a Python interface to interact with the Wisecube AI services. This SDK allows developers to seamlessly integrate with Wisecube's APIs for various functionalities.
Getting Started
1. Install the sdk
pip install wisecube
2. Authentication
Create an instance of the WisecubeClient class with your API key. This is done in a python console:
Set the output format for our methods (JSON, PANDAS).
!! Output by default is JSON
API usage
Below is a table with the APIs and a short description.
QA
Description
This API provides relevant summary information for the specified question, including the answer and relevant documents associated with them.
Call
client.qa(question)
Parameters
question (String): the input must be a question you want the answer to
Documents
Description
This API query provides insights and relevant documents related to the question.
Call
client.documents(question)
Parameters
question (String): the input must be a question to get the documents
Search Graph
Description
This API retrieves insights based on specified parameters and returns the results in the form of a subgraph containing nodes and edges.
Call
client.search_graph(graphIds, nr=20)
Parameters
graphIds ([String]): the input must be a list of ids, ID of the starting node in the graph
maxNeighbors(Int): represented by nr : optional variable, default is 10,representing the maximum number of neighbor nodes to retrieve
Search Text
Description
The API returns a list of entities related to the search term.
Call
client.search_text(searchText)
Parameters
searchText (String): the string you want to search
Advanced Search
Description
This API returns the entities retrieved from the Wikidata database based on the provided query.
Call
client.advance_search(query)
Parameters
query (String): query for advanced search, encoded as a string
Predicate Graph
Description
The API retrieves information about predicates associated with a given label.
Call
client.get_predicates(labels)
Parameters
labels (String): represents the label of a predicate
Execute Vector Function
Description
The API retrieves embeddings for the given entities.
Call
client.execute_vector_function(graphIds)
Parameters
graphIds [String]: variable used to specify a list of graph IDs
Execute Score Function
Description
This API retrieves the score for each triple.
Call
client.execute_score_function(triples)
Parameters
triples [[String]]: variable representing a list of lists of strings, containing three elements
Admet Prediction
Description
This API retrieves prediction using ADMET models and sagemaker.
List of models: [BBB, logS, CYP2CI9i, LogD7, PGPi, PGPs, HIA, F20, F30, PPB, VD, CYPIA2i, CYPIA2s, CYP3A4i, CYP3A4s, CYP2C9i, CYP2C9s, CYP2C19s, CYP2D6i, CYP2D6s, CL, Ames, DILI, SkinS, Caco2, THALF, hERG, HHT ]
Call
client.get_admet_prediction(smiles=smiles, model=model.BBB)
Parameters
smiles [String]: specification in the form of a line notation for describing the structure of chemical species
model (String): represents the model name
Nl to sparql
Description
This API converts text to sparql.
Call
client.nl_to_sparql(question)
Parameters
question (String): the input must be a question
Ask Pythia
Description
This API obtains related claims or information about the input reference, response and question.
Call
client.ask_pythia(reference,response,question)
Parameters
question (String): the input must be a question
reference ([String]): information related to a medical report
response(String): response related to a medical report