The Contextual AI Platform,  powered by RAG 2.0

Easily build specialized RAG agents that your enterprise can trust

The end-to-end platform for building 
specialized RAG agents

Why specialized RAG agents
  • Deliver greater ROI than traditional AI copilots by addressing higher-value use cases
  • Support subject matter experts in domain-specific knowledge work
  • Retrieve and reason over massive volumes of unstructured and structured data
Why RAG 2.0
  • Achieve superior accuracy than traditional RAG with jointly optimized RAG components
  • Maintain retrieval performance at scale across complex, noisy enterprise data
  • Specialize components, as part of a unified system, to precisely address your use case

Platform Capabilities

Achieve production-grade accuracy for any use case

Meet the stringent accuracy requirements needed to move your specialized RAG agents from demo to production

Multimodal Retrieval plus plus-hover minus minus-hover

Mixture-of-retrievers approach and SOTA reranker to retrieve and reason over text, images, charts, & other complex data sources

Advanced Multihop Retrieval plus plus-hover minus minus-hover

Iterative retrieval and reasoning chains to sharpen accuracy for complex tasks

Consistent Accuracy at Scale plus plus-hover minus minus-hover

Stable retrieval performance in real-world deployments with massive volumes of noisy enterprise data

Strong Grounding plus plus-hover minus minus-hover

Language models grounded in retrieved data to improve accuracy and reduce hallucinations

Robust Tuning & Alignment plus plus-hover minus minus-hover

Tools to specialize RAG agents for the most complex and knowledge-intensive use cases

Reason over unstructured and structured data

Continuously ingest, extract, and retrieve your most important enterprise data—regardless of its scale, noisiness, or format

Unstructured Data plus plus-hover minus minus-hover

Support for unstructured data sources like PDFs and HTML with rich media (e.g., images, charts, figures, tables, code)

Structured Data plus plus-hover minus minus-hover

Support for structured data sources like data warehouses, databases, and spreadsheets

Application APIs plus plus-hover minus minus-hover

Pre-built integrations to popular SaaS applications like Slack, Google Drive, Github, and more

Maximize end-user trust and confidence

Provide end-users with clear attributions to relevant, up-to-date data sources and protections against potential hallucinations

Fine-grained Attribution plus plus-hover minus minus-hover

Precise citations to retrieved documents with bounding boxes to highlight relevant data to user

Groundedness Scoring plus plus-hover minus minus-hover

Automated flagging of potential hallucinations with low groundedness

High Data Freshness plus plus-hover minus minus-hover

Automated and ongoing ingestion of new data to ensure response timeliness

Accurate Real-World Evaluation plus plus-hover minus minus-hover

Built-in evaluation tools to assess responses for equivalence and groundedness

Meet robust enterprise security requirements

Deploy to production safely and confidently with a comprehensive suite of enterprise-grade security features

SOC 2 Compliance plus plus-hover minus minus-hover

SOC 2 certified to ensure enterprise data is properly secured and protected

Query-time Entitlements plus plus-hover minus minus-hover

Role-based access controls to ensure responses are only grounded in data that is accessible to the user

End-to-end Encryption plus plus-hover minus minus-hover

In-transit and at-rest encryption to protect sensitive data

Guardrails for Safety & Compliance plus plus-hover minus minus-hover

Protections to ensure output is safe, accurate, appropriate, and aligned with customer brand and content guidelines

Deploy in our cloud or yours

Leverage a fully managed, highly secure SaaS offering 
on Contextual AI infrastructure

Deploy within your virtual private cloud

Deploy within your on-prem environment

Powerful APIs for the entire agent development lifecycle

Tenant APIs
Application APIs
# Create an agent

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

create_agent_output = client.agents.create(
    name="agent_name",
)

print(create_agent_output.id)
# Create a datastore

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

create_datastore_response = client.datastores.create(
    name="datastore_name",
)

print(create_datastore_response.id)
# Query an agent

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

query_response = client.agents.query.create(
    agent_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    messages=[{
        "content": "content",
        "role": "user",
    }],
)

print(query_response.message_id)
print(query_response.message)
# Create a tune job

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

with open("path/to/your/training_file.csv", "rb") as file:
    training_file_contents = file.read()

tune_response = client.agents.tune.create(
    agent_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    training_file=training_file_contents,
)

print("Tune job ID:", tune_response.id)
# Create an evaluation round

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

launch_evaluation_response = client.agents.evaluate.create(
    agent_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    evalset_name="your_dataset_name",
    metrics=["equivalence"],
)

print(launch_evaluation_response.id)
# Create a dataset for tuning and eval

import os
from contextual import ContextualAI

client = ContextualAI(
    api_key=os.environ.get("CONTEXTUAL_API_KEY"),
)

with open("path/to/your/dataset_file.csv", "rb") as file:
    dataset_file_contents = file.read()

create_dataset_response = client.agents.datasets.evaluate.create(
    agent_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    dataset_name="your_dataset_name",
    dataset_type="evaluation_set",
    file=dataset_file_contents,
)

print("Dataset name:", create_dataset_response.name)
SDKs
Python
Javascript
Typescript
Yogi Chiniga
Vice President of Customer Engineering at Qualcomm

“Contextual AI gives me confidence that we can leverage generative AI to support our team, help our customers design and develop products efficiently, and set new standards for performance and quality.”

Additional Resources

Blog

 

The Contextual AI Platform is now generally available
Read our blog announcing the general availability of the Contextual AI Platform, our state-of-the-art solution for building specialized RAG agents

Read more

Blog

 

Benchmarking Contextual AI performance
See how the Contextual AI Platform achieves state-of-the-art performance on RAG benchmarks, outperforming frontier models

Read more

Blog

 

LMUnit: A new paradigm for AI evaluation
Learn how Contextual AI’s breakthrough approach to LLM evaluation brings the rigor, granularity, and accessibility of traditional unit testing to the world of AI

Read more