Stardog is an enterprise knowledge graph platform that enables organizations to unify, query, and analyze their data.
This integration package provides langchain tools and runnables for interacting with Stardog Voicebox, which is a natural language answering agent providing hallucination-free insights from your enterprise data.
Overview
The Stardog LangChain integration package provides the following tools for working with Stardog Voicebox:VoiceboxAskTool- Ask questions and get natural language answersVoiceboxGenerateQueryTool- Generate SPARQL queries from natural languageVoiceboxSettingsTool- Retrieve Voicebox application settings
Setup
Installation
Prerequisites
- A Stardog Cloud account
- A Voicebox application configured with your data
- A Voicebox API token
Getting your API token
- Log in to Stardog Cloud
- Click on your profile icon and select Manage API Keys.
- Create a new application and generate a secret.
- Copy the API token and keep it secure.
- For more details, see Stardog Voicebox API access.
Credentials
Set your API token as an environment variable:Instantiation and examples
VoiceboxAskTool
Ask natural language questions relevant to the knowledge graph configured with your API token, and receive hallucination-free answers.VoiceboxSettingsTool
Retrieve Voicebox application configuration and metadata.VoiceboxGenerateQueryTool
Generate SPARQL queries for the natural language question without executing them.Class reference
For more details, see Class Reference Available classes:VoiceboxAskTool- Ask questions and get answersVoiceboxSettingsTool- Retrieve application settingsVoiceboxGenerateQueryTool- Generate SPARQL queriesVoiceboxAskRunnable- Runnable for asking natural language questionsVoiceboxSettingsRunnable- Settings retrieval runnableVoiceboxGenerateQueryRunnable- Query generation runnableVoiceboxClient- Core client for Voicebox API