Skip to content

NLSQLTableQueryEngine alternavite in TS #573

Open
@BlaackZero

Description

@BlaackZero

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions