Graphlit
Langtrace and Graphlit Integration Guide
Graphlit can accelerate your Generative AI app development by providing an API-first platform that offers intelligent text extraction, vector-based search, and RAG conversations, along with audio and video transcription support.
Langtrace integrates directly with Graphlit, providing comprehensive tracing and monitoring capabilities for your RAG (Retrieval-Augmented Generation) applications. Track everything from data ingestion to conversation completion with detailed performance metrics.
Prerequisites
Before you begin, ensure you have the following:
- An active account on the Graphlit Platform with access to the API Settings page.
- An API key from Langtrace. Sign up for Langtrace if you haven’t done so already.
Setup
- Install the Graphlit client and Langtrace’s SDK and initialize the SDK in your code.
- Setup environment variables:
Usage
Initialize Langtrace and Graphlit:
Ingest content and create a specification:
Create and interact with a conversation:
Run the complete RAG pipeline:
You can now view your traces on the Langtrace dashboard, including:
- Data ingestion metrics
- Specification creation details
- Conversation flow and completion times
- Error tracking and diagnostics