Initialise pipeline
Mandatory first step to initialise a pipeline.
-
Returns a request id and authorisation token needed to apply all other functions to the same batch of data. Sample Python codeCreateExtractionRequest
Load data
Provide contextual problem domain data used to create knowledge graphs and, optionally, Case data.
-
Add a single file (.csv, .pdf, .txt, or .json format).AddExtractionFile -
Add multiple files (.csv, .pdf, .txt, or .json format).AddExtractionFiles -
Add a data stream from a single file (.csv, .pdf, .txt, or .json format).AddExtractionFileStream -
Add a data stream from multiple files (.csv, .pdf, .txt, or .json format).AddExtractionFileStreams
Process data
Creates and stores documents and vector embeddings.
-
Extract text data from all (previously added) files. Data is then processed and stored: chunk text, create vector embeddings and metadata. Support for JSON-based extraction. CSV files, headers and corresponding values are converted to a map "[{'key': 'value', ...},{}...]"ProcessExtract -
Extract text data from specific (previously added) file(s). Data is then processed and stored: chunk text, create vector embeddings and metadata. Support for JSON-based extraction. CSV files, headers and corresponding values are converted to a map "[{'key': 'value', ...},{}...]"ProcessExtractFile -
Return processed data.GetExtract -
Return processed data as Langchain documents.GetExtractDocs
Knowledge layer
Creates and stores knowledge graph elements.
-
Extract named entities, relationships and contextual properties using NLP and LLM-based methods. Output graph elements as a JSON file in the format: [{"term": "Term/Node/Vertex name", "element": "Associative Term/Node/Vertex name", "relationships": "Relationship between Term/Node/Vertex names"},.....{}]GetGraphStructure -
Per specified source document - extract named entities, relationships and contextual properties using NLP and LLM-based methods. Output graph elements as a JSON file in the format: [{"term": "Term/Node/Vertex name", "element": "Associative Term/Node/Vertex name", "relationships": "Relationship between Term/Node/Vertex names"},.....{}]GetGraphStructurePerDoc -
Write graph data to a graph database by submitting the JSON file generated byGenerateGraphGetGraphStructure
. Process completes and returns 'casesAdded n, associationsAdded n, documentsAdded n'. -
Per specified source document - write graph data to a graph database by submitting the JSON file generated byGenerateGraphPerDocGetGraphStructure
. Process completes and returns 'casesAdded n, associationsAdded n, documentsAdded n'. -
Please note, this function combines API calls fromGenerateAutoGraphGetGraphStructurePerDoc
andGenerateGraphPerDoc
and is not featured in the API documentation. Accept a list of file names (refFiles
) in place ofrefDoc
andfileObj
, that will be processed per file to create a full graph.
Retrieval
Graph based retrieval augmented generation (GraphRAG).
-
Return the full graph in JSON format.GetGraph -
Submit and return an LLM query generated by the graph structure and content. With options to i) limit the search and retrieval to a single source document, and ii) select a base LLM model (open-source options only).GetGraphRetrieval -
Submit and return an LLM chat query generated by the graph structure and content with all relevant graph elements in JSON format. With options to i) limit the search and retrieval to a single source document, and ii) select a base LLM model (open-source options only).GetGraphRetrievalWithDS -
Accepts additional parameters for client projects managed by Tikos. Note that this function utilises theGetCustomerGraphRetrievalWithDSGetGraphRetrievalWithDS
API call and includes project-specific parameters that are not documented publicly.
Transparency & Explainability
Integration with ML/AI models and final transparency and explainability functions.
-
Upload trained deep neural network model that needs to be embedded with Tikos Reasoning Platform. PyTorch based models are supportedUploadModel -
Upload the configuration related to the uploaded deep neural network model. Will accept the model param definition in JSON format as well as the model specification in YAML formatUploadModelConfig -
Upload of the selected knowledge Cases (feature sets), that will build the initial Sequential Collection Case baseUploadModelCaseData -
Process the uploaded deep neural network model with Synapses Logger embedding and dynamically creating the Sequential Collection Case baseProcessModel -
Write Sequential Collection (SC) knowledge structures for each Case and store them as new nodes and node properties. Sequential Collection is a proprietary technology used in the Tikos Reasoning Platform.BuildSequentialCollection -
Providing a Problem Space (PS) case, the Sequential Collection will conduct a basic binary (BIN, default) search or advanced binary (BINADV) search and return the most similar existing case. This does not perform any case adaptation.GetSimilarCase -
Performs reasoning from the problem case to proposed solution case candidates, undertakes case adaptation, returns the final solution, and saves the solution case to the case base.GetReasoning
Tikos Client
A generic client connector that orchestrates commonly used base functions. It has been developed to facilitate easy integration with other applications and supports multithreading.
-
Multithreading supported file processing function. Accepts a list of filenames and file paths as a tuple.addProcessFiles -
Multithreading supported file addition function. Accepts a list of filenames and file stream as a tuple.addFileStreams -
Multithreading supported combined file addition and processing function. Accepts a list of filenames and file stream as a tuple.addProcessFileStreams -
Multithreading supported graph structure generation function. Accepts a list of filenames as contexts.generateGraphStructures -
Multithreading supported graph creation function. Accepts a list of filenames as context.createGraph -
Graph structure extraction function.getGraph -
Graph retrieval function. Accepts filenames as context and query.getGraphRetrieval -
Supports upload of the deep neural network modeluploadEmbeddingModel -
Supports upload of the deep neural network model configuration filesuploadEmbeddingConfig -
Upload of the selected Knowledge Cases (feature sets), that will build the initial Sequential Collection Case baseuploadModelCaseData -
Process the upload deep neural network model with Synapses Logger embedding and dynamically creating the Sequential Collection Case baseprocessEmbeddedModel -
Sequential Collection creation function. Accepts Case-Type, Data File name as context and Weight Type.createSequentialCollection -
Sequential Collection reasoning function. Accepts Case-Type, Data File name as context, problem space case as a JSON object string, Weight Type and Reasoning Type.generateReasoning