TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to augment LLM/GPT with structured data in a safe way?

2 pointsby TroyZabout 2 years ago
I have seen many applications augmenting LLM&#x2F;GPT responses with unstructured text data using frameworks like LangChain&#x2F;Vector databases. The idea is basically querying similar document chunks and plug them into the prompts.<p>But for structured data stored in SQL-like databases, there doesn&#x27;t seem to be a widly adopted way.<p>I have seen exapmles from the LangChain library using GPT to generate a SQL query and execute it using Python, but this would create security issues if the LLM generates queries that tamper with the database.<p>Thanks for any inspirations or input.

no comments

no comments