Skip to content

How to return charts? #1479

Answered by istrupin
istrupin asked this question in Q&A
Dec 7, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @gdcsinaptik thank you so much for your response here.

So in playing around with this, I've found that the operative word is "plot". I've been using "graph" and "chart" in my prompts (and as the output type given to the agent.chat method), and they were not consistently working, however "plot" seems to be doing the trick.

For the record, I'm using GPT 4o in azure.

The relevant code is pretty straightforward:

def query_lake(query, filenames, response_parser):
    lake = _create_lake_agent(filenames, user_id, tenant_id)
    agent_response = lake.chat(query=query, output_type=response_parser)
    agent_explanation = lake.explain()

def _create_lake_agent(files, user_id, tenant_id, respons…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gdcsinaptik
Comment options

Answer selected by gdcsinaptik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1454 on December 16, 2024 10:39.