RAG Apps API
Dataworkz API to RAG Apps - to perform QnA, Search and Chat.
Last updated
Dataworkz API to RAG Apps - to perform QnA, Search and Chat.
Last updated
Dataworkz RAG Applications can be created over multi-modal data (images, text, etc) with different formats (pdf, powerpoints, etc) from different sources (Google Drive, Sharepoint, etc). RAG Applications can be utilized for multiple use-cases
QnA: Allow users to ask questions in natural language and leverage the power of RAG to respond with answers from the underlying data corpus
Enterprise Search: Allow users to perform semantic search over the underlying data corpus
Chat with the data: Allow users to have a conversation with the underlying data corpus. (Note: this is not the Agents API)
Note: All API calls require an API Token. Please follow these steps to . The API Key has to be provided in the Authorization
header in the format SSWS <your api key>
Returns a map containing unique identifier and name for all QnA systems that have been set up in Dataworkz
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Get details of a specific QnA system
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Returns a map containing unique identifier and LLM models that have been configured for a given QnA system
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Ask a question to a specific QnA system and leverage RAG techniques to get the question answered based on the data corpus configured for that QnA system. You should specify the LLM to use from the ones configured for this QnA system. You can pass filter expressions to control the data retrieval process. Optionally, flags can be passed to configure the RAG engine behaviour. Each request is associated with an id to perform additional actions later.
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
Text of the question asked to the QnA system. Must be url encoded.
Example to join 2 datasets in S3 and write the output to MongoDB
Id of the LLM to use. This has to be from the list configured in the pipeline. Id can be retrieved using /systems/{systemId}/llm-providers api or copied from the LLM Configuration page.
774c246b-a079-4fa5-b3dc-4a82b35aa258
Filter expression to apply to data retrieval
version in ('1.2', '2.0')
Flags to control behaviour. Format is Key=value pairs separated by ; Supported flags - include_probe : Default is true. Set to false to disable returning probe data with request
include_probe=false;context=3
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Get a list of search results from the configured system that semantically match the query asked based on similarity with the data corpus configured for that QnA system. You can pass filter expressions to control the data retrieval process. Optionally, flags can be passed to configure the RAG engine behaviour. Each request is associated with an id to perform additional actions later.
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
search query terms
Example to join 2 datasets in S3 and write the output to MongoDB
Id of the LLM to use. This has to be from the list configured in the pipeline. Id can be retrieved using /systems/{systemId}/llm-providers api or copied from the LLM Configuration page. Will only be used if required.
774c246b-a079-4fa5-b3dc-4a82b35aa258
Filter expression to apply to data retrieval
version in ('1.2', '2.0')
Flags to control behaviour. Format is Key=value pairs separated by ; Supported flags - include_probe : Default is true. Set to false to disable returning probe data with request
include_probe=false;context=3
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Get list of all questions that have been asked by a user in last 6 months from a QnA system
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Get details about any question that had been asked previously by a user from a QnA system
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
Id of the answer request
a647381-1087-6e98-b3f0-5o9876a03a54
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Get a list of all filters associated with this system and their metadata which includes their datatype, cardinality and values (for low cardinality filters)
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Returns a map containing unique identifier and LLM models that have been configured
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation
Ask a simple question to a specific QnA system or ask a question in the context of a conversation and leverage RAG techniques to get the question answered based on the data corpus configured for that QnA system. You should specify the LLM to use from the ones configured for this QnA system. Note that for chat type conversations (i.e. with conversation history) you are limited to gpt-4 and llama3-70B models. You can pass filter expressions to control the data retrieval process. Optionally, flags can be passed to configure the RAG engine behaviour. Each request is associated with an id to perform additional actions later.
Id of the QnA system
3756809c-4032-4e48-b3f0-2a6d30a03a54
Text of the question asked to the QnA system. Must be url encoded.
Example to join 2 datasets in S3 and write the output to MongoDB
Id of the LLM to use. This has to be from the list configured in the pipeline. Id can be retrieved using /systems/{systemId}/llm-providers api or copied from the LLM Configuration page.
774c246b-a079-4fa5-b3dc-4a82b35aa258
Filter expression to apply to data retrieval
version in ('1.2', '2.0')
Flags to control behaviour. Format is Key=value pairs separated by ; Supported flags - include_probe : Default is true. Set to false to disable returning probe data with request
include_probe=false;context=3
For Dataworkz API Token use the format 'SSWS ' and for OAuth2 generated JWT token use 'Bearer '
successful operation