News for hackers. Stuff that matters.
Re:Show HN: Dataherald AI – Natural Language to SQL Engine by MrezaPourreza on Thursday August 24, 2023 @09:18AM (#37248399)
For schema matching, we leverage embeddings. We create embeddings for the tables within the database and generate one for the natural language question provided. We then calculate the cosine similarity between these embeddings to determine a relevance score. This score is then forwarded to the agent, which uses it to identify the pertinent tables.

To minimize the token count used by Large Language Models (LLMs), we've designed our tools to handle most of the computational work internally. Consequently, only a small number of tokens are transmitted to the agent. The agent focuses solely on decision-making, while the tools handle the heavy lifting and similarity assessments.

There are no comments on this comment yet.