News for hackers. Stuff that matters.
Re:LlamaIndex: Unleash the power of LLMs over your data by mritchie712 on Saturday July 08, 2023 @07:16AM (#36643339)
If you're interested in the SQL component of this, we're building a product strictly focused on that at https://www.definite.app/. We let non-technical users ask questions of their SQL database. We do this by:

1. Pulling in your schema information and structuring it in a way LLM's can reason about it

2. Pulling in your prior query history against the database to understand how you actually use your data (e.g. what JOIN's are common, what tables are used most frequently, etc.)

3. Adding context from other tools you may be using (e.g. we can pull in metadata and tests from your dbt project)

We also have a Slackbot you can add to your #urgent-data-requests channel. If you @Definite in a thread, it'll parse out messages that can be converted to SQL tasks and return the answer from your database.

You could certainly build this yourself with (or without) LlamaIndex, but it's still quite a bit of work to set up.

Re:LlamaIndex: Unleash the power of LLMs over your data by totalhack on Saturday July 08, 2023 @07:42AM (#36643474)
Just to throw it out there, an alternative approach is to have the AI talk to a semantic layer. There are pros and cons to this and in practice you'd probably want an agent that can intelligently decide whether to call your semantic layer or go through some other process that may involve multiple queries, function calls, etc.

IMO a semantic layer makes it so easy to query that natural language querying is often not beneficial, even for business users. I take a hybrid approach of the semantic layer solving >95% of use cases and custom SQL as needed in backend processing.

https://github.com/totalhack/zillion

Re:LlamaIndex: Unleash the power of LLMs over your data by mritchie712 on Saturday July 08, 2023 @07:47AM (#36643501)
I like the concept of a semantic layer, but I haven't seen strong adoption of any of them (outside of LookML within Looker). Most of the companies I've talked to that are heavy dbt users don't use their semantic layer, but maybe that will change as the products mature!
Re:LlamaIndex: Unleash the power of LLMs over your data by lmeyerov on Saturday July 08, 2023 @08:38AM (#36643797)
We are seeing similar for Louie.ai . Data catalog yes, semantic no. We are also doing a lot of non-SQL like logs DBs (SIEMs) and graph DBs, which adds even more fun to that kind of question.

Wrt llmindex, the new tools like vector dbs & llmindex have been interesting. Fine-ish for our self-hosted, but most start getting tricky when a multi-tenant SaaS where we lower costs for teams and users by sharing infra yet need sharing boundaries.

Re:LlamaIndex: Unleash the power of LLMs over your data by PerihelionCT on Wednesday July 12, 2023 @02:51PM (#36699861)
I'm working on something that I believe has a similar to approach to what you're describing, particularly with the use of the semantic layer that AI talks to. Would love to connect sometime if you're open to trading notes? See profile for contact info, thx!
Re:LlamaIndex: Unleash the power of LLMs over your data by wanderingmind on Saturday July 08, 2023 @07:59AM (#36643550)
Do you have your source and model open? Its hard to use a AI service to give any type of access to prod DB without understanding the underlying code and models
Re:LlamaIndex: Unleash the power of LLMs over your data by mritchie712 on Saturday July 08, 2023 @11:07AM (#36645105)
Totally understand the concern. We're not open source yet, but working towards that as the open source LLMs improve.

We're SOC2 compliant which has been enough for many companies to get comfortable with security / data handling practices.

Re:LlamaIndex: Unleash the power of LLMs over your data by kulikalov on Saturday July 08, 2023 @08:56AM (#36643936)
I’ve built a similar solution around BigQuery. I used temporary tables to let user iterate over the data instead of writing huge analytics queries.

I would open source it if I had decent experience with OSS.

If anyone with OSS maintainer experience wants to help with that - ping me.

Re:LlamaIndex: Unleash the power of LLMs over your data by sheepscreek on Saturday July 08, 2023 @09:45AM (#36644344)
That's really neat. I'll take you up on that. Will reach out to your HN profile email.
Re:LlamaIndex: Unleash the power of LLMs over your data by greatpostman on Saturday July 08, 2023 @09:15AM (#36644079)
I built this in like one day for a pretty complex project, there’s no moat on this idea
Re:LlamaIndex: Unleash the power of LLMs over your data by kulikalov on Saturday July 08, 2023 @09:26AM (#36644171)
Technically, one can say the same about any devops services out there, for instance. Makes more sense to opensource it.

Still, would you mind sharing the use case and the outcome? I have a couple of clients interested in similar solutions, but so far the potential outcome of this approach doesn't look promising.

Re:LlamaIndex: Unleash the power of LLMs over your data by splatzone on Saturday July 08, 2023 @09:33AM (#36644238)
With respect, it’s all in the quality of the execution. Care to share your version?
Re:LlamaIndex: Unleash the power of LLMs over your data by Art9681 on Saturday July 08, 2023 @10:20AM (#36644686)
You should try building a bridge. Moats are a pitfall, literally.
Re:LlamaIndex: Unleash the power of LLMs over your data by mritchie712 on Saturday July 08, 2023 @11:03AM (#36645066)
thanks, giving up now.
Re:LlamaIndex: Unleash the power of LLMs over your data by chaxor on Saturday July 08, 2023 @12:05PM (#36645673)
Same is true for slack, since suc apparently does it in 5 lines.
Re:LlamaIndex: Unleash the power of LLMs over your data by vinodvarma24 on Saturday July 08, 2023 @10:38PM (#36650974)
Similar plug here: https://talktodata.ai/

We building a natural language chat interface for structured data. It can handle small csv files to large databases(500+ tables) seamlessly.