Relative Content

Tag Archive for llama-index

Llamaindex SQLTableRetrieverQueryEngine not generating the correct SQL

I am using LLamaindex SQLTableRetrieverQueryEngine for natural language to SQL interface. My schema has one of the table called ‘Suppliers’ which has the columns ‘Name’ and ‘ContactInfo’. One of the row values are ‘FitLife Sports Gear’ for Name, ‘[email protected]’ for ContactInfo.

llama-index RelevancyEvaluator passes every source node

I’m using RelevancyEvaluator when looping through the source_nodes of a query_engine response, and the .evaluate() says that every source node is passing (result.passing returns True). This is of course not correct, and is preventing me from obtaining the correct source node that was used by the llm to answer my query.