run-llama/LlamaIndexTS

NLSQLTableQueryEngine alternavite in TS

Aperta

#573 aperta il 26 feb 2024

 (2 commenti) (1 reazione) (0 assegnatari)TypeScript (524 fork)auto 404
help wantedquestion

Metriche repository

Star
 (3078 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor