Home Applications langchain-iris-tool

langchain-iris-tool

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
5
1 reviews
2
Awards
187
Views
0
IPM installs
0
0
Details
Releases (5)
Reviews (1)
Awards (2)
Issues
Videos (1)
Articles (3)
This app has a demo View
InterSystems IRIS LangChain Tool and AI Agent to ask IRIS

What's new in this version

Videos, articles, link for idea implementation, zpm

Gitter

langchain-iris-tool

Contains an implementation of a Langchain Tool (BaseTool) to do RAG operations on Intersystems IRIS Server.
It is a Chat Agent tool also. It is possible ask questions like:

  1. List the server metrics
  2. Return intersystems iris server information
  3. Save the global value Hello to the global name Greetings
  4. Get the global value Greetings
  5. Kill the global Greetings
  6. List the classes on IRIS Server
  7. Where is intersystems iris installed?
  8. Return namespace information from the USER
  9. List the CSP Applications
  10. List the server files on namespace USER
  11. List the jobs on namespace %SYS
  12. List alerts

Now, we have fake data generation using Generative AI.

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Docker (e.g. for dev purposes)

Clone/git pull the repo into any local directory

$ git clone https://github.com/yurimarx/langchain-iris-tool.git

Open the terminal in this directory and run:

$ docker-compose build
$ docker-compose up -d

Solutions used

  1. Ollama - private LLM and NLP Chat tool
  2. Lanchain - plataform to build AI agents
  3. Streamlit - Frontend framework
  4. InterSystems IRIS as a server to answer the questions about it

1. Testing IRIS Classes Chat

  1. Open the URL http://localhost:8501
UI 1
  1. Click item menu Iris Classes Chat

  2. Check out the Settings button used to the Agent connect the InterSystems IRIS

UI 2
  1. Ask about your developed classes (e.g.: Are there classes that inherit from Persistent?)
UI 4

2. Testing IRIS Tool Chat

  1. Open the URL http://localhost:8501
UI 1
  1. Click item menu Iris Tool Chat

  2. Check out the Settings button used to the Agent connect the InterSystems IRIS

UI 2
  1. Ask one of the following questions and wait some seconds to see the results:
  • List the server metrics
  • Return intersystems iris server information
  • Save the global value Hello to the global name Greetings
  • Get the global value Greetings
  • Kill the global Greetings
  • List the classes on IRIS Server
  • Where is intersystems iris installed?
  • Return namespace information from the USER
  • List the CSP Applications
  • List the server files on namespace USER
  • List the jobs on namespace %SYS
  • List alerts
UI 3

3. Testing the fake data generation

  1. Open the IRIS terminal on USER namespace and generate fake data from sample data on Company table:

USER>do ##class(dc.gendata.FakeData).Generate(“dc_gendata”,“Company”,“1=1”,“Company”,10,“Basic company data”,.results)

  1. Wait 10-30 minutes to generate and see the results on the output variable (results):

USER>write results

Made with
Install
zpm install langchain-iris-tool download archive
Version
2.0.103 Apr, 2025
Ideas portal
https://ideas.intersystems.com/ideas/DPI-I-711
Category
Technology Example
Works with
InterSystems IRISInterSystems IRIS for HealthHealthShare
First published
27 Mar, 2025
Last edited
05 Apr, 2025