DEV

TMS AI Studio

Don't get left behind! Effortlessly deliver state of the art intelligence in your own Delphi & C++Builder applications. Enhance your apps with AI to analyse data & generate data, allow AI to take automated control of your apps, let your customers access application functionality using natural language or to setup your own agentic flows with MCP.


Free TMS AI Studio RAG App



Description
RAG, or Retrieval-Augmented Generation, is an AI framework that boosts Large Language Models (LLMs) by connecting them to external, sometimes real-time information sources (like databases or documents) to provide more accurate, context-aware, and up-to-date answers. A lot of such information available comes as PDF files. Some LLMs can natively work with PDF files (OpenAI for example) but most can at this time of writing not yet. In order to setup a RAG pipeline that can be fed with PDF file content, we provide along with this demo app a Delphi function that uses the Google Chrome PDFium DLL to perform automatic text extraction from PDF files and feed it to the LLM so it can be used as information basis to perform requests. With this full source code demo built with TMS AI Studio, you can select a PDF or TXT file and do requests. A sample PDF and sample TXT file is included that demonstrate how it can be used.

Content
This packages includes a full source code demo to explore RAG with LLMs Claude, OpenAI, Gemini, Ollama, Mistral, DeepSeek, Grok.

Requirements
To compile and run this project, you must have TMS AI Studio installed in Delphi 11 or newer.

TMS AI Studio

build_circle
Integrate AI in your own Apps
install_desktop
Agents via full MCP Client/Server protocol