run-llama/LlamaIndexTS

NLSQLTableQueryEngine alternavite in TS

Open

#573 opened on Feb 26, 2024

 (2 comments) (1 reaction) (0 assignees)TypeScript (524 forks)auto 404
help wantedquestion

Repository metrics

Stars
 (3,078 stars)
PR merge metrics
 (PR metrics pending)

Description

am trying to perform sql queries from a connection to mssql like in this example in python but in ts

`from llama_index.core.query_engine import NLSQLTableQueryEngine

query_engine = NLSQLTableQueryEngine( sql_database=sql_database, tables=["city_stats"], llm=llm ) query_str = "Which city has the highest population?" response = query_engine.query(query_str)`

Is there an alternative to the NLSQLTableQueryEngine method or am I misdirected?

Contributor guide