Skip to content

How to use PandasQueryEngine with other LLM #9619

Answered by edwin-nz
edwin-nz asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. I've set the following for PandasQueryEngine and it works now.

from llama_index import ServiceContext
from llama_index.query_engine import PandasQueryEngine

service_context = ServiceContext.from_defaults(llm=ollama, embed_model="local")
query_engine = PandasQueryEngine(df=df, verbose=True, service_context=service_context)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edwin-nz
Comment options

Answer selected by edwin-nz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant