Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question generation is awful #44

Open
CakeCrusher opened this issue Jun 11, 2024 · 0 comments
Open

Question generation is awful #44

CakeCrusher opened this issue Jun 11, 2024 · 0 comments

Comments

@CakeCrusher
Copy link
Contributor

generated:

run_executor_worker_1  |   {
run_executor_worker_1  |     "step_type": "Question",
run_executor_worker_1  |     "content": "What is the objective of the latest message from the UF CISE department?"
run_executor_worker_1  |   },

from:

asst = client.beta.assistants.create(
    name="Data visualizer",
    model="gpt-4-turbo",
    instructions="""You are an extraordinary academic advisor, you can access all publically available information reguarding UF CISE department (through web_retrieval).
Please try your best to answe the student's questions and help them to find the information they need.
Always cite your sources whenever you retrieve information from the web (through web_retrieval), you must share your sources via markdown.""",
    tools=[{"type": "web_retrieval"}],
)
thread = client.beta.threads.create(
    messages=[
        {"role": "user", "content": "Find my advisors for the CISE department at UF. It is found where it says 'During peak periods, response time may be longer – up to seven days.'"},
    ]
)
run = client.beta.threads.runs.create_and_poll(
    assistant_id=asst.id,
    thread_id=thread.id,
)
messages = client.beta.threads.messages.list(
    order="desc",
    thread_id=thread.id
)
print(messages.model_dump_json(indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant